/* ==========================================================================
   EVENTS.CSS | THE HORIZON TIMES ROYAL MEDIA EXTENSION
   Includes: Sleek Smooth-Drift Carousels, SVG Globes, & Terminal Scanlines
   ========================================================================== */

/* --- 0. LOCAL VARIABLES & GLOBAL OVERRIDES --- */
:root {
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    --gold: #d4af37;
    --white: #ffffff;
    --dim: #a1a1aa;
    --bg: #050507;
}

.events-page { 
    padding-top: 0; /* Forced to 0 to prevent top-gap bleeding */
    width: 100%;
    overflow-x: hidden;
}

/* --- GLOBAL UTILITIES --- */
.events-page .section-label {
    width: max-content !important; 
    display: inline-block !important; 
    color: var(--dim) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.4) !important; /* Mapped to explicit gold */
    margin-bottom: 15px !important;
    font-family: var(--font-sans);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.royal-tags { 
    display: flex; 
    gap: 8px; 
    flex-wrap: wrap; 
}

.royal-tag {
    border: 1px solid rgba(212, 175, 55, 0.3) !important; 
    background: rgba(10, 10, 12, 0.8) !important;
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px); 
    color: var(--white) !important;
    padding: 5px 12px; 
    border-radius: 4px; 
    font-size: 9px; 
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: 1.5px; 
    text-transform: uppercase; 
    transition: all 0.3s ease;
}

.gold-diamond { 
    color: var(--gold); 
    font-size: 8px; 
    margin: 0 6px; 
    opacity: 0.6; 
}

/* --- 1. SLEEK DISCRETE HERO SLIDER --- */
.hero-slider-section { 
    position: relative; 
}

.slider-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
}

.slider-controls { 
    display: flex; 
    gap: 10px; 
}

.slider-btn { 
    width: 40px; 
    height: 40px; 
    border-radius: 50%; 
    border: 1px solid rgba(255, 255, 255, 0.2); 
    color: var(--white); 
    cursor: pointer; 
    background: transparent; 
    transition: 0.3s ease; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover { 
    background: var(--white); 
    color: var(--bg); 
}

.hero-slider-container { 
    display: flex; 
    gap: 25px; 
    overflow-x: auto; 
    padding-bottom: 20px; 
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.hero-slider-container::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

.hero-slide { 
    flex: 0 0 85vw; 
    max-width: 900px; 
    aspect-ratio: 16/9; 
    position: relative; 
    border-radius: 4px; 
    overflow: hidden; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    background: #000; /* Fallback */
}

.slide-bg-img { 
    position: absolute; 
    inset: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.7); 
    transition: transform 6s ease; 
}

.hero-slide:hover .slide-bg-img { 
    transform: scale(1.05); 
}

.slide-gradient-overlay { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(5, 5, 7, 0.95), transparent); 
}

/* Terminal Tech Overlay on Hero Images */
.slide-tech-border { 
    position: absolute; 
    inset: 20px; 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    z-index: 3; 
    pointer-events: none; 
}

.slide-tech-border::before, 
.slide-tech-border::after { 
    content: '+'; 
    position: absolute; 
    color: rgba(212, 175, 55, 0.5); 
    font-family: monospace; 
    font-size: 16px; 
    line-height: 0.5; 
}

.slide-tech-border::before { top: -4px; left: -4.5px; }
.slide-tech-border::after { bottom: -4px; right: -4.5px; }

.tech-coord { 
    position: absolute; 
    top: 10px; 
    left: 10px; 
    color: rgba(255, 255, 255, 0.3); 
    font-family: monospace; 
    font-size: 9px; 
    letter-spacing: 2px; 
}

.event-status-badge { 
    position: absolute; 
    top: 20px; 
    right: 20px; 
    background: rgba(0, 0, 0, 0.85); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15); 
    color: var(--white); 
    padding: 8px 16px; 
    border-radius: 4px; 
    font-family: var(--font-sans);
    font-size: 9px; 
    font-weight: 700; 
    letter-spacing: 2px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    z-index: 5; 
}

.pulse-dot { 
    width: 6px; 
    height: 6px; 
    background-color: var(--gold); 
    border-radius: 50%; 
    box-shadow: 0 0 10px var(--gold); 
    animation: pulse 2s infinite cubic-bezier(0.165, 0.84, 0.44, 1); 
}

@keyframes pulse { 
    0% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); } 
    70% { transform: scale(1); opacity: 1; box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); } 
    100% { transform: scale(0.95); opacity: 0.5; box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); } 
}

.slide-content { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    padding: 40px; 
    z-index: 4; 
}

.slide-headline { 
    font-family: var(--font-serif); 
    font-size: clamp(2rem, 4vw, 3rem); 
    color: var(--white); 
    margin: 10px 0; 
    line-height: 1.1;
}

.slide-desc { 
    font-family: var(--font-sans);
    font-size: 1.1rem; 
    color: #D4D4D8; 
    max-width: 600px; 
    margin-bottom: 20px; 
    line-height: 1.6; 
}

.slide-link { 
    font-family: var(--font-sans);
    font-size: 11px; 
    font-weight: 700; 
    color: var(--gold); 
    text-decoration: none; 
    border-bottom: 1px solid var(--gold); 
    padding-bottom: 2px; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    transition: 0.3s ease;
}

.slide-link:hover { 
    color: var(--white); 
    border-color: var(--white); 
}

/* --- 2. CHRONICLE SLIDER (SMOOTH DRIFT) --- */
.dispatches-section { 
    position: relative; 
    margin-top: 40px; 
    overflow: hidden; 
    padding: 20px 0;
}

/* Data Core Hexagon SVG Background */
.chronicle-bg-svg {
    position: absolute; 
    top: 50%; 
    left: -5%; 
    transform: translateY(-50%);
    width: 60vw; 
    max-width: 600px; 
    color: var(--gold); 
    opacity: 0.04;
    z-index: 0; 
    pointer-events: none;
    animation: slowHexSpin 150s linear infinite;
}

.chronicle-bg-svg svg { 
    width: 100%; 
    height: 100%; 
    filter: drop-shadow(0 0 20px var(--gold)); 
}

@keyframes slowHexSpin {
    from { transform: translateY(-50%) rotate(0deg); }
    to { transform: translateY(-50%) rotate(360deg); }
}

.chronicle-slider-container { 
    display: flex; 
    gap: 30px; 
    overflow-x: auto; 
    padding: 10px 0 40px 0; 
    scrollbar-width: none; 
    -ms-overflow-style: none;
    position: relative; 
    z-index: 2;
}

.chronicle-slider-container::-webkit-scrollbar { 
    display: none; 
}

.dispatch-card { 
    flex: 0 0 340px; 
    cursor: pointer; 
    transition: 0.4s ease; 
}

.dispatch-thumb { 
    aspect-ratio: 16/10; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-bottom: 15px; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    position: relative; 
}

.dispatch-thumb::after { 
    content: ''; 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 40%); 
    transition: opacity 0.5s; 
    opacity: 0.4; 
}

.dispatch-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: 0.8s ease; 
    filter: grayscale(30%); 
}

.chronicle-slider-container:hover .dispatch-card { 
    opacity: 0.4; 
    filter: grayscale(100%); 
}

.chronicle-slider-container .dispatch-card:hover { 
    opacity: 1; 
    filter: grayscale(0%); 
    transform: translateY(-5px); 
}

.dispatch-card:hover img { 
    transform: scale(1.05); 
    filter: grayscale(0%); 
}

.dispatch-card:hover .dispatch-thumb { 
    border-color: rgba(255, 255, 255, 0.3); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5); 
}

.dispatch-meta { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 10px; 
}

.dispatch-date { 
    font-family: var(--font-sans);
    font-size: 10px; 
    font-weight: 700; 
    letter-spacing: 1px; 
    color: var(--dim); 
}

.dispatch-title { 
    font-family: var(--font-serif); 
    font-size: 1.5rem; 
    color: var(--white); 
    margin: 0 0 10px 0; 
    transition: color 0.3s; 
    line-height: 1.3;
}

.dispatch-card:hover .dispatch-title { 
    color: var(--gold); 
}

.dispatch-excerpt { 
    font-family: var(--font-sans);
    color: #A1A1AA; 
    font-size: 0.95rem; 
    line-height: 1.6; 
}

/* --- 3. MILESTONES & GLOBE BACKGROUND --- */
.milestone-section { 
    position: relative; 
    padding: 40px 0; 
    margin-top: 40px; 
    overflow: hidden; 
}

/* Technical Dot Grid Background */
.dot-matrix-bg::before {
    content: ''; 
    position: absolute; 
    inset: -40px -20px; 
    z-index: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 25px 25px; 
    mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Massive Background SVG Globe */
.milestone-bg-icon {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%);
    width: 90vw; 
    max-width: 900px; 
    opacity: 0.04; 
    z-index: 1; 
    pointer-events: none;
    animation: slowGlobeSpin 120s linear infinite;
}

.milestone-bg-icon svg { 
    width: 100%; 
    height: 100%; 
    color: var(--gold); 
    filter: drop-shadow(0 0 20px var(--gold)); 
}

@keyframes slowGlobeSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.milestone-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
    position: relative; 
    z-index: 2; 
}

.milestone-box { 
    padding: 40px 30px; 
    background: rgba(15, 15, 18, 0.7); 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.05); 
    border-radius: 4px; 
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); 
    display: flex; 
    flex-direction: column; 
}

.milestone-box:hover { 
    background: rgba(212, 175, 55, 0.03); 
    border-color: rgba(212, 175, 55, 0.3); 
    transform: translateY(-8px); 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8); 
}

/* SVG Icon Styling */
.m-icon { 
    width: 35px; 
    height: 35px; 
    color: var(--gold); 
    margin-bottom: 25px; 
    opacity: 0.8; 
    transition: 0.4s; 
}

.milestone-box:hover .m-icon { 
    opacity: 1; 
    transform: scale(1.1); 
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.5)); 
}

.m-icon svg { 
    width: 100%; 
    height: 100%; 
}

.m-stat { 
    display: block; 
    font-family: var(--font-serif); 
    font-size: 4rem; 
    color: var(--white); 
    line-height: 1; 
    margin-bottom: 5px; 
}

.m-label { 
    display: block; 
    font-family: var(--font-sans);
    font-size: 10px; 
    font-weight: 700; 
    color: var(--gold); 
    letter-spacing: 2px; 
    margin-bottom: 15px;
    text-transform: uppercase;
}

.m-text { 
    font-family: var(--font-sans);
    font-size: 0.95rem; 
    color: var(--dim); 
    line-height: 1.6; 
}

/* --- 4. FORM & SCAN LINE --- */
.suggest-module { 
    position: relative; 
    border-radius: 4px; 
    overflow: hidden; 
    margin-bottom: 60px; 
}

.terminal-scan { 
    position: absolute; 
    inset: 0; 
}

.terminal-scan img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    filter: brightness(0.2) contrast(1.2) grayscale(100%); 
}

/* Sci-Fi Scan Line */
.scan-line { 
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 5px; 
    background: rgba(212, 175, 55, 0.3); 
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.5); 
    opacity: 0.5; 
    animation: scan 8s linear infinite; 
    pointer-events: none; 
}

@keyframes scan { 
    0% { transform: translateY(-100%); } 
    100% { transform: translateY(800px); } 
}

.suggest-glass-panel { 
    position: relative; 
    padding: 80px 60px; 
    backdrop-filter: blur(15px); 
    -webkit-backdrop-filter: blur(15px);
    background: linear-gradient(135deg, rgba(10, 10, 12, 0.8), rgba(5, 5, 7, 0.95)); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    text-align: center; 
    z-index: 2;
}

.royal-pitch-form { 
    max-width: 700px; 
    margin: 0 auto; 
    display: flex; 
    flex-direction: column; 
    gap: 30px; 
    text-align: left;
}

.form-row { 
    display: flex; 
    gap: 30px; 
}

.input-group { 
    position: relative; 
    flex: 1; 
}

.pitch-input { 
    width: 100%; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
    padding: 15px 0; 
    color: var(--white); 
    font-family: var(--font-serif); 
    font-size: 1.1rem; 
    font-style: italic; 
    outline: none; 
    transition: 0.3s ease; 
}

.pitch-input::placeholder { 
    color: rgba(255, 255, 255, 0.3); 
}

/* Dropdown */
.custom-dropdown { 
    position: relative; 
    cursor: pointer; 
    user-select: none; 
}

.dropdown-selected { 
    width: 100%; 
    background: transparent; 
    border: none; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
    padding: 15px 0; 
    color: rgba(255, 255, 255, 0.3); 
    font-size: 1.1rem; 
    font-family: var(--font-serif); 
    font-style: italic; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.dropdown-selected.has-value { 
    color: var(--white); 
} 

.dropdown-arrow { 
    transition: transform 0.4s ease; 
    color: var(--dim); 
}

.custom-dropdown.active .dropdown-arrow { 
    transform: rotate(180deg); 
    color: var(--gold); 
}

.dropdown-options { 
    position: absolute; 
    top: calc(100% + 5px); 
    left: 0; 
    width: 100%; 
    background: rgba(15, 15, 18, 0.95); 
    backdrop-filter: blur(25px); 
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 4px; 
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8); 
    z-index: 100; 
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-10px); 
    transition: all 0.3s ease; 
    overflow: hidden; 
}

.custom-dropdown.active .dropdown-options { 
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0); 
}

.dropdown-option { 
    padding: 15px 20px; 
    color: var(--dim); 
    font-size: 0.9rem; 
    font-family: var(--font-sans); 
    font-weight: 500; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); 
    transition: 0.3s ease; 
}

.dropdown-option:last-child { 
    border-bottom: none; 
}

.dropdown-option:hover { 
    background: rgba(212, 175, 55, 0.1); 
    color: var(--gold); 
    padding-left: 25px; 
}

.input-glow-line { 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0%; 
    height: 1px; 
    background: var(--gold); 
    transition: width 0.5s ease; 
    box-shadow: 0 0 10px var(--gold); 
}

.pitch-input:focus ~ .input-glow-line, 
.pitch-input:valid ~ .input-glow-line, 
.custom-dropdown.active .input-glow-line, 
.custom-dropdown.has-value .input-glow-line { 
    width: 100%; 
}

.pitch-submit-btn { 
    align-self: flex-start; 
    padding: 15px 35px; 
    border: 1px solid rgba(255, 255, 255, 0.3); 
    color: var(--white); 
    background: transparent; 
    cursor: pointer; 
    transition: 0.3s ease; 
    font-family: var(--font-sans);
    font-size: 10px; 
    font-weight: 700; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    border-radius: 4px;
}

.pitch-submit-btn:hover { 
    background: var(--white); 
    color: var(--bg); 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); 
    border-color: var(--white); 
}

/* --- 5. RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1024px) {
    .hero-slide { 
        flex: 0 0 90vw; 
    }
    
    .slide-content { 
        padding: 30px 20px; 
    }
    
    .dispatch-card { 
        flex: 0 0 80vw; 
    }
    
    .form-row { 
        flex-direction: column; 
        gap: 30px; 
    }
    
    .suggest-glass-panel { 
        padding: 60px 30px; 
    }
    
    .milestone-bg-icon { 
        width: 120vw; 
    }
    
    .chronicle-bg-svg { 
        width: 100vw; 
        left: -20%; 
    }
}