﻿/* ===================================
   UNIFIED NAVIGATION STYLES
   Used across all pages for consistency
   =================================== */

.main-navigation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

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

/* ===================================
   LOGO STYLES
   =================================== */

.nav-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 80.5px;
    width: auto;
    transition: filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(184, 149, 106, 0.3));
}

.nav-logo a:hover .logo-img {
    filter: drop-shadow(0 0 15px rgba(184, 149, 106, 0.6));
}

/* ===================================
   NAVIGATION LINKS
   =================================== */

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    height: 100%;
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
    white-space: nowrap;
}

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

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #B8956A;
    box-shadow: 0 0 10px rgba(184, 149, 106, 0.8);
    transition: width 0.3s ease;
}

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

/* Active page indicator */
.nav-link.active {
    color: #B8956A;
}

.nav-link.active::after {
    width: 100%;
}

/* ===================================
   DROPDOWN MENU STYLES
   =================================== */

.nav-dropdown {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid #B8956A;
    border-radius: 0 0 8px 8px;
    min-width: 200px;
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-link {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.dropdown-link:hover {
    color: #B8956A;
    background: rgba(184, 149, 106, 0.05);
    padding-left: 2rem;
}

/* ===================================
   MOBILE MENU TOGGLE
   =================================== */

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: #B8956A;
    border-radius: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px rgba(184, 149, 106, 0.5);
}

.mobile-menu-toggle:hover .hamburger-line {
    box-shadow: 0 0 10px rgba(184, 149, 106, 0.8);
}

/* Mobile menu open state */
.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */

@media screen and (max-width: 768px) {
    .main-navigation {
        height: 70px;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo-img {
        height: 63.25px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 2rem 0;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
    }

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

    .nav-link {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        background: rgba(184, 149, 106, 0.1);
        border-left: 3px solid #B8956A;
    }

    .nav-dropdown {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        height: auto;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        width: 100%;
        border: none;
        border-radius: 0;
        border-left: 3px solid rgba(184, 149, 106, 0.3);
        background: rgba(184, 149, 106, 0.05);
        padding: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .nav-dropdown:hover .dropdown-menu,
    .nav-dropdown.active .dropdown-menu {
        max-height: 200px;
    }

    .dropdown-link {
        padding: 0.75rem 2rem 0.75rem 3rem;
        font-size: 1rem;
    }

    .dropdown-link:hover {
        padding-left: 3.5rem;
    }
}

@media screen and (max-width: 480px) {
    .nav-container {
        padding: 0 0.75rem;
    }

    .logo-img {
        height: 57.5px;
    }

    .nav-links {
        max-width: 280px;
    }

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

/* ===================================
   ACCESSIBILITY
   =================================== */

.nav-link:focus,
.dropdown-link:focus,
.mobile-menu-toggle:focus {
    outline: 2px solid #B8956A;
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .main-navigation,
    .nav-link,
    .dropdown-menu,
    .hamburger-line,
    .nav-links {
        transition: none;
    }
}
