/* ==========================================================================
   NAVIGATION COMPONENTS - DANIEL WOŹNIAK
   ========================================================================== */

/* Top Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: var(--z-sticky);
    transition: var(--transition-normal);
}

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

.nav-logo {
    font-size: clamp(1.3rem, 2.5vw, 1.5rem);
    font-weight: 900;
    color: #ffffff;
    text-decoration: none;
    transition: var(--transition-fast);
    letter-spacing: -1px;
    font-family: var(--font-family-base);
}

.nav-logo:hover {
    color: var(--accent-blue);
}

.logo-sygnet {
    height: 48px;
    width: 48px;
    object-fit: cover;
    object-position: center 20%;
    transition: var(--transition-fast);
    image-rendering: crisp-edges;
    image-rendering: -webkit-optimize-contrast;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px;
}

.nav-logo:hover .logo-sygnet {
    transform: scale(1.1);
    filter: drop-shadow(0 0 12px var(--accent-blue));
    border-color: var(--accent-blue);
    background: rgba(0, 122, 204, 0.1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-menu a {
    color: var(--nav-text);
    font-weight: var(--font-weight-medium);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.nav-menu a:hover {
    color: var(--accent-blue);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: var(--transition-fast);
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-highlight {
    background: var(--accent-blue) !important;
    color: var(--white) !important;
    padding: var(--space-sm) var(--space-md) !important;
    border-radius: var(--border-radius-md) !important;
    font-weight: var(--font-weight-semibold) !important;
}

.nav-highlight:hover {
    background: var(--accent-blue-light) !important;
    transform: translateY(-2px);
}

.nav-highlight::after {
    display: none !important;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--nav-text);
    transition: var(--transition-fast);
    border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Floating Navigation */
.floating-nav {
    position: fixed;
    right: var(--space-xl);
    top: 50%;
    transform: translateY(-50%);
    z-index: var(--z-elevated);
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.nav-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition-fast);
    position: relative;
}

.nav-dot:hover,
.nav-dot.active {
    background: var(--accent-blue);
    transform: scale(1.2);
}

.nav-dot::before {
    content: attr(data-section);
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-dark);
    color: var(--white);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: var(--font-weight-medium);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-fast);
    border: 1px solid var(--accent-blue);
}

.nav-dot:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 50px;
    height: 50px;
    background: var(--accent-blue);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: var(--font-weight-bold);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: var(--z-elevated);
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-blue-light);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--text-light);
    padding: var(--space-4xl) 0 var(--space-xl);
    margin-top: var(--space-4xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-section h3 {
    color: var(--white);
    font-size: clamp(1.125rem, 2.5vw, 1.25rem);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-lg);
}

.footer-section p {
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
    margin-bottom: var(--space-md);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-size: clamp(0.875rem, 2vw, 1rem);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: var(--primary-dark);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-xl);
        gap: var(--space-lg);
        transition: var(--transition-normal);
        box-shadow: var(--shadow-xl);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .floating-nav {
        display: none;
    }

    .back-to-top {
        bottom: var(--space-lg);
        right: var(--space-lg);
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-content {
        padding: var(--space-sm) 0;
    }

    .nav-menu {
        width: 90%;
        top: 60px;
        height: calc(100vh - 60px);
        padding: var(--space-lg);
    }

    .footer {
        padding: var(--space-2xl) 0 var(--space-lg);
    }
}