/* Navigation Components - Dark Theme */

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
    border-bottom: 1px solid var(--color-border);
}

.header.scrolled {
    background: rgba(15, 23, 42, 0.98);
    box-shadow: var(--shadow-lg);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
}

/* Logo */
.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    color: var(--color-text-primary);
    transition: opacity var(--transition-base);
}

.nav__logo:hover {
    opacity: 0.8;
}

.nav__logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-weight: bold;
}

/* Navigation Menu */
.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav__item {
    list-style: none;
}

.nav__link {
    display: block;
    padding: var(--space-2) var(--space-3);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    border-radius: var(--radius-md);
    position: relative;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link--active {
    color: var(--color-primary);
}

.nav__link--active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: var(--space-3);
    right: var(--space-3);
    height: 2px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
}

/* Mobile Navigation Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav__toggle-icon {
    position: relative;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
}

.nav__toggle-icon::before,
.nav__toggle-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
}

.nav__toggle-icon::before {
    top: -8px;
}

.nav__toggle-icon::after {
    bottom: -8px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon {
    background: transparent;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after {
    bottom: 0;
    transform: rotate(-45deg);
}

/* Footer */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-primary);
    padding: var(--space-16) 0 var(--space-8);
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer__column {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-4);
}

.footer__description {
    color: var(--color-text-secondary);
    line-height: var(--line-height-relaxed);
}

.footer__social {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-4);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: var(--color-bg-card);
    color: var(--color-text-primary);
    transition: all var(--transition-base);
    border: 1px solid var(--color-border);
}

.footer__social-link:hover {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    border-color: var(--color-primary);
}

.footer__heading {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__links a {
    color: var(--color-text-secondary);
    transition: color var(--transition-base);
}

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

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border);
}

.footer__copyright {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
}

.footer__legal {
    display: flex;
    gap: var(--space-6);
}

.footer__legal a {
    color: var(--color-text-secondary);
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
}

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

/* Responsive Navigation */
@media (max-width: 1024px) {
    .nav__menu {
        gap: var(--space-6);
    }
}

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

    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-bg-dark);
        padding: var(--space-4);
        box-shadow: var(--shadow-lg);
        gap: 0;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        border-bottom: 1px solid var(--color-border);
    }

    .nav__menu.nav__menu--open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__item {
        width: 100%;
    }

    .nav__link {
        display: block;
        padding: var(--space-3) var(--space-4);
        border-radius: var(--radius-md);
    }

    .nav__link--active::after {
        display: none;
    }

    .nav__link--active {
        background: var(--color-bg-card);
        color: var(--color-primary);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-4);
    }

    .footer__legal {
        flex-direction: column;
        gap: var(--space-3);
    }
}

@media (max-width: 480px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}
