/* ============================================================
   Live Radio Player – Listener Polls Styles
   5 Visual Themes + Admin Design Choices
   ============================================================ */

/* ---- Base Poll Container ---- */
.lrp-poll {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    padding: 28px;
    margin: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: all 0.3s ease;
}

/* ---- Poll Header ---- */
.lrp-poll-header {
    margin-bottom: 20px;
    text-align: center;
}

.lrp-poll-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    animation: lrpBadgePulse 2s ease-in-out infinite;
}

@keyframes lrpBadgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.lrp-poll-question {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    line-height: 1.4;
}

/* ---- Poll Options ---- */
.lrp-poll-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.lrp-poll-option {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.lrp-poll-option:hover {
    transform: translateY(-1px);
}

/* ---- Vote Button (Before Voting) ---- */
.lrp-poll-option-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.lrp-poll-option-btn:hover {
    transform: scale(1.01);
}

.lrp-poll-option-btn:active {
    transform: scale(0.98);
}

.lrp-poll-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid currentColor;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s ease;
}

.lrp-poll-option-btn:hover .lrp-poll-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    transform: translate(-50%, -50%);
    animation: lrpRadioDot 0.2s ease-out;
}

@keyframes lrpRadioDot {
    from { transform: translate(-50%, -50%) scale(0); }
    to { transform: translate(-50%, -50%) scale(1); }
}

/* ---- Result Bar (After Voting) ---- */
.lrp-poll-result {
    position: relative;
    padding: 14px 18px;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
}

.lrp-poll-result-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 12px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 0;
}

.lrp-poll-result .lrp-poll-option-text {
    position: relative;
    z-index: 1;
    flex: 1;
    font-weight: 500;
    font-size: 15px;
}

.lrp-poll-option-percent {
    position: relative;
    z-index: 1;
    font-weight: 700;
    font-size: 16px;
    min-width: 45px;
    text-align: right;
}

.lrp-poll-option-votes {
    position: relative;
    z-index: 1;
    font-size: 12px;
    opacity: 0.7;
    min-width: 55px;
    text-align: right;
}

/* ---- Poll Footer ---- */
.lrp-poll-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    font-size: 13px;
    opacity: 0.8;
}

.lrp-poll-message {
    font-weight: 600;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.lrp-poll-message.success {
    color: #4caf50;
}

.lrp-poll-message.error {
    color: #f44336;
}

/* ---- Loading State ---- */
.lrp-poll-option.voting {
    pointer-events: none;
    opacity: 0.6;
}

.lrp-poll-option.voting .lrp-poll-option-btn::after {
    content: '';
    position: absolute;
    right: 18px;
    top: 50%;
    width: 18px;
    height: 18px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: lrpSpin 0.6s linear infinite;
    transform: translateY(-50%);
}

@keyframes lrpSpin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* ---- Vote Animation ---- */
.lrp-poll-option.just-voted {
    animation: lrpVoteSuccess 0.5s ease-out;
}

@keyframes lrpVoteSuccess {
    0% { transform: scale(1); }
    30% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* ============================================================
   THEME 1: Glassmorphism (Default)
   ============================================================ */
.lrp-poll-style-glassmorphism {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(236, 72, 153, 0.15), rgba(59, 130, 246, 0.15));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.lrp-poll-style-glassmorphism .lrp-poll-badge {
    background: rgba(139, 92, 246, 0.3);
    color: #e0d4ff;
    border: 1px solid rgba(139, 92, 246, 0.4);
}

.lrp-poll-style-glassmorphism .lrp-poll-option-btn {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.lrp-poll-style-glassmorphism .lrp-poll-option-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(139, 92, 246, 0.5);
}

.lrp-poll-style-glassmorphism .lrp-poll-result {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.lrp-poll-style-glassmorphism .lrp-poll-result-bar {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.4), rgba(236, 72, 153, 0.4));
}

/* ============================================================
   THEME 2: Neon Glow
   ============================================================ */
.lrp-poll-style-neon {
    background: #0a0a1a;
    border: 1px solid rgba(0, 255, 136, 0.3);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1), inset 0 0 20px rgba(0, 255, 136, 0.03);
    color: #e0ffe0;
}

.lrp-poll-style-neon .lrp-poll-badge {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.4);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.lrp-poll-style-neon .lrp-poll-question {
    text-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.lrp-poll-style-neon .lrp-poll-option-btn {
    background: rgba(0, 255, 136, 0.05);
    color: #e0ffe0;
    border: 1px solid rgba(0, 255, 136, 0.2);
}

.lrp-poll-style-neon .lrp-poll-option-btn:hover {
    background: rgba(0, 255, 136, 0.12);
    border-color: rgba(0, 255, 136, 0.6);
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
}

.lrp-poll-style-neon .lrp-poll-radio {
    border-color: #00ff88;
}

.lrp-poll-style-neon .lrp-poll-result {
    background: rgba(0, 255, 136, 0.03);
    border: 1px solid rgba(0, 255, 136, 0.12);
    color: #e0ffe0;
}

.lrp-poll-style-neon .lrp-poll-result-bar {
    background: linear-gradient(90deg, rgba(0, 255, 136, 0.35), rgba(0, 200, 255, 0.35));
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* ============================================================
   THEME 3: Sunset Warm
   ============================================================ */
.lrp-poll-style-sunset {
    background: linear-gradient(135deg, #1a0a0f, #1a0f05);
    border: 1px solid rgba(255, 107, 53, 0.2);
    color: #ffeedd;
}

.lrp-poll-style-sunset .lrp-poll-badge {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.3), rgba(255, 64, 129, 0.3));
    color: #ff8a65;
    border: 1px solid rgba(255, 107, 53, 0.4);
}

.lrp-poll-style-sunset .lrp-poll-option-btn {
    background: rgba(255, 107, 53, 0.08);
    color: #ffeedd;
    border: 1px solid rgba(255, 107, 53, 0.15);
}

.lrp-poll-style-sunset .lrp-poll-option-btn:hover {
    background: rgba(255, 107, 53, 0.18);
    border-color: rgba(255, 107, 53, 0.5);
}

.lrp-poll-style-sunset .lrp-poll-radio {
    border-color: #ff6b35;
}

.lrp-poll-style-sunset .lrp-poll-result {
    background: rgba(255, 107, 53, 0.05);
    border: 1px solid rgba(255, 107, 53, 0.1);
    color: #ffeedd;
}

.lrp-poll-style-sunset .lrp-poll-result-bar {
    background: linear-gradient(90deg, rgba(255, 107, 53, 0.4), rgba(255, 64, 129, 0.4));
}

/* ============================================================
   THEME 4: Clean Light
   ============================================================ */
.lrp-poll-style-light {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    color: #1f2937;
}

.lrp-poll-style-light .lrp-poll-badge {
    background: #f0f5ff;
    color: #3b82f6;
    border: 1px solid #bfdbfe;
}

.lrp-poll-style-light .lrp-poll-option-btn {
    background: #f9fafb;
    color: #1f2937;
    border: 1px solid #e5e7eb;
}

.lrp-poll-style-light .lrp-poll-option-btn:hover {
    background: #eff6ff;
    border-color: #93c5fd;
}

.lrp-poll-style-light .lrp-poll-radio {
    border-color: #3b82f6;
}

.lrp-poll-style-light .lrp-poll-result {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    color: #1f2937;
}

.lrp-poll-style-light .lrp-poll-result-bar {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.2));
}

.lrp-poll-style-light .lrp-poll-footer {
    color: #6b7280;
}

/* ============================================================
   THEME 5: Minimal Dark
   ============================================================ */
.lrp-poll-style-minimal {
    background: #111111;
    border: 1px solid #2a2a2a;
    color: #e5e5e5;
}

.lrp-poll-style-minimal .lrp-poll-badge {
    background: transparent;
    color: #888888;
    border: 1px solid #333333;
}

.lrp-poll-style-minimal .lrp-poll-question {
    font-weight: 600;
}

.lrp-poll-style-minimal .lrp-poll-option-btn {
    background: #1a1a1a;
    color: #e5e5e5;
    border: 1px solid #2a2a2a;
}

.lrp-poll-style-minimal .lrp-poll-option-btn:hover {
    background: #222222;
    border-color: #444444;
}

.lrp-poll-style-minimal .lrp-poll-radio {
    border-color: #666666;
}

.lrp-poll-style-minimal .lrp-poll-result {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    color: #e5e5e5;
}

.lrp-poll-style-minimal .lrp-poll-result-bar {
    background: rgba(255, 255, 255, 0.1);
}

.lrp-poll-style-minimal .lrp-poll-footer {
    color: #666666;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 480px) {
    .lrp-poll {
        padding: 20px;
        border-radius: 12px;
    }
    
    .lrp-poll-question {
        font-size: 17px;
    }
    
    .lrp-poll-option-btn,
    .lrp-poll-result {
        padding: 12px 14px;
    }

    .lrp-poll-footer {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}
