/* ==========================================================================
   💎 LevelDown XI - Premium UI Stylesheet
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600;700;900&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
    --bg-main: #0a0a0c;
    --bg-card: rgba(25, 25, 30, 0.55);
    --bg-darker: rgba(12, 12, 15, 0.8);
    --primary: #ff9000;
    --primary-hover: #ffaa33;
    --text-main: #f0f0f5;
    --text-muted: #8f8f9d;
    --success: #10b981;
    --success-hover: #34d399;
    --danger: #ef4444;
    --border-glow: rgba(255, 144, 0, 0.15);
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
    letter-spacing: 0.3px;
}

/* 🧭 UPGRADED PREMIUM NAVIGATION BAR */
nav {
    position: sticky;
    top: 0;
    background-color: rgba(14, 14, 18, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding: 0.85rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* 🏷️ BRAND TEXT LOGO ENGINE */
.server-logo {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 2px;
    text-decoration: none;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: transform 0.2s;
}
.server-logo:hover { transform: scale(1.02); }
.server-logo span { color: var(--primary); text-shadow: 0 0 12px var(--border-glow); }

/* Custom class if you decide to drop a graphic .PNG file in later */
.logo-image {
    height: 38px;
    width: auto;
    object-fit: contain;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
}

nav ul li { margin-left: 2rem; }

nav ul li a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s;
}
nav ul li a:hover, nav ul li a.active { color: var(--primary); text-shadow: 0 0 8px var(--border-glow); }

/* 🌟 HIGH-END HERO AREA */
.hero { 
    text-align: center; 
    padding: 6rem 2rem 4rem 2rem;
    position: relative;
}

h1 {
    font-family: 'Cinzel', serif;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
    font-size: 3.8rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
}
h1 span {
    color: var(--primary);
    background: linear-gradient(135deg, var(--primary) 30%, #ffbe66 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tagline {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* 📊 TELEMETRY MODULE GLASS PANEL DESIGN */
.main-intro-block, .telemetry-widget, .specs-card, .panel-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.main-intro-block:hover, .telemetry-widget:hover, .specs-card:hover {
    border-color: rgba(255, 144, 0, 0.25);
    box-shadow: 0 8px 32px 0 rgba(255, 144, 0, 0.03);
}

h2, h3 {
    font-family: 'Cinzel', serif;
    letter-spacing: 1px;
}

.spec-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.8px;
}

/* 🕹️ CHROMATIC ACTION BUTTON */
.btn {
    background: linear-gradient(135deg, var(--primary) 0%, #e07b00 100%);
    color: #000000;
    padding: 0.85rem 2.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 4px 20px rgba(255, 144, 0, 0.15);
}
.btn:hover { 
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary) 100%);
    box-shadow: 0 4px 25px rgba(255, 144, 0, 0.3);
    transform: translateY(-1px);
}

/* 🎥 AMBIENT LAUNCHER BACKGROUND VIDEO MATRIX */
.video-background {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.14; 
    z-index: -1;
    pointer-events: none;
}

/* ==========================================================================
   🌐 GLOBAL UI DROPDOWN & MENU OVERRIDES (WEB BANK / VAULT FIXES)
   ========================================================================== */
   
/* Force EVERY select menu on the entire site (including the Web Vault) to have white text */
select,
input[type="select"],
.storage-menu,
[class*="vault"] select,
[id*="vault"] {
    background-color: #141418 !important;
    color: #ffffff !important; /* 🌟 Forces the text to pure white */
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    outline: none !important;
}

/* Force the drop-down pop-out option lists to obey and remain readable */
select option,
.storage-menu option,
select optgroup {
    background-color: #141418 !important;
    color: #ffffff !important; /* 🌟 Forces options inside the vault menu to white */
    padding: 8px !important;
}

/* Subtle glow effect when players click or hover on a selector box */
select:focus, 
select:hover {
    border-color: #ff9000 !important; /* Matches your premium orange accent line */
    box-shadow: 0 0 8px rgba(255, 144, 0, 0.2) !important;
}
/* ==========================================================================
   📱 PHONES AND SMALL TABLETS
   Pages keep their own styles; these rules only kick in on narrow screens.
   ========================================================================== */
@media (max-width: 820px) {
    html, body { overflow-x: hidden; }
    img, video, iframe { max-width: 100%; height: auto; }

    /* menu: logo on its own row, links in one row you can swipe sideways */
    nav, .top-nav {
        flex-wrap: wrap !important;
        gap: 0.5rem !important;
        padding: 0.6rem 1rem !important;
    }
    nav ul, .nav-links {
        width: 100%;
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 1.1rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.2rem;
    }
    nav ul::-webkit-scrollbar, .nav-links::-webkit-scrollbar { display: none; }
    nav ul li { margin-left: 0 !important; flex: 0 0 auto; }
    nav ul li a, .nav-links a { white-space: nowrap; margin-left: 0 !important; font-size: 0.85rem; }
    #nav-auth-link { margin-left: 0 !important; }
    .top-nav > div[style*="margin-left: auto"] {
        margin-left: 0 !important;
        width: 100%;
        justify-content: space-between;
        gap: 0.75rem !important;
    }

    /* headings and page width */
    h1 { font-size: 2.1rem !important; letter-spacing: 2px !important; }
    h2 { font-size: 1.4rem; }
    .hero { padding: 2.5rem 1rem 1.5rem !important; }
    main { margin-top: 1.25rem !important; margin-bottom: 1.25rem !important; padding: 0 0.75rem !important; }

    /* side-by-side boxes stack */
    [style*="grid-template-columns: 1fr 1fr"],
    .profile-two-col,
    .wiki-layout,
    .telemetry-deck { grid-template-columns: 1fr !important; }
    [style*="min-width: 300px"] { min-width: 0 !important; }
    .profile-head { flex-wrap: wrap; gap: 1rem; }
    .client-card { padding: 1.25rem !important; }

    /* wide tables scroll sideways instead of squashing the page */
    table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    th[style*="width"], td[style*="width"] { width: auto !important; }

    /* inputs: 16px stops iPhones zooming in when you tap a field */
    input, select, textarea { font-size: 16px !important; max-width: 100%; }
}

/* the LD Companion app link in every menu */
.app-link { color: var(--primary) !important; }
