/* Shared Navigation Styles - Responsive/Reflective UI */

.chess-rehearsal-nav {
    background: #0a0a0a;
    border-bottom: 2px solid #2a2a2a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    width: 100%;
}

.nav-container {
    max-width: 100%;
    margin: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Add padding to body to prevent content from hiding under fixed nav */
body {
    padding-top: 72px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.85;
}

.nav-logo-img {
    height: 80px;
    width: 80px;
    border-radius: 8px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    padding: 1px;
    border: 1px solid #5a5a5a;
}

.nav-logo-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: #f0c74a;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: nowrap;
}

.nav-link {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s;
    white-space: nowrap;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link:hover {
    color: #f0c74a;
}

.nav-link.active {
    color: #f0c74a;
    font-weight: 500;
}

/* Reset Puzzle Button */
.nav-reset-btn {
    background: #3d3d3d;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.2s;
    white-space: nowrap;
}

.nav-reset-btn:hover {
    background: #505050;
}

/* Mobile Menu Toggle Button */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 3px;
    background: #e0e0e0;
    transition: all 0.3s;
    border-radius: 2px;
}

.nav-toggle:hover span {
    background: #f0c74a;
}

.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);
}

/* Responsive Design - Large Desktop/Tablet */
@media (max-width: 1400px) {
    .nav-links {
        gap: 1.75rem;
    }

    .nav-link {
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0.875rem 1.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-link {
        font-size: 0.875rem;
    }

    .nav-logo-text {
        font-size: 1.3rem;
    }

    .nav-logo-img {
        height: 40px;
        width: 40px;
    }
}

/* Responsive Design - Mobile (Hamburger Menu) */
@media (max-width: 1024px) {
    .nav-container {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: flex;
        order: 3;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        order: 4;
        gap: 0;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #2a2a2a;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-link {
        padding: 0.75rem 0;
        width: 100%;
    }

    .nav-logo-text {
        font-size: 1.2rem;
    }

    .nav-logo-img {
        height: 36px;
        width: 36px;
    }

    body {
        padding-top: 80px;
    }
}

/* Extra Small Screens */
@media (max-width: 480px) {
    .nav-container {
        padding: 0.75rem;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
}

/* Support for reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .nav-link,
    .nav-toggle span,
    .nav-logo {
        transition: none;
    }
}
