/* --- ALBION DOMINION MASTER STYLESHEET --- */

:root {
    --celestial-gold: #D4AF37;
    --stark-white: #F8F9FA;
    --deep-crimson: #8B0000;
    --void-black: #050a10;
    --hud-translucent: rgba(5, 10, 16, 0.9);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Rajdhani', sans-serif;
    background-color: var(--void-black);
    color: var(--stark-white);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4 {
    font-family: 'Cinzel', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }

/* --- BACKGROUND --- */
.starfield {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at bottom, #1a1f2e 0%, transparent 40%),
        url('https://www.transparenttextures.com/patterns/stardust.png'), 
        linear-gradient(to bottom, #000000, #09101a);
}

/* --- NAVIGATION --- */
nav {
    position: fixed;
    top: 0; width: 100%;
    background: var(--hud-translucent);
    border-bottom: 1px solid var(--celestial-gold);
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(5px);
}

.nav-logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--celestial-gold);
    font-size: 1.2rem;
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9rem; letter-spacing: 1px; color: var(--stark-white); }
.nav-links a:hover, .nav-links a.active { color: var(--celestial-gold); text-shadow: 0 0 5px var(--celestial-gold); }

/* --- HERO SECTION (Home Page) --- */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-subtitle { font-size: 1.2rem; color: var(--celestial-gold); margin-bottom: 1rem; letter-spacing: 3px; }
.hero-title { font-size: 4rem; margin-bottom: 2rem; text-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }

/* --- PAGE CONTENT CONTAINERS (Sub-pages) --- */
.page-container {
    margin-top: 80px; /* Space for fixed nav */
    padding: 4rem 2rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    flex: 1;
}

.lore-header {
    border-bottom: 2px solid var(--celestial-gold);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
}

.lore-header h1 { font-size: 3rem; color: var(--celestial-gold); }

/* --- TEXT BLOCKS --- */
.text-block {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 3px solid var(--celestial-gold);
}

.text-block h2 { color: var(--stark-white); margin-bottom: 1rem; }
.highlight { color: var(--celestial-gold); font-weight: bold; }

/* --- BUTTONS --- */
.cta-btn {
    padding: 1rem 2.5rem;
    border: 2px solid var(--celestial-gold);
    color: var(--celestial-gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.cta-btn:hover { background: var(--celestial-gold); color: var(--void-black); box-shadow: 0 0 20px var(--celestial-gold); }

/* --- FOOTER --- */
footer {
    padding: 2rem;
    text-align: center;
    background: rgba(0,0,0,0.8);
    border-top: 1px solid #333;
    margin-top: auto;
}

/* --- DROPDOWN MENU --- */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--hud-translucent);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.5);
    z-index: 1001;
    border: 1px solid var(--celestial-gold);
    top: 100%; /* Position right below the link */
    left: 0;
}

.dropdown-content a {
    color: var(--stark-white);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.dropdown-content a:hover {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--celestial-gold);
}

/* Show dropdown on hover (Desktop) */
.dropdown:hover .dropdown-content {
    display: block;
}

/* --- MOBILE ADJUSTMENTS FOR DROPDOWN --- */
@media (max-width: 768px) {
    .dropdown {
        width: 100%;
        text-align: center;
    }
    
    .dropdown-content {
        position: static; /* Stack vertically on mobile */
        display: none; /* Hidden by default */
        width: 100%;
        background-color: rgba(0,0,0,0.3);
        border: none;
        box-shadow: none;
    }
    
    /* On mobile, we might want it always open or click-to-open. 
       For simplicity here, let's just show them indented. */
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

/* --- HAMBURGER MENU STYLES (Add this before the media query) --- */
.nav-toggle {
    display: none; /* Hidden checkbox */
}

.nav-toggle-label {
    display: none; /* Hidden on desktop */
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle-label span {
    display: block;
    background: var(--celestial-gold);
    height: 2px;
    width: 25px;
    margin: 5px 0;
    transition: var(--transition);
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    
    nav {
        flex-wrap: wrap; /* Allows menu to drop down */
        padding: 1rem;
    }

    /* Show the hamburger icon */
    .nav-toggle-label {
        display: block;
    }

    /* Hide the links by default */
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: center;
        background: var(--void-black);
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        margin-top: 1rem;
        padding: 1rem 0;
    }

    .nav-links a {
        padding: 1rem 0;
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    /* The Magic: Show links when checkbox is checked */
    #nav-toggle:checked ~ .nav-links {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    /* Animate the hamburger icon into an X */
    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(2) {
        opacity: 0;
    }
    #nav-toggle:checked ~ .nav-toggle-label span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

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


/* --- MOBILE --- */
@media (max-width: 768px) {
    .hero-title { font-size: 2.5rem; }
    .nav-links { display: none; } /* Hide links on mobile for simplicity */
    nav { justify-content: center; }
}

