/* ================================
   CVR NYE 2026 - Sleek Modern Design
   ================================ */

:root {
    --bg-color: #050508;
    --text-color: #ffffff;
    --accent-primary: #8b5cf6;
    --accent-secondary: #06b6d4;
    --accent-tertiary: #f43f5e;
    --card-bg: rgba(20, 20, 30, 0.6);
    --card-hover: rgba(40, 40, 60, 0.8);
    --border-radius: 16px;
    --font-family: 'Inter', sans-serif;
    --timeline-hour-width: 120px;
    --track-height: 135px;
    --header-height: 50px;
    --glow-primary: 0 0 40px rgba(139, 92, 246, 0.4);
    --glow-secondary: 0 0 40px rgba(6, 182, 212, 0.4);
}

/* Keyframe Animations */
@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.6)); }
    50% { filter: drop-shadow(0 0 40px rgba(6, 182, 212, 0.8)); }
}

@keyframes borderGlow {
    0%, 100% { border-color: rgba(139, 92, 246, 0.5); }
    50% { border-color: rgba(6, 182, 212, 0.5); }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-family);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overscroll-behavior-x: none;
    overflow-x: hidden;
    position: relative;
}

/* Animated Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 20%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 40% 60%, rgba(244, 63, 94, 0.1) 0%, transparent 40%);
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
    z-index: -2;
    pointer-events: none;
}

/* Star Field Parallax Layers */
.parallax-stars {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: -1;
    pointer-events: none;
    transition: transform 0.1s ease-out;
}

.parallax-stars-1 {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(6,182,212,0.9), transparent),
        radial-gradient(2px 2px at 200px 60px, rgba(244,63,94,0.7), transparent),
        radial-gradient(2px 2px at 300px 50px, rgba(139,92,246,0.8), transparent),
        radial-gradient(2px 2px at 420px 120px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 550px 90px, rgba(6,182,212,0.7), transparent);
    background-size: 600px 200px;
    opacity: 0.7;
}

.parallax-stars-2 {
    background-image: 
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 160px 30px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 250px 20px, rgba(255,255,255,0.7), transparent),
        radial-gradient(1px 1px at 380px 70px, rgba(139,92,246,0.5), transparent),
        radial-gradient(1px 1px at 480px 45px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 520px 110px, rgba(6,182,212,0.5), transparent);
    background-size: 550px 150px;
    opacity: 0.5;
}

.parallax-stars-3 {
    background-image: 
        radial-gradient(1px 1px at 40px 70px, rgba(139,92,246,0.4), transparent),
        radial-gradient(1px 1px at 110px 55px, rgba(255,255,255,0.3), transparent),
        radial-gradient(1px 1px at 220px 85px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 340px 35px, rgba(6,182,212,0.3), transparent),
        radial-gradient(1px 1px at 450px 95px, rgba(255,255,255,0.35), transparent);
    background-size: 500px 120px;
    opacity: 0.4;
}

/* Container */
.container {
    width: 95%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    animation: fadeInUp 0.8s ease-out;
}

/* Header */
header {
    margin-bottom: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(
        135deg,
        #ff0055 0%,
        #8b5cf6 25%,
        #06b6d4 50%,
        #8b5cf6 75%,
        #ff0055 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -2px;
    animation: shimmer 15s linear infinite;
    text-shadow: 0 0 80px rgba(139, 92, 246, 0.5);
    position: relative;
}

h1::after {
    content: 'CVR NYE 2026';
    position: absolute;
    left: 0;
    top: 0;
    background: linear-gradient(135deg, #ff0055, #8b5cf6, #06b6d4);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: blur(30px);
    opacity: 0.5;
    z-index: -1;
}

.subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 0.5rem;
    font-weight: 400;
    letter-spacing: 4px;
    text-transform: uppercase;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Header Controls */
.header-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
    margin-top: 1.5rem;
    align-items: flex-end;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
}

.control-label {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Toggle Group - Glassmorphism */
.toggle-group {
    display: flex;
    gap: 0;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 5px;
    border-radius: 14px;
    position: relative;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.toggle-group:hover {
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(139, 92, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Sliding Background */
.toggle-bg {
    position: absolute;
    top: 5px;
    left: 5px;
    height: calc(100% - 10px);
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: -1;
    box-shadow: 
        0 4px 15px rgba(139, 92, 246, 0.4),
        0 0 30px rgba(6, 182, 212, 0.2);
}

.toggle-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    padding: 10px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    white-space: nowrap;
}

.toggle-btn:hover {
    color: rgba(255, 255, 255, 0.9);
}

.toggle-btn.active {
    color: #fff;
    background: transparent; 
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Timezone Info */
.timezone-info {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 1rem;
    font-variant-numeric: tabular-nums;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

#user-timezone {
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 600;
}

/* Zoom Controls - Floating Pill */
.controls {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    gap: 0.6rem;
    align-items: center;
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 100;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: fadeInUp 0.8s ease-out 0.6s backwards;
}

.controls:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(139, 92, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.controls button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.controls button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 50%;
}

.controls button:hover {
    transform: scale(1.15);
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

.controls button:hover::before {
    opacity: 1;
}

.controls button span,
.controls button:not(#reset-zoom) {
    position: relative;
    z-index: 1;
}

.controls button#reset-zoom {
    width: auto;
    padding: 0 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

#zoom-level {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    min-width: 50px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}

/* Timeline Wrapper */
.timeline-wrapper {
    position: relative;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius);
    background: rgba(10, 10, 20, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 450px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    animation: scaleIn 0.6s ease-out 0.5s backwards;
    transition: all 0.3s ease;
}

.timeline-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(139, 92, 246, 0.5), 
        rgba(6, 182, 212, 0.5), 
        transparent
    );
    animation: shimmer 4s linear infinite;
    background-size: 200% 100%;
}

/* Scroll Area */
.timeline-scroll-area {
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    flex: 1;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-primary) rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    cursor: grab;
}

.timeline-scroll-area:active {
    cursor: grabbing;
}

.timeline-scroll-area::-webkit-scrollbar {
    height: 10px;
}

.timeline-scroll-area::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 5px;
}

.timeline-scroll-area::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.timeline-scroll-area::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
}

/* Time Axis */
.time-axis-container {
    height: var(--header-height);
    background: rgba(15, 15, 25, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    flex-shrink: 0;
    will-change: width;
}

.time-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.06);
    padding-left: 10px;
    justify-content: flex-start;
    white-space: nowrap;
    transition: all 0.2s ease;
    font-variant-numeric: tabular-nums;
}

.time-marker:hover {
    color: rgba(255, 255, 255, 0.8);
}

.time-marker.day-marker {
    font-weight: 700;
    color: #fff;
    border-left: 2px solid var(--accent-primary);
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.15), transparent 50%);
    text-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
}

/* Events Container */
.events-track-container {
    position: relative;
    min-height: calc(100% - var(--header-height));
    flex: 1;
    will-change: width, background-size;
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: var(--timeline-hour-width) 100%;
}

/* Grid Lines */
.grid-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.04);
    pointer-events: none;
    transition: left 0.2s ease;
}

/* Event Blocks - Glassmorphism */
.event-block {
    position: absolute;
    height: var(--track-height);
    border-radius: var(--border-radius);
    padding: 1.2rem;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp 0.5s ease-out backwards;
}

/* Staggered animation for event blocks */
.event-block:nth-child(1) { animation-delay: 0.1s; }
.event-block:nth-child(2) { animation-delay: 0.15s; }
.event-block:nth-child(3) { animation-delay: 0.2s; }
.event-block:nth-child(4) { animation-delay: 0.25s; }
.event-block:nth-child(5) { animation-delay: 0.3s; }
.event-block:nth-child(6) { animation-delay: 0.35s; }
.event-block:nth-child(7) { animation-delay: 0.4s; }
.event-block:nth-child(8) { animation-delay: 0.45s; }

/* Animated gradient border */
.event-block::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: calc(var(--border-radius) + 2px);
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.5), 
        rgba(6, 182, 212, 0.5),
        rgba(244, 63, 94, 0.5),
        rgba(139, 92, 246, 0.5)
    );
    background-size: 300% 300%;
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 6s ease infinite;
}

.event-block:hover::before {
    opacity: 1;
}

.event-block:hover {
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(139, 92, 246, 0.2);
}

/* Event Color Schemes */
.event-block:nth-child(4n+1) { 
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.2) 0%, 
        rgba(88, 28, 135, 0.3) 100%
    );
    border-color: rgba(139, 92, 246, 0.3);
}
.event-block:nth-child(4n+1):hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(139, 92, 246, 0.3);
}

.event-block:nth-child(4n+2) { 
    background: linear-gradient(135deg, 
        rgba(244, 63, 94, 0.2) 0%, 
        rgba(136, 19, 55, 0.3) 100%
    );
    border-color: rgba(244, 63, 94, 0.3);
}
.event-block:nth-child(4n+2):hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(244, 63, 94, 0.3);
}

.event-block:nth-child(4n+3) { 
    background: linear-gradient(135deg, 
        rgba(6, 182, 212, 0.2) 0%, 
        rgba(14, 116, 144, 0.3) 100%
    );
    border-color: rgba(6, 182, 212, 0.3);
}
.event-block:nth-child(4n+3):hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(6, 182, 212, 0.3);
}

.event-block:nth-child(4n+4) { 
    background: linear-gradient(135deg, 
        rgba(234, 179, 8, 0.2) 0%, 
        rgba(161, 98, 7, 0.3) 100%
    );
    border-color: rgba(234, 179, 8, 0.3);
}
.event-block:nth-child(4n+4):hover {
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(234, 179, 8, 0.3);
}

/* Event Content */
.event-time {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.event-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --track-height: 100px;
        --header-height: 45px;
    }
    
    h1 { 
        font-size: 2.5rem; 
        letter-spacing: -1px;
    }
    
    .subtitle {
        font-size: 1rem;
        letter-spacing: 2px;
    }
    
    .header-controls {
        gap: 1rem;
    }
    
    .toggle-btn {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .event-title { font-size: 0.95rem; }
    .event-desc { display: none; }
    .event-block { padding: 1rem; }
    
    .controls {
        bottom: 12px;
        right: 12px;
        padding: 0.5rem 0.8rem;
    }
    
    .controls button {
        width: 32px;
        height: 32px;
    }
    
    body::after {
        opacity: 0.4;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    
    .toggle-group {
        padding: 3px;
    }
    
    .toggle-btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
    
    .container {
        padding: 1rem 0;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Selection Styling */
::selection {
    background: rgba(139, 92, 246, 0.4);
    color: #fff;
}

/* Focus States for Accessibility */
button:focus-visible {
    outline: 2px solid var(--accent-primary);
    outline-offset: 2px;
}

.toggle-btn:focus-visible {
    outline: 2px solid var(--accent-secondary);
    outline-offset: -2px;
}

/* ================================
   COUNTDOWN TIMER
   ================================ */

.countdown-container {
    margin: 1.5rem 0;
    padding: 1.5rem 2.5rem;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: fadeInUp 0.8s ease-out 0.25s backwards;
    position: relative;
    overflow: hidden;
}

.countdown-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.1) 0%, 
        rgba(6, 182, 212, 0.05) 50%,
        rgba(244, 63, 94, 0.1) 100%
    );
    pointer-events: none;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1rem;
    font-weight: 600;
    position: relative;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    position: relative;
}

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

.countdown-value {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
}

.countdown-unit {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.5rem;
    font-weight: 500;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.2);
    margin-bottom: 1.5rem;
    animation: pulse 1s ease-in-out infinite;
}

.countdown-event-name {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    margin-top: 1rem;
    font-weight: 600;
    position: relative;
    min-height: 1.2em;
}

.countdown-container.event-active {
    border-color: rgba(34, 197, 94, 0.4);
}

.countdown-container.event-active::before {
    background: linear-gradient(135deg, 
        rgba(34, 197, 94, 0.15) 0%, 
        rgba(6, 182, 212, 0.1) 100%
    );
}

.countdown-container.event-active .countdown-label {
    color: rgba(34, 197, 94, 0.9);
}

/* ================================
   NOW INDICATOR
   ================================ */

.now-indicator {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 50;
    pointer-events: none;
    display: none;
}

.now-indicator.visible {
    display: block;
}

.now-indicator-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        var(--accent-tertiary) 0%,
        var(--accent-primary) 50%,
        var(--accent-tertiary) 100%
    );
    box-shadow: 
        0 0 10px var(--accent-tertiary),
        0 0 20px var(--accent-tertiary),
        0 0 40px rgba(244, 63, 94, 0.3);
}

.now-indicator-label {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent-tertiary), var(--accent-primary));
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 10px;
    letter-spacing: 1px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.4);
}

/* Active Event Styling */
.event-block.event-active {
    border-color: rgba(34, 197, 94, 0.6) !important;
    box-shadow: 
        0 0 30px rgba(34, 197, 94, 0.3),
        inset 0 0 30px rgba(34, 197, 94, 0.1);
}

.event-block.event-active::after {
    content: 'LIVE';
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 6px;
    letter-spacing: 1px;
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.5);
}

.event-block.event-past {
    opacity: 0.5;
    filter: grayscale(0.3);
}

/* ================================
   EVENT MODAL
   ================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.5),
        0 0 100px rgba(139, 92, 246, 0.1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 25px;
    padding: 1px;
    background: linear-gradient(135deg, 
        rgba(139, 92, 246, 0.5), 
        rgba(6, 182, 212, 0.3),
        rgba(244, 63, 94, 0.5)
    );
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.4);
    color: var(--accent-tertiary);
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: 1.5rem;
    padding-right: 3rem;
}

.modal-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.modal-status.upcoming {
    background: rgba(139, 92, 246, 0.2);
    color: var(--accent-primary);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.modal-status.live {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.modal-status.ended {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0;
    background: linear-gradient(135deg, #fff, rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.modal-info-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.modal-info-row svg {
    flex-shrink: 0;
    color: var(--accent-secondary);
}

.modal-actions {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: none;
}

.modal-btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
}

.modal-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.5);
}

.modal-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* ================================
   RESPONSIVE ADDITIONS
   ================================ */

@media (max-width: 768px) {
    .countdown-container {
        padding: 1rem 1.5rem;
        margin: 1rem 0;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-segment {
        min-width: 50px;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    
    .modal {
        padding: 1.5rem;
        margin: 1rem;
        border-radius: 20px;
    }
    
    .modal-title {
        font-size: 1.4rem;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-btn {
        padding: 0.9rem 1.2rem;
    }
}

@media (max-width: 480px) {
    .countdown-value {
        font-size: 1.5rem;
    }
    
    .countdown-segment {
        min-width: 40px;
    }
    
    .countdown-unit {
        font-size: 0.6rem;
    }
}

/* ================================
   LOADING SCREEN
   ================================ */

@keyframes loadingPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

@keyframes loadingBar {
    0% { width: 0%; }
    100% { width: 100%; }
}

@keyframes loadingFadeOut {
    0% { opacity: 1; visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
}

.loading-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loadingFadeOut 0.5s ease-out 1.2s forwards;
}

.loading-content {
    text-align: center;
}

.loading-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: loadingPulse 1s ease-in-out infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 2px;
    animation: loadingBar 1s ease-out forwards;
}


/* ================================
   FOOTER
   ================================ */

.site-footer {
    margin-top: 1.5rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    animation: fadeInUp 0.8s ease-out 0.7s backwards;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.85rem;
}

.footer-brand {
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-divider {
    opacity: 0.3;
}

.event-count {
    color: rgba(255, 255, 255, 0.5);
}

.footer-shortcuts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

.shortcut-label {
    margin-right: 0.25rem;
}

kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    box-shadow: 
        0 1px 0 rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.footer-disclaimer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ================================
   ADDITIONAL RESPONSIVE
   ================================ */

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-shortcuts {
        display: none;
    }
}

@media (max-width: 480px) {
    .loading-logo {
        font-size: 3rem;
    }
    
    .loading-text {
        font-size: 1.2rem;
    }
    
    .loading-bar {
        width: 150px;
    }
}
