/* Shared Navigation Component */
.shared-nav {
    background: #074F57;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(7, 79, 87, 0.3);
    backdrop-filter: blur(10px);
}

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

.shared-nav .logo {
    font-size: 2rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: white;
    text-decoration: none;
}

.shared-nav .logo i {
    color: #CE5C28;
}

.shared-nav .logo img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1); /* Makes the logo white to match the header */
}

.shared-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.shared-nav .nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

.shared-nav .nav-menu a:hover {
    color: #CE5C28;
    transform: translateY(-2px);
}

.shared-nav .nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #CE5C28;
    transition: width 0.3s ease;
}

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

.shared-nav .nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.shared-nav .mobile-menu-toggle {
    display: none;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.shared-nav .mobile-menu-toggle:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.shared-nav .language-switcher-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    gap: 2px;
}

.shared-nav .lang-btn-nav {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 50px;
}

.shared-nav .lang-btn-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.shared-nav .lang-btn-nav.active {
    background: #CE5C28;
    color: white;
}

.shared-nav .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.shared-nav .btn-primary {
    background: #CE5C28;
    color: white;
    border: 2px solid #CE5C28;
}

.shared-nav .btn-primary:hover {
    background: #b84a1f;
    border-color: #b84a1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(206, 92, 40, 0.3);
}

.shared-nav .btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.shared-nav .btn-outline:hover {
    background: white;
    color: #074F57;
    transform: translateY(-2px);
}

.shared-nav .desktop-auth {
    display: flex;
    gap: 1rem;
}

.shared-nav .mobile-auth-buttons {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 2rem;
    margin-top: 0.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.shared-nav .mobile-auth-buttons .btn {
    text-align: center;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.shared-nav .mobile-auth-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .shared-nav .nav-container {
        padding: 0 1rem;
        position: relative;
    }

    .shared-nav .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #074F57 0%, #11B7B3 100%);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
        border-radius: 0 0 10px 10px;
        z-index: 1001;
    }

    .shared-nav .nav-menu.active {
        display: flex;
    }

    .shared-nav .nav-menu li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .shared-nav .nav-menu li:last-child {
        border-bottom: none;
    }

    .shared-nav .nav-menu a {
        padding: 1rem 2rem;
        display: block;
        transition: all 0.3s ease;
        border-radius: 0;
    }

    .shared-nav .nav-menu a:hover {
        background: rgba(255,255,255,0.1);
        color: #CE5C28;
    }

    .shared-nav .mobile-menu-toggle {
        display: block;
    }

    .shared-nav .nav-right {
        gap: 0.5rem;
        align-items: center;
    }

    .shared-nav .desktop-auth {
        display: none;
    }

    .shared-nav .mobile-auth-buttons {
        display: flex !important;
    }

    .shared-nav .logo {
        font-size: 1.5rem;
    }

    .shared-nav .language-switcher-nav {
        padding: 3px;
    }

    .shared-nav .lang-btn-nav {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 40px;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    .shared-nav .nav-container {
        padding: 0 0.5rem;
    }

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

    .shared-nav .mobile-menu-toggle {
        padding: 0.4rem;
        font-size: 1.2rem;
    }

    .shared-nav .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}
