:root {
    --open-green: #00ff88;
    --closed-red: #ff3366;
    --bg-dark: #0a0e1a;
    --bg-darker: #050810;
    --grid-color: rgba(0, 255, 136, 0.08);
    --text-dim: #6b7a99;
}

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

body {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-darker);
    color: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* Animated grid background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridScroll 20s linear infinite;
    z-index: 0;
}

@keyframes gridScroll {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Gradient orbs */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    z-index: 1;
    animation: float 15s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--open-green);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #0088ff;
    bottom: -50px;
    left: -50px;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.container {
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.status-card {
    background: rgba(10, 14, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 4rem 3rem;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(20px);
    box-shadow:
        0 0 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    animation: slideIn 0.8s ease-out;
}

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

.timestamp {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease-out 0.3s backwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 1s ease-out 0.5s backwards;
}

.pulse-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.pulse-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.open .pulse-dot {
    background: var(--open-green);
    box-shadow: 0 0 20px var(--open-green);
}

.open .pulse-dot::before {
    background: var(--open-green);
}

.closed .pulse-dot {
    background: var(--closed-red);
    box-shadow: 0 0 20px var(--closed-red);
}

.closed .pulse-dot::before {
    background: var(--closed-red);
}

@keyframes pulse {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.5);
    }
}

.status-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
}

.open .status-text {
    color: var(--open-green);
    text-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
}

.closed .status-text {
    color: var(--closed-red);
    text-shadow: 0 0 30px rgba(255, 51, 102, 0.5);
}

.details {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeIn 1s ease-out 0.7s backwards;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    font-size: 0.875rem;
}

.detail-label {
    color: var(--text-dim);
    font-weight: 300;
}

.detail-value {
    font-weight: 600;
    color: #ffffff;
}

.countdown-section {
    margin-top: 2rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 1s ease-out 0.9s backwards;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 70px;
}

.countdown-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--open-green);
    text-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
    min-width: 2ch;
    text-align: center;
}

.closed .countdown-number {
    color: var(--closed-red);
    text-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

.countdown-unit-label {
    font-size: 0.625rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.countdown-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-top: 0.5rem;
}

.next-event {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: fadeIn 1s ease-out 0.9s backwards;
}

.next-event-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.next-event-time {
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
}

.footer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
    animation: fadeIn 1s ease-out 1.1s backwards;
}

.footer a:hover {
    color: var(--open-green);
}

.footer-links {
    margin-top: 1rem;
    font-size: 0.75rem;
}

.footer-links a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links .separator {
    color: var(--text-dim);
    margin: 0 0.5rem;
}

@media (max-width: 640px) {
    .status-card {
        padding: 2.5rem 1.5rem;
    }

    .status-text {
        font-size: 2rem;
    }

    .detail-row {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Glitch effect on status change */
.glitch {
    animation: glitch 0.3s ease-out;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(2px, -2px);
    }
    60% {
        transform: translate(-2px, -2px);
    }
    80% {
        transform: translate(2px, 2px);
    }
}
