/* EventSeeker Styles - Yellow/Gold OSINT Theme */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Helvetica Neue", sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    overflow-x: hidden;
}

/* Background Animation */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 50%, rgba(202, 138, 4, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(250, 204, 21, 0.1) 0%, transparent 50%);
    animation: bg-pulse 8s ease-in-out infinite;
}

@keyframes bg-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

.glass-container {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(20px);
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 48px;
    max-width: 1000px;
    width: 100%;
    margin-bottom: 24px;
    position: relative;
    min-height: 600px;
}

.header {
    text-align: center;
    margin-bottom: 20px;
    /* Reduced from 40px */
}

/* Yellow/Gold Gradient Title */
.header h1 {
    font-family: "Inter", "SF Pro Display", -apple-system, sans-serif;
    background: linear-gradient(135deg, #fefce8 0%, #facc15 50%, #ca8a04 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3.5em;
    margin-bottom: 8px;
    /* Reduced */
    font-weight: 800;
    letter-spacing: -1px;
    filter: drop-shadow(0 0 15px rgba(250, 204, 21, 0.6)) drop-shadow(0 0 40px rgba(250, 204, 21, 0.3));
}

.header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1em;
    margin-bottom: 12px;
    /* Reduced */
}

.update-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    /* Reverted to original */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.8em;
    /* Reverted */
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: dot-pulse 2s infinite;
}

@keyframes dot-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

/* System Status Indicator */
.system-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    font-size: 0.7em;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-top: 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-dot.live {
    background-color: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.8);
    animation: status-pulse 2s infinite;
}

.status-dot.error {
    background-color: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
    animation: status-pulse-error 1s infinite;
}

.status-text {
    color: rgba(255, 255, 255, 0.7);
}

@keyframes status-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

@keyframes status-pulse-error {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}


/* Controls Container */
.controls-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.03);
    padding: 32px;
    border-radius: 32px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.controls-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.control-group {
    flex: 1;
    min-width: 240px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.control-label {
    font-size: 0.85em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-left: 4px;
}

/* Premium Select Inputs */
.input-select {
    width: 100%;
    padding: 18px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    font-size: 1.1em;
    font-weight: 500;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    /* Custom Arrow */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.input-select:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.input-select:focus {
    border-color: #facc15;
    background-color: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.1);
}

/* Segmented Control for Dates */
.segmented-control {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    gap: 6px;
}

.segment-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 14px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.segment-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.segment-btn.active {
    background: #facc15;
    color: #000;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(250, 204, 21, 0.3);
}

/* List View */
.events-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-row {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    gap: 16px;
}

.event-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(250, 204, 21, 0.3);
    transform: translateX(4px);
}

.row-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 60px;
    text-align: center;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.row-month {
    font-size: 0.7em;
    text-transform: uppercase;
    color: #facc15;
    font-weight: 800;
}

.row-day {
    font-size: 1.4em;
    font-weight: 700;
    color: white;
    line-height: 1;
}

.row-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.row-title {
    font-size: 1.1em;
    font-weight: 600;
    color: white;
}

.row-venue {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.row-btn {
    text-decoration: none;
    color: #facc15;
    font-size: 1.2em;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    cursor: pointer;
}

.row-btn:hover {
    background: #facc15;
    color: black;
    transform: rotate(-45deg);
}

.footer {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 9999px;
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.6);
    /* Blue Contour */
    color: white;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.footer-btn:hover {
    background: rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.3);
    transform: translateY(-1px);
}

/* hopRadio Button - Foggy Glass Effect */
.hopradio-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 9999px;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.03);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.hopradio-btn:hover {
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(239, 68, 68, 0.5);
    box-shadow: 0 12px 40px rgba(255, 0, 0, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px) scale(1.02);
}

/* Lang Toggle */
.nav-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 0.9em;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    backdrop-filter: blur(10px);
}

.nav-lang-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.lang-flag {
    font-size: 1.2em;
}

/* --- hopRadio Cross-Link Button (From SERGRadio) --- */
.hopradio-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 0, 0, 0.5);
    /* Red border */
    border-radius: 9999px;
    text-decoration: none;
    color: #9ca3af;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.3s;
}

.hopradio-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 0, 0, 0.3);
    /* Red glow */
    border-color: rgba(255, 0, 0, 0.5);
}

/* hopRadio Logo Text */
.hopradio-logo {
    font-size: 1.4em;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: none;
    /* Preserve hopRadio capitalization */
}

.hop-text {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.5));
}

.radio-text {
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 60%, #8b0000 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(255, 0, 0, 0.6));
}

/* --- Footer Button (From hopRadio) --- */
.footer-btn {
    display: block;
    width: 100%;
    max-width: 360px;
    padding: 10px 16px;
    background: linear-gradient(to bottom right, #111, #000);
    border: 1px solid #374151;
    border-radius: 9999px;
    color: #6b7280;
    font-size: 0.7em;
    font-weight: 500;
    text-decoration: none;
    text-align: center;
    line-height: 1.4;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

.footer-btn:hover {
    color: #d1d5db;
    border-color: #4b5563;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .glass-container {
        padding: 20px;
        min-height: auto;
    }

    .header h1 {
        font-size: 2.2em;
        /* Smaller Title */
        margin-top: 40px;
        /* Space for Lang Toggle */
    }

    .header p {
        font-size: 0.9em;
        padding: 0 10px;
    }

    /* Stack Controls */
    .controls-row {
        flex-direction: column;
        gap: 16px;
    }

    .control-group {
        min-width: 100%;
    }

    /* Date Toggles wrap */
    .segmented-control {
        flex-wrap: wrap;
    }

    .segment-btn {
        flex: 1 1 45%;
        /* 2 per row */
        font-size: 0.85em;
        padding: 10px;
    }

    /* Grid becomes 1 column */
    .events-grid {
        grid-template-columns: 1fr;
    }

    /* Move Lang Toggle to avoid overlap */
    .nav-lang-btn {
        padding: 6px 10px;
        font-size: 0.8em;
    }
}