/**
 * Navigation Components CSS
 * Wiederverwendbare CSS-Komponenten für das LLM Explorer Navigationssystem
 * Version: 1.0 (Dezember 2025)
 */

/* ============================================
   GLOBAL NAVIGATION HEADER
   ============================================ */

.global-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-light);
    background: var(--paper);
    margin-bottom: 20px;
    gap: 20px;
}

.nav-home {
    color: var(--query);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-home:hover {
    text-decoration: underline;
}

.nav-breadcrumb {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: var(--text-secondary);
}

.nav-chapter {
    font-weight: 600;
    color: var(--text-dark);
}

.nav-glossary {
    color: var(--embed);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-glossary:hover {
    text-decoration: underline;
}

/* ============================================
   CHAPTER NAVIGATION FOOTER
   ============================================ */

.chapter-nav-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--line-light);
}

.chapter-nav-footer a {
    text-decoration: none;
    color: inherit;
    padding: 16px;
    border-radius: 8px;
    background: var(--paper);
    border: 1px solid var(--line-light);
    transition: all 0.2s ease;
    display: block;
}

.chapter-nav-footer a:hover {
    border-color: var(--query);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chapter-nav-footer a.nav-prev {
    text-align: left;
}

.chapter-nav-footer a.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    font-weight: 600;
}

.nav-title {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

/* Pfeile für Vor/Zurück */
.nav-prev .nav-label::before {
    content: "← ";
}

.nav-next .nav-label::after {
    content: " →";
}

/* ============================================
   RELATED VISUALIZATIONS
   ============================================ */

.related-visualizations {
    margin-top: 60px;
    padding: 24px;
    background: var(--paper);
    border-radius: 12px;
    border: 1px solid var(--line-light);
}

.related-visualizations h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.related-grid a {
    padding: 12px 16px;
    background: white;
    border: 1px solid var(--line-light);
    border-radius: 6px;
    text-decoration: none;
    color: var(--query);
    font-size: 13px;
    text-align: center;
    transition: all 0.2s ease;
    font-weight: 500;
}

.related-grid a:hover {
    background: var(--query);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

/* ============================================
   GLOSSARY TERM LINKS (Inline)
   ============================================ */

.glossary-term {
    color: var(--embed);
    text-decoration: underline;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration-style: dotted;
}

.glossary-term:hover {
    color: var(--attention);
    text-decoration: underline wavy;
    text-decoration-color: var(--attention);
}

/* ============================================
   BACK TO TOP BUTTON (Optional)
   ============================================ */

.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--query);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    background: var(--attention);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.back-to-top.visible {
    display: flex;
}

/* ============================================
   BREADCRUMB NAVIGATION (Alternative)
   ============================================ */

.breadcrumb-nav {
    padding: 12px 20px;
    background: var(--paper-warm);
    border-bottom: 1px solid var(--line-light);
    font-size: 13px;
}

.breadcrumb-nav a {
    color: var(--query);
    text-decoration: none;
    font-weight: 500;
}

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

.breadcrumb-nav span {
    color: var(--text-secondary);
    margin: 0 8px;
}

/* ============================================
   CHAPTER INDICATOR (Sticky)
   ============================================ */

.chapter-indicator {
    position: sticky;
    top: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line-light);
    padding: 12px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chapter-indicator strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* ============================================
   RESPONSIVE MOBILE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .global-nav {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .nav-breadcrumb {
        width: 100%;
        text-align: left;
    }

    .chapter-nav-footer {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .chapter-nav-footer a.nav-next {
        text-align: left;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    .chapter-indicator {
        font-size: 12px;
        padding: 10px 16px;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.nav-disabled {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.nav-highlight {
    background: var(--query-light);
    border-color: var(--query);
}

.nav-divider {
    height: 1px;
    background: var(--line-light);
    margin: 20px 0;
}
