/* ============================================
   TIMBUKTU MAINTENANCE PAGE CSS - RESPONSIVE
   ============================================ */

/* Font Setup */
@font-face {
    font-family: 'Cinzel';
    src: url('/assets/fonts/Cinzel-VariableFont_wght.ttf') format("truetype");
}

/* Reset all browser defaults */
* {
    margin: 0;
    padding: 0;
    font-family: 'Cinzel', serif;
    box-sizing: border-box;
}

/* Body styling with elegant background */
body {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #fff;
}

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --gold:    #FFD700;
    --gold-d:  #B8860B;
    --gold-l:  #FFC200;
    --black:   #000;
    --ink:     #0a0814;
    --dark:    #0d0d0d;
    --silver:  #C0C0C0;
    --white:   #fff;
    --header-h: 84px;
    --fade-dur: 1.25s;
}

/* ── RESET & BASE ────────────────────────────────────────── */
html { scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
::-webkit-scrollbar { display: none; }
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Cinzel', serif; }
body { overflow-x: hidden; background: var(--black); color: var(--white); }

/* ── PAGE-LOAD ANIMATIONS (pure CSS) ─────────────────────── */
.header-container { animation: slideDown 1.25s ease .1s both; }
main              { animation: fadeUp   1.56s ease .9s  both; }

@keyframes slideDown { from { opacity:0; transform:translateY(-10px); } to { opacity:1; transform:none; } }
@keyframes fadeUp    { from { opacity:0; transform:translateY(12px);  } to { opacity:1; transform:none; } }

/* ── SCROLL FADE (JS adds/removes .visible) ──────────────── */
.fade-in, .fade-section, .fade-content {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--fade-dur) ease, transform var(--fade-dur) ease;
}
.fade-in.visible, .fade-section.visible, .fade-content.visible {
    opacity: 1; transform: none;
}

/* ── HEADER ──────────────────────────────────────────────── */
header { position: fixed; top:0; left:0; right:0; z-index:1000; }

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    background: rgba(0,0,0,.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,215,0,.22);
    padding: 10px 28px;
    gap: 16px;
    height: var(--header-h);
}

/* Logo cycling */
.logo-images { position:relative; width:60px; height:60px; flex:0 0 60px; }
.logo-images img { position:absolute; opacity:0; animation: switchImg 9s steps(1) infinite; }
.logo-rock { width:60px; height:60px; }
.logo-coin { width:34px; height:34px; top:50%; left:50%; transform:translate(-50%,-50%); }
.logo-bar  { width:60px; height:60px; }
.logo-images img:nth-child(1) { animation-delay:0s; }
.logo-images img:nth-child(2) { animation-delay:3s; }
.logo-images img:nth-child(3) { animation-delay:6s; }
@keyframes switchImg { 0%{opacity:1;} 33.5%{opacity:0;} 100%{opacity:0;} }

/* Brand name */
.header-logo {
    flex:1; text-align:center;
    font-size:24px; font-weight:700; color:var(--gold);
    letter-spacing:6px; white-space:nowrap;
    text-shadow: 0 0 18px rgba(255,215,0,.4);
}

/* Mobile toggle */
.nav-toggle-input { display:none; }
.hamburger {
    display:none; flex-direction:column; gap:5px;
    cursor:pointer; padding:8px; flex:0 0 auto;
    border:1px solid rgba(255,215,0,.3); border-radius:8px;
    transition:border-color .2s;
}
.hamburger:hover { border-color:var(--gold); }
.hamburger .bar { display:block; width:22px; height:2px; background:var(--gold); border-radius:2px; }

/* Nav */
.header-links { display:flex; align-items:center; flex:0 0 auto; }
.nav-list { display:flex; list-style:none; align-items:center; gap:4px; }

.nav-item a {
    display:block; position:relative;
    color:rgba(255,255,255,.75); text-decoration:none;
    padding:8px 13px; font-size:13px; white-space:nowrap;
    letter-spacing:1px; border-radius:6px;
    transition:color .2s, background .2s;
}
.nav-item a::after {
    content:''; position:absolute; bottom:3px; left:50%;
    width:0; height:2px; background:var(--gold);
    border-radius:2px; transform:translateX(-50%);
    transition:width .25s ease;
}
.nav-item a:hover        { color:var(--gold); background:rgba(255,215,0,.07); }
.nav-item a:hover::after { width:calc(100% - 26px); }
.nav-item a:active       { color:var(--gold-d); }

@media (max-width:900px) {
    .header-container { flex-wrap:wrap; padding:10px 16px; height:auto; }
    .hamburger  { display:flex; order:3; }
    .logo-images{ order:1; }
    .header-logo{ order:2; flex:1; }
    .header-links {
        order:4; width:100%; overflow:hidden;
        max-height:0; flex:1 0 100%;
        border-top:0 solid transparent;
        transition:max-height .4s ease, border-top .4s;
    }
    .nav-toggle-input:checked ~ .header-links {
        max-height:500px;
        border-top:1px solid rgba(255,215,0,.15);
    }
    .nav-list { flex-direction:column; gap:4px; padding:10px 0; width:100%; align-items:stretch; }
    .nav-item { width:100%; text-align:center; }
    .nav-item a { display:block; width:100%; padding:12px 0; font-size:15px; color:rgba(255,255,255,.85); }
    .nav-item a::after { display:none; }
    .nav-item a:hover  { color:var(--gold); background:rgba(255,215,0,.08); }
}


/* ============================================
   MAIN MAINTENANCE SECTION
   ============================================ */
.maintenance-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 20px 60px;
    position: relative;
    overflow: hidden;
}

/* Subtle background pattern */
.maintenance-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 215, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 192, 192, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.maintenance-container {
    max-width: 800px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

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

/* Logo container with elegant animation */
.logo-container {
    margin-bottom: 40px;
    animation: logoFloat 3s ease-in-out infinite;
}

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

.maintenance-logo {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.3));
    transition: all 0.3s ease;
}

.maintenance-logo:hover {
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.5));
    transform: scale(1.05);
}

/* Content styling */
.maintenance-content {
    padding: 20px;
}

.maintenance-title {
    font-size: 48px;
    font-weight: 600;
    color: #FFD700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from {
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    }
    to {
        text-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
    }
}

/* Elegant divider */
.divider {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    margin: 0 auto 30px;
    animation: dividerExpand 2s ease-in-out infinite alternate;
}

@keyframes dividerExpand {
    from {
        width: 100px;
    }
    to {
        width: 150px;
    }
}

.maintenance-text {
    font-size: 24px;
    color: #C0C0C0;
    margin-bottom: 15px;
    font-weight: 300;
    line-height: 1.6;
}

.maintenance-subtext {
    font-size: 16px;
    color: #999;
    margin-bottom: 40px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Call-to-action button */
.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 36px;
    font-size: 18px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.cta-button:hover {
    background-color: #FFD700;
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.3);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

/* ============================================
   FOOTER
   ============================================ */
.maintenance-footer {
    background-color: #000;
    padding: 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets and smaller screens */
@media screen and (max-width: 768px) {
    .header-container {
        padding: 15px 20px;
        gap: 20px;
    }
    
    .header-logo {
        font-size: 24px;
    }
    
    .nav-list {
        gap: 20px;
    }
    
    .nav-item a:link {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .maintenance-logo {
        width: 150px;
        height: 150px;
    }
    
    .maintenance-title {
        font-size: 36px;
    }
    
    .maintenance-text {
        font-size: 20px;
    }
    
    .maintenance-subtext {
        font-size: 14px;
    }
    
    .cta-button {
        font-size: 16px;
        padding: 12px 30px;
    }
}

/* Mobile phones */
@media screen and (max-width: 480px) {
    .header-container {
        flex-direction: column;
        padding: 10px 15px;
        gap: 15px;
    }
    
    .header-logo {
        font-size: 20px;
        flex: 1;
    }
    
    .nav-list {
        gap: 10px;
        flex-direction: column;
    }
    
    .nav-item a:link {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .maintenance-main {
        padding: 100px 15px 40px;
    }
    
    .maintenance-logo {
        width: 120px;
        height: 120px;
    }
    
    .maintenance-title {
        font-size: 28px;
        letter-spacing: 1px;
    }
    
    .maintenance-text {
        font-size: 18px;
    }
    
    .maintenance-subtext {
        font-size: 13px;
        padding: 0 10px;
    }
    
    .cta-button {
        font-size: 14px;
        padding: 10px 25px;
    }
}