/* ==================================================
   SITE-WIDE NAVIGATION
   Navy background, Terracotta accents, Clean design
   ================================================== */

:root {
    --nav-navy: #0a1e43;
    --nav-terracotta: #95472d;
    --nav-terracotta-hover: #b86847;
    --nav-white: #FFFFFF;
    --nav-grey: #A0A0A0;
    --nav-black: #000000;
}

/* ==================================================
   HEADER - DESKTOP & MOBILE
   ================================================== */

.site-header {
    position: sticky;
    top: 0;
    background: var(--nav-navy);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ==================================================
   SITE LOGO
   ================================================== */

.site-logo {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.5rem; /* Increased from 1.3rem (+15%) */
    font-weight: 600;
    color: var(--nav-white);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.site-logo:hover {
    color: var(--nav-terracotta);
}

/* ==================================================
   DESKTOP NAVIGATION
   ================================================== */

.desktop-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.15rem; /* Increased from 1rem (+15%) */
    font-weight: 400;
    color: var(--nav-grey);
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--nav-white);
}

.nav-link.active {
    color: var(--nav-terracotta);
}

/* Active state underline */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--nav-terracotta);
}

/* ==================================================
   HEADER RIGHT SECTION
   ================================================== */

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* ==================================================
   SEARCH COMPONENT - DESKTOP
   ================================================== */

.search-component {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.search-toggle-btn {
    background: none;
    border: none;
    color: var(--nav-grey);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.search-toggle-btn:hover {
    color: var(--nav-white);
}

.search-expandable {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    overflow: hidden;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}

.search-expandable.active {
    width: 300px;
    opacity: 1;
}

.search-input {
    font-family: 'Crimson Pro', Georgia, serif;
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--nav-white);
    font-size: 1.1rem; /* Increased from 0.95rem (+15%) */
    outline: none;
}

.search-input::placeholder {
    color: var(--nav-grey);
}

.search-input:focus {
    border-color: var(--nav-terracotta);
}

/* ==================================================
   LOGIN BUTTON
   ================================================== */

.login-btn {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.1rem; /* Increased from 0.95rem (+15%) */
    color: var(--nav-terracotta);
    background: transparent;
    border: 1px solid var(--nav-terracotta);
    padding: 8px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.login-btn:hover {
    background: var(--nav-terracotta);
    color: var(--nav-white);
}

/* ==================================================
   MOBILE MENU BUTTON
   ================================================== */

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    width: 30px;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background: var(--nav-white);
    transition: all 0.3s ease;
}

/* ==================================================
   MOBILE SEARCH BUTTON
   ================================================== */

.mobile-search-btn {
    display: none;
    background: none;
    border: none;
    color: var(--nav-grey);
    cursor: pointer;
    padding: 8px;
}

.mobile-search-btn:hover {
    color: var(--nav-white);
}

/* ==================================================
   MOBILE DRAWER MENU
   ================================================== */

.mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 2000;
}

.mobile-drawer.active {
    pointer-events: all;
}

.drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 280px;
    max-width: 80%;
    height: 100%;
    background: var(--nav-navy);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.mobile-drawer.active .drawer-content {
    transform: translateX(0);
}

.drawer-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--nav-white);
    cursor: pointer;
    padding: 4px;
}

.drawer-nav {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
}

.drawer-link {
    font-family: 'Crimson Pro', Georgia, serif;
    padding: 16px 24px;
    color: var(--nav-white);
    text-decoration: none;
    font-size: 1.27rem; /* Increased from 1.1rem (+15%) */
    transition: all 0.2s ease;
}

.drawer-link:hover {
    color: var(--nav-terracotta);
}

.drawer-link.active {
    background: rgba(149, 71, 45, 0.2);
    color: var(--nav-terracotta);
}

.drawer-link.drawer-logout {
    color: #ff6b6b;
}

.drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 16px 24px;
}

.drawer-search {
    padding: 0 24px;
    margin: 16px 0;
}

.drawer-search-input {
    font-family: 'Crimson Pro', Georgia, serif;
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: var(--nav-white);
    font-size: 1.15rem; /* Increased from 1rem (+15%) */
    outline: none;
}

.drawer-search-input::placeholder {
    color: var(--nav-grey);
}

.drawer-search-input:focus {
    border-color: var(--nav-terracotta);
}

/* ==================================================
   MOBILE SEARCH OVERLAY
   ================================================== */

.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--nav-navy);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-search-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.search-overlay-close {
    position: absolute;
    top: 20px;
    left: 20px;
    background: none;
    border: none;
    color: var(--nav-white);
    cursor: pointer;
    padding: 8px;
}

.search-overlay-content {
    width: 100%;
    max-width: 600px;
    margin-top: 80px;
}

.search-overlay-input {
    font-family: 'Crimson Pro', Georgia, serif;
    width: 100%;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: var(--nav-white);
    font-size: 1.38rem; /* Increased from 1.2rem (+15%) */
    outline: none;
}

.search-overlay-input::placeholder {
    color: var(--nav-grey);
}

.search-overlay-input:focus {
    border-color: var(--nav-terracotta);
}

/* ==================================================
   USER PROFILE DROPDOWN - UPDATED COLORS
   ================================================== */

.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    color: var(--nav-white);
    cursor: pointer;
    transition: all 0.2s ease;
}

.user-profile-btn:hover {
    border-color: var(--nav-terracotta);
    background: rgba(149, 71, 45, 0.1);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--nav-terracotta);
    color: var(--nav-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    overflow: hidden;
}

.user-avatar .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-name {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.1rem; /* Increased from 0.95rem (+15%) */
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.user-profile-btn:hover .dropdown-arrow {
    transform: translateY(2px);
}

.profile-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: var(--nav-navy);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.profile-dropdown-menu.show {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.dropdown-header {
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dropdown-user-name {
    font-family: 'Crimson Pro', Georgia, serif;
    font-weight: 600;
    color: var(--nav-white);
    margin-bottom: 4px;
}

.dropdown-user-stats {
    font-size: 0.85rem;
    color: var(--nav-grey);
}

.dropdown-menu-items {
    padding: 8px 0;
}

.dropdown-menu-item {
    font-family: 'Crimson Pro', Georgia, serif;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--nav-white);
    text-decoration: none;
    transition: background 0.2s ease;
}

.dropdown-menu-item:hover {
    background: rgba(149, 71, 45, 0.1);
    color: var(--nav-terracotta);
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

.dropdown-logout {
    color: #ff6b6b !important;
}

.dropdown-logout:hover {
    background: rgba(255, 107, 107, 0.1) !important;
}

/* ==================================================
   RESPONSIVE BREAKPOINTS
   ================================================== */

/* Tablet */
@media (max-width: 1024px) {
    .header-container {
        padding: 0 30px;
    }

    .desktop-nav {
        gap: 24px;
    }

    .search-expandable.active {
        width: 250px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
        height: 60px;
    }

    .site-logo {
        font-size: 1.1rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Hide desktop nav and search */
    .desktop-nav {
        display: none;
    }

    .search-component {
        display: none;
    }

    .login-btn {
        display: none;
    }

    /* Show mobile buttons */
    .mobile-menu-btn {
        display: flex;
    }

    .mobile-search-btn {
        display: block;
    }

    .user-profile-btn .user-name {
        display: none;
    }

    .user-profile-btn .dropdown-arrow {
        display: none;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .site-logo {
        font-size: 1rem;
    }

    .drawer-content {
        width: 100%;
        max-width: 90%;
    }
}
