/**
 * GETSETTLE UK - PREMIUM NAVBAR CSS
 * Responsive navigation with mobile hamburger menu
 * Color Scheme: Teal (#1e7f7f, #2a9d8f) & Gold (#d4af37)
 */

/* ================================
   NAVBAR / HEADER
================================ */

.site-header {
    background: linear-gradient(135deg, #1e7f7f 0%, #2a9d8f 100%);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15);
}

.site-header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}


.brand-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 1001;
}

.brand-link:hover {
    transform: translateY(-2px);
}
.main-nav {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    margin-right: 1rem;
    z-index: 1002;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(15deg);
}

@media (max-width: 968px) {
    .theme-toggle {
        margin-right: 0;
        margin-left: auto;
        /* Push to right on mobile before hamburger */
        background: transparent;
        border-color: rgba(255, 255, 255, 0.3);
    }
}

.brand-link img {
    width: 45px;
    height: 45px;
    border-radius: 8px;
    background: white;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

/* Push toggle to be visible always, but handle margin */
.theme-toggle {
    margin-right: 0;
    /* Reset */
}

.nav-links li {
    margin: 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: #d4af37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 80%;
}

/* Special styling for Login/Signup buttons */
.nav-links a[href*="login"],
.nav-links a[href*="signup"] {
    background: linear-gradient(135deg, #d4af37, #f4d03f);
    color: #1a202c;
    font-weight: 700;
    padding: 0.625rem 1.5rem;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.nav-links a[href*="login"]:hover,
.nav-links a[href*="signup"]:hover {
    background: linear-gradient(135deg, #f4d03f, #d4af37);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.nav-links a[href*="login"]::before,
.nav-links a[href*="signup"]::before {
    display: none;
}

/* ================================
   HAMBURGER MENU
================================ */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* ================================
   RESPONSIVE DESIGN
================================ */

@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #1e7f7f 0%, #2a9d8f 100%);
        flex-direction: column;
        gap: 0;
        padding: 2rem 0;
        transition: left 0.3s ease;
        overflow-y: auto;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 1.25rem 2rem;
        width: 100%;
        font-size: 1.125rem;
    }

    .nav-links a::before {
        display: none;
    }

    .nav-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: none;
    }

    .nav-links a[href*="login"],
    .nav-links a[href*="signup"] {
        background: linear-gradient(135deg, #d4af37, #f4d03f);
        margin: 1rem 2rem;
        border-radius: 8px;
        width: calc(100% - 4rem);
    }
}

@media (max-width: 576px) {
    .brand {
        font-size: 1.25rem;
    }

    .brand-link img {
        width: 38px;
        height: 38px;
    }

    .site-header .container {
        padding: 0 0.5rem;
    }

    .nav-links {
        top: 65px;
        height: calc(100vh - 65px);
    }

    .nav-links a {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .nav-links a[href*="login"],
    .nav-links a[href*="signup"] {
        margin: 1rem 1.5rem;
        width: calc(100% - 3rem);
    }
}