/* ==========================================================================
   1. GLOBAL VARIABLES & RESET
   ========================================================================== */
:root {
    --bg-color: #050505;
    --surface: rgba(30, 41, 59, 0.5);
    --surface-hover: rgba(99, 102, 241, 0.2);
    --border: rgba(255, 255, 255, 0.1);
    --border-hover: #818cf8;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #6366f1;
    
    --role-dps: #ef4444;
    --role-tank: #3b82f6;
    --role-heal: #10b981;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 15% 50%, rgba(99, 102, 241, 0.15), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.15), transparent 25%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    overflow-x: hidden; /* Hard stop on horizontal scrolling */
}

/* ==========================================================================
   2. SITE-WIDE LAYOUT ELEMENTS
   ========================================================================== */
.container { 
    width: 100%; 
    max-width: 1200px; 
    margin: 30px auto 0 auto; 
    padding: 0 20px 40px 20px;
    flex-grow: 1; /* Pushes footer to bottom on short pages */
}

/* For narrower text-heavy pages like About, Legal, and Guides */
.container-narrow {
    max-width: 800px;
}

.header { 
    text-align: center; 
    margin-bottom: 40px; 
    margin-top: 20px; 
}

h1 { 
    margin: 0 0 10px 0; 
    font-size: 2.8rem; 
    font-weight: 800; 
    letter-spacing: -1px; 
}

p { 
    color: var(--text-muted); 
    margin: 0; 
    font-size: 1.1rem; 
}

/* Glassmorphic content box for text pages */
.content-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 40px;
    backdrop-filter: blur(10px);
    line-height: 1.7;
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 40px;
}

.content-box h2 {
    color: var(--accent);
    font-size: 1.4rem;
    font-weight: 800;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.content-box h2:first-of-type { 
    margin-top: 0; 
}

.content-box p { 
    margin-bottom: 20px; 
    color: var(--text-muted); 
}

.content-box strong { 
    color: var(--text-main); 
}

/* ==========================================================================
   3. STICKY GLASSMORPHIC HEADER NAVIGATION (FIXED SUBMENU)
   ========================================================================== */
.site-header {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 2000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -1px;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

.nav-list li {
    position: relative;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.arrow {
    font-size: 0.7rem;
    transition: transform 0.2s;
}

/* Dropdowns */
.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0; /* Align to right edge so it doesn't spill off page */
    left: auto;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    list-style: none;
    padding: 8px 0;
    margin: 10px 0 0 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s;
}

.dropdown-menu li a:hover {
    color: var(--text-main);
    background: rgba(99, 102, 241, 0.15);
}

/* Submenu dropdown - Opens to the LEFT to prevent page overflow */
.nested-dropdown {
    position: relative;
}

.nested-menu {
    position: absolute;
    top: 0;
    right: 100%; /* Push to left side of menu */
    left: auto;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0 5px 0 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all 0.25s ease;
}

.nested-dropdown:hover .nested-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* Position the 3rd-level class menu to pop out to the right */
.nested-dropdown-class {
    position: relative;
}
.nested-dropdown-class .class-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
}
.nested-dropdown-class:hover .class-menu {
    display: block;
}

/* ==========================================================================
   4. HOME CHEAT SHEET STYLES (SPECS GRID & MODAL)
   ========================================================================== */
.filter-nav { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; }
.filter-btn {
    background: var(--surface); border: 1px solid var(--border); color: var(--text-main);
    padding: 10px 20px; border-radius: 8px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; backdrop-filter: blur(10px);
}
.filter-btn.active, .filter-btn:hover { border-color: var(--accent); background: rgba(99, 102, 241, 0.2); }

.specs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }
.spec-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    padding: 20px; backdrop-filter: blur(10px); transition: all 0.2s;
    display: flex; flex-direction: column; cursor: pointer;
}
.spec-card:hover { transform: translateY(-3px); border-color: var(--border-hover); box-shadow: 0 10px 20px rgba(0,0,0,0.2); }

.class-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 5px; display: flex; justify-content: space-between; align-items: center; }
.role-badge { font-size: 0.7rem; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; font-weight: 800; }
.role-badge.role-dps { background: rgba(239, 68, 68, 0.2); color: var(--role-dps); border: 1px solid var(--role-dps); }
.role-badge.role-tank { background: rgba(59, 130, 246, 0.2); color: var(--role-tank); border: 1px solid var(--role-tank); }
.role-badge.role-heal { background: rgba(16, 185, 129, 0.2); color: var(--role-heal); border: 1px solid var(--role-heal); }

.stat-priority { font-size: 0.95rem; color: var(--text-main); font-weight: 600; margin: 10px 0; }
.stat-highlight { color: var(--accent); }
.spec-notes { font-size: 0.85rem; color: var(--text-muted); line-height: 1.5; margin: 0; }

/* Modals */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(8px);
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 1000;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal-content {
    background: rgba(15, 23, 42, 0.95); border: 1px solid var(--accent);
    border-radius: 16px; width: 90%; max-width: 700px; max-height: 90vh;
    overflow-y: auto; padding: 30px; position: relative;
    transform: translateY(20px); transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}
.modal-overlay.open .modal-content { transform: translateY(0); }

.close-btn {
    position: absolute; top: 20px; right: 20px; background: none;
    border: none; color: var(--text-muted); font-size: 1.5rem;
    cursor: pointer; transition: color 0.2s;
}
.close-btn:hover { color: var(--accent); }

.modal-section { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--border); }
.modal-section-title { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; color: var(--accent); font-weight: 800; margin-bottom: 15px; }

.rotation-sequence { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 0.9rem; font-weight: 600; color: var(--text-main); margin-bottom: 10px; }
.spell-item { display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.4); padding: 6px 10px 6px 6px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.05); }
.spell-icon { width: 24px; height: 24px; border-radius: 4px; border: 1px solid var(--border); }
.sequence-arrow { color: var(--text-muted); font-weight: 800; font-size: 1.1rem; }

.consumes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.consume-item { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 8px; border: 1px solid var(--border); }
.consume-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; font-weight: 800; margin-bottom: 4px; }
.buff-stat { color: #39ff14; font-size: 0.85rem; font-weight: 800; margin-top: 2px; text-shadow: 0 0 5px rgba(57, 255, 20, 0.4); }

.utility-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.utility-item { background: rgba(0,0,0,0.3); padding: 12px; border-radius: 8px; border-left: 3px solid var(--accent); display: flex; flex-direction: column; gap: 4px; }
.utility-name-row { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.95rem; color: var(--text-main); }
.utility-note { font-size: 0.85rem; color: var(--text-muted); }
.utility-text { font-size: 0.95rem; line-height: 1.6; color: var(--text-main); background: rgba(0,0,0,0.3); padding: 15px; border-radius: 8px; border-left: 3px solid var(--accent); }

.loading-text { text-align: center; width: 100%; color: var(--text-muted); font-size: 1.2rem; padding: 40px; }

/* ==========================================================================
   5. CLASS GUIDE SPECIFIC STYLES
   ========================================================================== */
.cta-box { 
    background: rgba(99, 102, 241, 0.1); 
    border: 1px solid var(--accent); 
    padding: 20px; 
    border-radius: 8px; 
    text-align: center; 
    margin-top: 30px; 
}
.cta-box a { 
    color: #fff; 
    background: var(--accent); 
    padding: 10px 20px; 
    border-radius: 6px; 
    text-decoration: none; 
    font-weight: bold; 
    display: inline-block; 
    margin-top: 10px; 
    transition: background 0.2s; 
}
.cta-box a:hover { 
    background: #4f46e5; 
}

/* ==========================================================================
   6. CONTACT & LEGAL PAGES SPECIALTIES
   ========================================================================== */
.contact-info { 
    margin-top: 20px; 
    font-size: 1.1rem; 
    color: var(--text-muted); 
}
.email-link { 
    color: var(--accent); 
    font-weight: 800; 
    text-decoration: none; 
    font-size: 1.3rem; 
}

/* ==========================================================================
   7. FOOTER STYLES
   ========================================================================== */
footer {
    width: 100%;
    max-width: 800px;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin: 40px auto 20px auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}

.copyright {
    color: rgba(148, 163, 184, 0.5);
    font-size: 0.8rem;
}

/* ==========================================================================
   8. MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-list {
        width: 100%;
        justify-content: center;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        border: none;
        background: rgba(0, 0, 0, 0.15);
        margin-top: 5px;
        min-width: 100%;
    }

    .nested-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        border: none;
        background: rgba(0,0,0,0.25);
        margin: 5px 10px;
        min-width: calc(100% - 20px);
    }
   
   /* ==========================================================================
   9. RESPONSIVE IMAGES
   ========================================================================== */
.guide-image-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px 0;
    overflow: hidden;
    border-radius: 12px; /* Softens the corners of the image container */
   object-fit: contain;
}

.guide-feature-image {
    max-width: 100%; /* Prevents the image from growing larger than its container */
    height: auto;     /* Maintains the correct, un-stretched aspect ratio */
    display: block;
    object-fit: contain; /* Ensures the image scales down cleanly if needed */
}

img {
  max-width: 100%;
  height: auto;
  display: block; /* Prevents weird baseline spacing issues */
}

}
/* ==========================================================================
   PARALLAX HERO BANNER
   ========================================================================== */
.hero-parallax-banner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    background-size: cover;
    background-position: center top;
    background-attachment: fixed; 
    opacity: 0.25; 
    z-index: -1; 
    
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
}
   

