/* HMP Polls — frontend stylesheet
   Widget votes use the Feel Good theme's .fg-poll-* classes (no extra CSS needed there).
   This file covers:
   1. .hmp-poll-notice  — small text shown inside the widget
   2. .hmp-poll-block-* — the in-post shortcode block
*/

/* ============================================================
   SHARED NOTICE (widget + shortcode)
   ============================================================ */
.hmp-poll-notice {
    font-size: 11.5px;
    color: #79825e; /* --muted from the Feel Good theme */
    margin: 10px 0 0;
    font-style: italic;
}

/* ============================================================
   IN-POST POLL BLOCK
   The shortcode wraps in .hmp-poll-block so it stands out
   in article content without conflicting with the sidebar widget.
   ============================================================ */
.hmp-poll-block {
    --hmp-accent:      #4f6b32;
    --hmp-accent-deep: #3b5223;
    --hmp-accent-soft: #e2e9cf;
    --hmp-line:        #bcc29c;
    --hmp-paper:       #f5f1e2;
    --hmp-ink:         #2b3320;
    --hmp-muted:       #79825e;
    --hmp-live:        #b04a2f;
    --hmp-shadow:      0 6px 20px -10px rgba(43, 51, 32, .35);

    background: var(--hmp-paper);
    border: 1px solid var(--hmp-line);
    border-radius: 16px;
    padding: 24px 26px 20px;
    margin: 2em 0;
    box-shadow: var(--hmp-shadow);
    font-family: 'DM Sans', sans-serif;
    color: var(--hmp-ink);
}

/* Question heading */
.hmp-poll-block-q {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--hmp-ink);
    margin-bottom: 16px;
}

/* ---- Voting form (inside post) ---- */
.hmp-poll-block-body {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.hmp-poll-block-opt {
    width: 100%;
    text-align: left;
    border: 1px solid var(--hmp-line);
    background: #fff;
    color: var(--hmp-ink);
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s, border-color .15s, transform .1s;
    box-sizing: border-box;
}

.hmp-poll-block-opt:hover {
    background: var(--hmp-accent-soft);
    border-color: var(--hmp-accent);
    transform: translateX(3px);
}

.hmp-poll-block-opt:disabled {
    opacity: .55;
    cursor: default;
    transform: none;
}

/* ---- Results (inside post) ---- */
.hmp-poll-block-results {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hmp-bar-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.hmp-bar-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: 14px;
    font-weight: 600;
    color: var(--hmp-ink);
    gap: 8px;
}

.hmp-bar-row.mine .hmp-bar-top { color: var(--hmp-accent-deep); }

.hmp-bar {
    height: 9px;
    background: var(--hmp-line);
    border-radius: 999px;
    overflow: hidden;
}

.hmp-bar span {
    display: block;
    height: 100%;
    background: var(--hmp-accent);
    border-radius: 999px;
    transition: width .5s ease;
}

.hmp-bar-row.mine .hmp-bar span { background: var(--hmp-accent-deep); }

.hmp-total {
    font-size: 12px;
    color: var(--hmp-muted);
    margin: 6px 0 0;
}

/* Future / admin note */
.hmp-poll-notice--admin {
    background: #fffbe5;
    border: 1px solid #e5d200;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 12.5px;
    color: #4a4000;
    font-style: normal;
}
