/* 
   AapkaLove — Premium Vote Arena CSS (v15)
   Fixes: top padding, navbar conflict, image heights, VS badge, card layout, responsive
*/

/* ── Page Shell ──────────────────────────────────────────────────── */
.va-page {
    background-color: #FFFFFF;
    background-image: radial-gradient(circle at 50% 0%, rgba(224, 33, 122, 0.04), transparent 50%);
    min-height: 100vh;
    padding-top: 56px;
    padding-bottom: 80px;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-family: var(--font-sans, 'Inter', -apple-system, sans-serif);
    color: #1a1a24;
}

/* ── Main Container (Clean Side Gutters & Padding) ────────────────── */
.va-main-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ── Alert wrapper ───────────────────────────────────────────────── */
.va-alert-wrap {
    max-width: 880px;
    margin: 0 auto 24px;
}

/* ── Hero / Poll context ─────────────────────────────────────────── */
.va-header-section {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
    padding-top: 48px;
}

.va-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(224, 33, 122, 0.08);
    color: #E0217A;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 999px;
    border: 1px solid rgba(224, 33, 122, 0.15);
    margin-bottom: 24px;
}

/* Animated pulse dot inside the badge */
.va-live-badge i {
    animation: va-radio-pulse 2s ease-in-out infinite;
}
@keyframes va-radio-pulse {
    0%, 100% { opacity: 0.6; transform: scale(0.9); }
    50%       { opacity: 1;   transform: scale(1.05); }
}

.va-poll-question {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: #111;
    margin: 0 0 16px;
}

.va-poll-desc {
    font-size: 15px;
    font-weight: 400;
    color: #52526c;
    max-width: 560px;
    margin: 0 auto 20px;
    line-height: 1.65;
}

.va-poll-meta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #6b6b80;
    font-size: 13px;
    font-weight: 500;
    background: #fafafa;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 999px;
    padding: 6px 16px;
}
.va-poll-meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #bbb;
    flex-shrink: 0;
}

/* ── Main Voting Arena (2-option layout) ─────────────────────────── */
/* ── Main Voting Arena (2-option layout) ─────────────────────────── */
.va-arena {
    max-width: 960px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0 32px;
    align-items: stretch; /* Cards stretch to exact equal height */
    position: relative;
}

@media (max-width: 768px) {
    .va-arena {
        grid-template-columns: 1fr;
        gap: 20px 0;
    }
}

/* ── Multi-option layout (3+ options) ───────────────────────────── */
.va-arena-multi {
    max-width: 1100px;
    margin: 0 auto 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    align-items: stretch;
}

/* ── VS Badge ────────────────────────────────────────────────────── */
.va-vs-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: #fff;
    border: 1.5px solid rgba(224, 33, 122, 0.2);
    border-radius: 50%;
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 13px;
    font-weight: 800;
    color: #E0217A;
    box-shadow:
        0 4px 12px rgba(224, 33, 122, 0.08),
        0 0 0 4px rgba(224, 33, 122, 0.04);
    z-index: 10;
    position: relative;
    align-self: center;
    margin: auto 0;
}

@media (max-width: 768px) {
    .va-vs-badge {
        margin: -16px auto;
        z-index: 20;
    }
}

/* ── Card entrance animation ─────────────────────────────────────── */
@keyframes vaFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Unified Option Card ─────────────────────────────────────────── */
.va-unified-card {
    background: #fff;
    border-radius: 16px;
    border: 1.5px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 455px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 200ms cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 200ms ease,
        border-color 200ms ease;
    animation: vaFadeInUp 380ms ease both;
    position: relative;
}

/* Stagger entrance */
#opt-1.va-unified-card { animation-delay: 0ms; }
#opt-2.va-unified-card { animation-delay: 80ms; }

@media (hover: hover) {
    .va-unified-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 36px rgba(0, 0, 0, 0.08);
        border-color: rgba(0, 0, 0, 0.12);
    }
}

.va-unified-card:active {
    transform: scale(0.99);
}

/* Selected / voted state */
.va-unified-card.is-selected {
    border-color: #E0217A;
    box-shadow: 0 0 0 3px rgba(224, 33, 122, 0.1), 0 8px 24px rgba(224, 33, 122, 0.08);
}

/* ── Card Image Wrapper & Image ──────────────────────────────────── */
.va-uc-image-wrap {
    width: 100%;
    height: 230px;
    min-height: 230px;
    max-height: 230px;
    position: relative;
    overflow: hidden;
    background: #F1F5F9;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.va-uc-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    transition: transform 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

.va-uc-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
}

@media (hover: hover) {
    .va-unified-card:hover .va-uc-image {
        transform: scale(1.025);
    }
}

/* ── Card Body ───────────────────────────────────────────────────── */
.va-uc-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    justify-content: space-between;
}

/* "OPTION A / OPTION B" label */
.va-uc-title {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 10.5px;
    font-weight: 700;
    color: #94A3B8;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
}

/* Option name text */
.va-uc-content {
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 18px;
    line-height: 1.45;
    color: #0F172A;
    font-weight: 600;
    margin-bottom: 20px;
    flex: 1;
    word-break: break-word;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Vote Button (unvoted state) ─────────────────────────────────── */
.va-uc-vote-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 48px;
    background: #E0217A;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-family: var(--font-sans, 'Inter', sans-serif);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition:
        background 180ms ease,
        box-shadow 180ms ease,
        transform 120ms ease;
    margin-top: auto;
}

@media (hover: hover) {
    .va-uc-vote-btn:hover {
        background: #c91c6b;
        box-shadow: 0 4px 16px rgba(224, 33, 122, 0.25);
        text-decoration: none;
        color: #fff;
    }
    .va-uc-vote-btn:hover svg,
    .va-uc-vote-btn:hover i {
        transform: translateX(4px);
    }
}
.va-uc-vote-btn:active {
    transform: scale(0.98);
}
.va-uc-vote-btn svg,
.va-uc-vote-btn i {
    transition: transform 200ms ease;
    flex-shrink: 0;
}

/* form wrapper takes full width */
.va-form {
    width: 100%;
    margin-top: auto;
}

/* ── Results State (post-vote) ───────────────────────────────────── */
.va-uc-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
    animation: vaResultsFadeIn 280ms ease both;
}

@keyframes vaResultsFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.va-uc-results-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.va-uc-pct {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    color: #111;
    letter-spacing: -0.02em;
    transition: color 250ms ease;
}
.is-selected .va-uc-pct { color: #E0217A; }

.va-uc-votes {
    font-size: 13px;
    font-weight: 500;
    color: #6b6b80;
    line-height: 1.4;
    padding-bottom: 2px;
}

.va-uc-progress-bg {
    width: 100%;
    height: 6px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.va-uc-progress-fill {
    height: 100%;
    background: #ddd;
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: left;
    animation: vaProgressGrow 550ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

@keyframes vaProgressGrow {
    from { transform: scaleX(0); }
    to   { transform: scaleX(var(--fill-width, 0)); }
}

.is-selected .va-uc-progress-fill { background: #E0217A; }

/* "Your Vote" badge */
.va-uc-voted-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    background: rgba(224, 33, 122, 0.06);
    color: #E0217A;
    border: 1px solid rgba(224, 33, 122, 0.18);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

/* ── Actions Row ─────────────────────────────────────────────────── */
.va-actions-group {
    max-width: 880px;
    margin: 8px auto 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.va-actions-primary {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.va-actions-secondary {
    display: flex;
    align-items: center;
}

.va-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 16px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.09);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1a1a24;
    cursor: pointer;
    transition: all 180ms ease;
    text-decoration: none;
    min-width: 42px;
    white-space: nowrap;
}

.va-action-btn:hover {
    background: #f5f5f7;
    border-color: rgba(0, 0, 0, 0.14);
    text-decoration: none;
    color: #1a1a24;
}

.va-action-btn.share-wp {
    color: #25D366;
    border-color: rgba(37, 211, 102, 0.2);
    background: rgba(37, 211, 102, 0.03);
}
.va-action-btn.share-wp:hover {
    background: rgba(37, 211, 102, 0.08);
}

.va-action-btn.action-subtle {
    color: #888;
    border-color: transparent;
    background: transparent;
    font-weight: 500;
}
.va-action-btn.action-subtle:hover {
    background: rgba(0, 0, 0, 0.04);
    color: #444;
}

/* ── Explore More CTA ────────────────────────────────────────────── */
.va-explore-container {
    text-align: center;
    margin-bottom: 48px;
}

.va-explore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(224, 33, 122, 0.04);
    border: 1px solid rgba(224, 33, 122, 0.14);
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: #E0217A;
    text-decoration: none;
    transition: all 200ms ease;
}

@media (hover: hover) {
    .va-explore-btn:hover {
        background: rgba(224, 33, 122, 0.09);
        text-decoration: none;
        color: #E0217A;
    }
    .va-explore-btn:hover svg,
    .va-explore-btn:hover i {
        transform: translateX(4px);
    }
}
.va-explore-btn svg,
.va-explore-btn i {
    transition: transform 200ms ease;
}

/* ── Modals ──────────────────────────────────────────────────────── */
.va-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    padding: 20px;
}
.va-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.va-modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    width: 100%;
    max-width: 420px;
    transform: translateY(16px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.va-modal-overlay.active .va-modal-content {
    transform: translateY(0);
}

.va-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.va-modal-title {
    font-family: var(--font-display, 'Sora', sans-serif);
    font-size: 18px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.va-modal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #999;
    border-radius: 6px;
    transition: background 150ms ease;
}
.va-modal-close:hover {
    background: #f0f0f0;
    color: #444;
}

/* ── Info Card ───────────────────────────────────────────────────── */
.va-info-card {
    max-width: 880px;
    margin: 0 auto 24px;
    background: #fdfafb;
    border-radius: 14px;
    padding: 16px 28px;
    border: 1px solid rgba(224, 33, 122, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 16px;
}

.va-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
}

.va-info-label {
    font-size: 10px;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.va-info-value {
    font-size: 13px;
    font-weight: 600;
    color: #303030;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ── Spin animation for loading state ────────────────────────────── */
@keyframes spin { 100% { transform: rotate(360deg); } }

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tablet ── */
@media (max-width: 1024px) {
    .va-arena {
        max-width: 820px;
        gap: 0 24px;
    }
    .va-uc-image {
        height: 200px;
    }
    .va-vs-badge {
        margin-top: 76px;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .va-page {
        padding-top: 16px;
        padding-bottom: 60px;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .va-main-container {
        padding: 0 16px;
    }

    .va-header-section {
        padding-top: 16px;
        margin-bottom: 20px;
    }

    .va-live-badge {
        margin-bottom: 12px;
        font-size: 10px;
        padding: 4px 10px;
    }

    .va-poll-question {
        font-size: clamp(20px, 5vw, 26px);
        margin-bottom: 8px;
    }

    .va-poll-desc {
        font-size: 13.5px;
        margin-bottom: 12px;
        line-height: 1.45;
    }

    .va-poll-meta {
        padding: 4px 12px;
        font-size: 12px;
    }

    /* Side-by-side 2-column matchup on mobile */
    .va-arena {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 100%;
        margin-bottom: 24px;
        position: relative;
    }

    .va-arena-multi {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        max-width: 100%;
        margin-bottom: 24px;
    }

    /* Floating VS badge in center */
    .va-vs-badge {
        position: absolute;
        left: 50%;
        top: 60px;
        transform: translate(-50%, -50%);
        width: 32px;
        height: 32px;
        font-size: 10.5px;
        font-weight: 800;
        z-index: 10;
        margin: 0;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    }

    .va-unified-card {
        min-height: auto;
        border-radius: 14px;
    }

    .va-uc-image-wrap {
        height: 125px !important;
        min-height: 125px !important;
        max-height: 125px !important;
    }

    .va-uc-image {
        height: 125px !important;
    }

    .va-uc-body {
        padding: 12px 10px;
    }

    .va-uc-title {
        font-size: 9px;
        margin-bottom: 3px;
        letter-spacing: 0.08em;
    }

    .va-uc-content {
        font-size: 13.5px;
        line-height: 1.35;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
    }

    .va-uc-vote-btn {
        height: 38px;
        font-size: 12px;
        padding: 0 8px;
        border-radius: 8px;
        gap: 4px;
    }

    .va-uc-vote-btn svg,
    .va-uc-vote-btn i {
        width: 14px;
        height: 14px;
    }

    .va-uc-results {
        gap: 6px;
    }

    .va-uc-pct {
        font-size: 20px;
    }

    .va-uc-votes {
        font-size: 11px;
    }

    .va-uc-voted-btn {
        height: 34px;
        font-size: 12px;
        border-radius: 8px;
        gap: 4px;
        margin-top: 4px;
    }

    .va-actions-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 24px;
    }

    .va-actions-primary {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .va-action-btn {
        height: 38px;
        font-size: 13px;
        padding: 0 12px;
    }

    .va-actions-secondary {
        justify-content: center;
    }

    .va-info-card {
        padding: 12px 16px;
        margin-bottom: 24px;
        gap: 12px;
    }

    .va-info-item {
        gap: 2px;
    }

    .va-info-value {
        font-size: 12px;
    }

    .va-explore-container {
        margin-bottom: 24px;
    }
}

@media (max-width: 360px) {
    .va-arena {
        gap: 6px;
    }
    .va-uc-image-wrap {
        height: 105px !important;
        min-height: 105px !important;
        max-height: 105px !important;
    }
    .va-uc-image {
        height: 105px !important;
    }
    .va-uc-body {
        padding: 10px 6px;
    }
    .va-uc-content {
        font-size: 12px;
    }
    .va-uc-vote-btn {
        font-size: 11px;
        height: 34px;
    }
}
