/* =====================================================
   POLL PARTY POPUP — Radio Passion Varadero
   Préfixe .rpv-poll- (pas de conflits CSS existants)
   ===================================================== */

.rpv-poll-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: rpv-overlay-in 0.2s ease-out;
}

@keyframes rpv-overlay-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.rpv-poll-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: 85vh;
    overflow-y: auto;
    background: linear-gradient(160deg, #0f1620 0%, #1a2035 100%);
    border: 1px solid rgba(255, 140, 0, 0.45);
    border-radius: 16px;
    padding: 28px 24px 20px;
    box-shadow: 0 0 40px rgba(255, 140, 0, 0.18), 0 24px 60px rgba(0, 0, 0, 0.6);
    animation: rpv-card-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes rpv-card-in {
    from { transform: translateY(24px) scale(0.96); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.rpv-poll-close {
    position: absolute;
    top: 12px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: rgba(255, 255, 255, 0.5);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.rpv-poll-close:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

.rpv-poll-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.rpv-poll-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #ff8533;
}

.rpv-poll-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: rpv-live-pulse 1.2s ease-in-out infinite;
}

@keyframes rpv-live-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    50%       { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

.rpv-poll-question {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px;
    line-height: 1.35;
}

.rpv-poll-options {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 16px;
}

.rpv-poll-opt {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e0e8f0;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s, border-color 0.15s, transform 0.12s;
    position: relative;
    overflow: hidden;
    touch-action: manipulation; /* évite le délai 300ms + sticky hover iOS */
    -webkit-tap-highlight-color: transparent;
}

.rpv-poll-opt::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--opt-color, #ff6b35);
    border-radius: 10px 0 0 10px;
}

/* Hover uniquement sur les appareils avec vrai pointeur (souris) */
@media (hover: hover) and (pointer: fine) {
    .rpv-poll-opt:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.1);
        border-color: var(--opt-color, #ff6b35);
        transform: translateX(3px);
    }
}

/* Active state pour touch (feedback visuel immédiat) */
.rpv-poll-opt:active:not(:disabled) {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--opt-color, #ff6b35);
    transform: scale(0.97);
}

.rpv-poll-opt:disabled,
.rpv-poll-opt--loading {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

.rpv-poll-results { margin-bottom: 16px; }

.rpv-poll-bar-row { margin-bottom: 10px; }

.rpv-poll-bar-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #c0cce0;
    margin-bottom: 4px;
    font-weight: 500;
}

.rpv-poll-bar-row--mine .rpv-poll-bar-label { color: #fff; font-weight: 700; }

.rpv-poll-bar-pct { color: rgba(255, 255, 255, 0.55); font-size: 0.75rem; }
.rpv-poll-bar-row--mine .rpv-poll-bar-pct { color: #fff; }

.rpv-poll-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 4px;
    overflow: hidden;
}

.rpv-poll-bar-fill {
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.6s ease-out;
}

.rpv-poll-bar-votes {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.38);
    display: block;
    margin-top: 2px;
    text-align: right;
}

.rpv-poll-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding-top: 12px;
    margin-top: 4px;
}

.rpv-poll-total {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.42);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.rpv-poll-link {
    font-size: 0.72rem;
    color: #ff8533;
    text-decoration: none;
    font-weight: 700;
}
.rpv-poll-link:hover { text-decoration: underline; }

.rpv-poll-timer {
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.32);
    margin-top: 10px;
    letter-spacing: 0.5px;
}

@media (max-width: 480px) {
    .rpv-poll-card { padding: 20px 16px 16px; }
    .rpv-poll-question { font-size: 1rem; }
}
