/* --- 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;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    /* Ensure no underline on the text/image combo */
}

.nav-logo-img {
    height: 1.8rem;
    width: auto;
}

.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-logo {
    height: 150px;
    width: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.3));
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.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;
    }
}

/* --- UTILITIES & COMMON STYLES --- */
.text-center {
    text-align: center;
}

.text-white {
    color: var(--stark-white);
}

.text-gold {
    color: var(--celestial-gold);
}

.text-crimson {
    color: var(--deep-crimson);
}

.text-red {
    color: #ff4444;
}

.text-purple {
    color: #a855f7;
}

/* Unified purple */
.text-deep-purple {
    color: #800080;
}

.text-blue {
    color: #4a90e2;
}

.text-green {
    color: #2ecc71;
}

.bg-transparent {
    background: transparent;
}

.border-none {
    border: none;
}

.cursor-default {
    cursor: default;
}

.mt-1 {
    margin-top: 1rem;
}

.mt-3 {
    margin-top: 3rem;
}

.mb-1 {
    margin-bottom: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.ml-1 {
    margin-left: 1rem;
}

.ml-1-5 {
    margin-left: 1.5rem;
}

.ml-2 {
    margin-left: 2rem;
}

.list-square {
    list-style-type: square;
}

.list-inside {
    list-style-position: inside;
}

.list-mb-item li {
    margin-bottom: 0.5rem;
}

.italic {
    font-style: italic;
}

.opacity-80 {
    opacity: 0.8;
}

/* Border Colors */
.border-white {
    border-color: var(--stark-white);
}

.border-crimson {
    border-color: var(--deep-crimson);
}

/* Left Borders for Text Blocks */
.border-left-white {
    border-left-color: var(--stark-white);
}

.border-left-gold {
    border-left-color: var(--celestial-gold);
}

.border-left-crimson {
    border-left-color: var(--deep-crimson);
}

.border-left-red {
    border-left-color: #ff4444;
}

.border-left-blue {
    border-left-color: #4a90e2;
}

.border-left-purple {
    border-left-color: #800080;
}

/* Matches deep purple */
.border-left-light-purple {
    border-left-color: #a855f7;
}

.border-left-green {
    border-left-color: #2ecc71;
}

.bg-gold-gradient {
    background: linear-gradient(to right, rgba(212, 175, 55, 0.05), transparent);
}

.bg-gold-tint {
    background: rgba(212, 175, 55, 0.1);
}

/* --- COMPONENT SPECIFIC --- */

/* Navigation */
.nav-join-btn {
    color: var(--celestial-gold);
    border: 1px solid var(--celestial-gold);
    padding: 0.2rem 0.5rem;
    width: auto;
    display: inline-block;
}

/* Footer */
.footer-text {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* 404 Page */
.page-404-body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
}

.title-404 {
    font-size: 5rem;
    color: var(--deep-crimson);
}

/* Hero Section */
.hero-desc {
    max-width: 600px;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn-secondary {
    border-color: var(--stark-white);
    color: var(--stark-white);
}

/* Quotes */
.quote-text {
    font-size: 1.2rem;
    font-style: italic;
    max-width: 800px;
    margin: 0 auto;
}

/* Hierarchy / Components */
.hierarchy-header {
    margin-top: 4rem;
    border-bottom: 1px dashed var(--stark-white);
}

.separator-line {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

.discord-directive {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid #444;
}

.landmarks-container {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}


.fs-2rem {
    font-size: 2rem;
}

.fs-1-2 {
    font-size: 1.2rem;
}

.mt-1-5 {
    margin-top: 1.5rem;
}

.mb-0-5 {
    margin-bottom: 0.5rem;
}