/* ==========================================================================
   ENCUESTA WEB INTERACTIVA - GOOD GAME #1 • OASIS SYSTEM
   Design: Ultra-Premium Glassmorphism, Neon Glows & Dynamic Charts
   ========================================================================== */

:root {
    --bg-dark: #050811;
    --card-bg: rgba(13, 17, 34, 0.85);
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.35);
    --cyan: #00F2FE;
    --cyan-glow: rgba(0, 242, 254, 0.35);
    --emerald: #10B981;
    --rose: #F43F5E;
    --purple: #A855F7;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --font-main: 'Outfit', sans-serif;
    --font-code: 'JetBrains Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 242, 254, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 215, 0, 0.08) 0px, transparent 50%);
    color: var(--text-main);
    font-family: var(--font-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Glow Orbs */
.bg-glow-orb {
    position: fixed;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.orb-gold {
    top: -100px;
    left: -100px;
    background: var(--gold);
}

.orb-cyan {
    bottom: -100px;
    right: -100px;
    background: var(--cyan);
}

/* Main Layout Wrapper */
.poll-app-container {
    width: 100%;
    max-width: 680px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Glassmorphism Panel Base */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Header Branding */
.poll-header {
    padding: 18px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-logo-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon-glow {
    width: 46px;
    height: 46px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid var(--gold);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 0 16px var(--gold-glow);
}

.brand-name {
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    background: linear-gradient(135deg, #FFF 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 0.5px;
    display: block;
}

.server-status-pill {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--emerald);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--emerald);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--emerald);
    animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

/* Main Card */
.poll-main-card {
    padding: 30px 32px;
    border-color: rgba(0, 242, 254, 0.3);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 242, 254, 0.06);
}

.poll-state-box {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.spin-big {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.icon-big {
    font-size: 3rem;
    margin-bottom: 16px;
}

.hidden {
    display: none !important;
}

/* Poll Banner Decorative Image */
.poll-banner-box {
    width: 100%;
    max-height: 220px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.poll-banner-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Poll Meta Bar & Countdown Timer */
.poll-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.meta-left-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.poll-id-badge {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid var(--cyan);
    color: var(--cyan);
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.poll-timer-badge {
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-code);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 6px;
}

.poll-author-tag,
.poll-total-votes {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.poll-question-title {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 8px;
    color: #FFF;
}

.poll-desc-text {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

/* Poll Options Grid */
.poll-options-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.option-card {
    position: relative;
    background: rgba(5, 8, 17, 0.8);
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.option-card:hover {
    border-color: var(--gold);
    background: rgba(5, 8, 17, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
}

.option-card.selected {
    border-color: var(--cyan) !important;
    background: rgba(0, 242, 254, 0.12) !important;
    box-shadow: 0 0 20px var(--cyan-glow) !important;
}

.option-radio-custom {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.option-card.selected .option-radio-custom {
    border-color: var(--cyan);
    background: var(--cyan);
}

.option-radio-custom::after {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--bg-dark);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.option-card.selected .option-radio-custom::after {
    opacity: 1;
}

.option-label-text {
    font-size: 1.05rem;
    font-weight: 700;
    color: #F8FAFC;
    flex: 1;
}

/* Results View Bars */
.poll-results-container {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.results-header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.results-header-flex h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.voted-success-badge {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid var(--emerald);
    color: var(--emerald);
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 20px;
}

.results-bars-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.result-bar-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-info-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    font-weight: 700;
}

.result-percentage-tag {
    font-family: var(--font-code);
    color: var(--cyan);
    font-weight: 800;
}

.progress-bar-track {
    width: 100%;
    height: 14px;
    background: rgba(5, 8, 17, 0.8);
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--cyan) 0%, var(--gold) 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 12px var(--cyan-glow);
}

/* Action Buttons */
.btn-primary-glow {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.3) 0%, rgba(255, 215, 0, 0.25) 100%);
    border: 1px solid var(--cyan);
    color: #FFF;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1rem;
    padding: 16px 24px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 6px 24px var(--cyan-glow);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
}

.btn-primary-glow:hover {
    background: linear-gradient(135deg, #00F2FE 0%, var(--gold) 100%);
    color: #050811;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--cyan-glow), 0 0 35px var(--gold-glow);
}

.poll-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    padding: 10px;
}

@media (max-width: 600px) {
    body { padding: 12px; }
    .poll-main-card { padding: 20px 18px; }
    .poll-question-title { font-size: 1.3rem; }
    .option-label-text { font-size: 0.95rem; }
}
