/* ========================================
   GUIDE MIDNIGHT STYLES + NAV DROPDOWN
   ======================================== */

/* ---- Nav Dropdown for Guide ---- */
.nav-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    padding-bottom: 4px;
    margin-bottom: -4px;
}

.nav-dropdown-trigger {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Kill the green bg rectangle on trigger — always */
.nav-dropdown-trigger.nav-link,
.nav-dropdown-trigger.nav-link:hover,
.nav-dropdown:hover .nav-dropdown-trigger.nav-link,
.nav-dropdown-trigger.nav-link.active {
    background: none !important;
}

.nav-dropdown-trigger.nav-link:hover,
.nav-dropdown:hover .nav-dropdown-trigger.nav-link,
.nav-dropdown-trigger.nav-link.active {
    color: var(--primary);
}

.nav-chevron {
    font-size: 0.75em;
    transition: transform 0.2s ease;
    display: inline-block;
}

.nav-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    min-width: 300px;
    background: rgba(20, 25, 35, 0.97);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Invisible bridge so mouse can travel from trigger to menu */
.nav-dropdown-menu::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.nav-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.15s ease;
    position: relative;
}

.nav-dropdown-item:hover {
    background: rgba(0, 217, 179, 0.1);
    color: var(--primary);
}

.nav-dropdown-item.active {
    background: rgba(0, 217, 179, 0.08);
    color: var(--primary);
}

.nav-dropdown-icon {
    margin-right: 0.5rem;
    font-size: 1rem;
}

.nav-dropdown-desc {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    margin-left: 1.7rem;
}

.nav-dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 0.4rem 0.5rem;
}

.nav-dropdown-category {
    display: block;
    padding: 0.4rem 0.8rem 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ---- Midnight Guide Pages ---- */
.midnight-guide {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem;
    min-height: 100vh;
}

.guide-breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.guide-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
}

.guide-breadcrumb a:hover {
    text-decoration: underline;
}

.guide-hero {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--primary);
}

.guide-hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.guide-intro {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.guide-meta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ---- Table of Contents ---- */
.guide-toc {
    background: rgba(30, 40, 55, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

.guide-toc h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.guide-toc ol {
    list-style: decimal;
    padding-left: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
}

.guide-toc li {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.guide-toc a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.15s;
}

.guide-toc a:hover {
    color: var(--primary);
}

/* ---- Guide Sections ---- */
.midnight-guide .guide-section {
    margin-bottom: 3rem;
    scroll-margin-top: 2rem;
}

.midnight-guide .guide-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(0, 217, 179, 0.2);
}

.midnight-guide .guide-section h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 1.5rem 0 0.75rem;
}

.midnight-guide .guide-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* ---- Zone Cards ---- */
.zone-cards {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.zone-card {
    background: rgba(30, 40, 55, 0.6);
    border: 1px solid var(--border);
    border-left: 4px solid;
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.zone-card:hover {
    transform: translateX(4px);
}

.zone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.zone-header h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.zone-tag {
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(0, 217, 179, 0.15);
    color: var(--primary);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

/* ---- Raid Cards ---- */
.raid-cards {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.raid-card {
    background: rgba(30, 40, 55, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.2s;
}

.raid-card:hover {
    transform: translateY(-3px);
}

.raid-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid;
}

.raid-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.raid-bosses {
    font-size: 0.75rem;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    color: var(--text-primary);
}

.raid-info {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---- Feature Grid ---- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.feature-card {
    background: rgba(30, 40, 55, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
}

.feature-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ---- Dungeon Grid ---- */
.dungeon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.dungeon-card {
    background: rgba(30, 40, 55, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}

.dungeon-card h4 {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.dungeon-card p {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

/* ---- Timeline ---- */
.timeline {
    position: relative;
    padding-left: 2rem;
    margin-top: 1.5rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), rgba(0, 217, 179, 0.1));
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2.35rem;
    top: 0.2rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid var(--bg-dark);
}

.timeline-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.timeline-content h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.timeline-content p {
    font-size: 0.85rem !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

/* ---- Ability Grid ---- */
.ability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.ability-card {
    background: rgba(30, 40, 55, 0.5);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
}

.ability-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.ability-card p {
    font-size: 0.82rem !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

/* ---- Class Grid ---- */
.class-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.class-card {
    background: rgba(30, 40, 55, 0.5);
    border: 1px solid var(--border);
    border-left: 4px solid;
    border-radius: 10px;
    padding: 1rem;
}

.class-card-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.class-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    flex-shrink: 0;
}

.class-card-header h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.class-specs {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.spec-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.82rem;
    transition: all 0.15s;
}

.spec-link:hover {
    background: rgba(0, 217, 179, 0.1);
    color: var(--primary);
}

.external-icon {
    font-size: 0.7rem;
    opacity: 0.5;
}

/* ---- Class Discord Button ---- */
.class-discord-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.6rem;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.12);
    border: 1px solid rgba(88, 101, 242, 0.25);
    color: #7289da;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.class-discord-btn:hover {
    background: rgba(88, 101, 242, 0.25);
    border-color: rgba(88, 101, 242, 0.5);
    color: #99aaf5;
}

.class-discord-btn svg {
    flex-shrink: 0;
}

/* ---- Info Box (reused) ---- */
.midnight-guide .info-box {
    background: rgba(0, 217, 179, 0.08);
    border: 1px solid rgba(0, 217, 179, 0.2);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ---- Bottom Nav ---- */
.guide-nav-bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border);
}

.guide-nav-link {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(30, 40, 55, 0.6);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.15s;
}

.guide-nav-link:hover {
    background: rgba(0, 217, 179, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .midnight-guide {
        padding: 1rem;
    }
    
    .guide-hero h1 {
        font-size: 1.6rem;
    }
    
    .guide-toc ol {
        grid-template-columns: 1fr;
    }
    
    .feature-grid,
    .class-grid,
    .ability-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-dropdown-menu {
        min-width: 260px;
        left: 0;
        transform: none;
    }
    
    .guide-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .raid-info {
        flex-direction: column;
        gap: 0.3rem;
    }
}
