/**
 * AI Classifier Design System - Shared Navigation
 * Extracted from marketing site css/style.css for use across all pages.
 */

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border-light, #e5e7eb);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Nav container */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary, #4285f4);
    text-decoration: none;
}

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    object-fit: contain;
}

.logo-text {
    /* inherits from nav__logo */
}

.nav__list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 2rem;
}

.nav__link {
    color: var(--color-text-secondary, #4b5563);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav__link:hover {
    color: var(--color-primary, #4285f4);
}

.nav__link--active {
    color: var(--color-primary, #4285f4);
    font-weight: 600;
}

.nav__button {
    background: var(--color-primary, #4285f4);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.nav__button:hover {
    background: var(--color-primary-dark, #3367d6);
    transform: translateY(-1px);
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    background: none;
    border: none;
}

.nav__toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text-primary, #111827);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Mobile overlay */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.show {
    display: block;
    opacity: 1;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .nav__toggle {
        display: flex;
    }

    .nav__menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 100;
    }

    .nav__menu.show {
        right: 0;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 6rem 2rem 2rem;
        height: 100%;
    }

    .nav__item {
        width: 100%;
        border-bottom: 1px solid var(--color-border-light, #e5e7eb);
    }

    .nav__link {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
    }

    .nav__button {
        display: block;
        text-align: center;
        margin-top: 1rem;
        padding: 1rem 1.5rem;
    }

    .nav__link,
    .nav__button {
        min-height: 44px;
    }
}
