/* ==========================================================================
   Navigation CSS (Desktop + Mobile + Sidebar)
   Prefix: nvm-
   ========================================================================== */

/* -----------------------------------------
   Global Header Resets
   ----------------------------------------- */
.nvm-header-desktop,
.nvm-header-mobile {
    direction: rtl;
    background-color: #ffffff;
    background-image: url('https://nevonim.info/wp-content/uploads/2024/06/Background.png');
    background-size: cover;
    background-position: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 100;
    font-family: 'Assistant', sans-serif;
}

.nvm-header-desktop a,
.nvm-header-mobile a {
    text-decoration: none;
    color: inherit;
}

.nvm-header-logo {
    display: flex;
    align-items: center;
}

.nvm-header-logo img {
    height: 65px;
    max-height: 65px;
    width: auto;
    max-width: 250px;
    display: block;
    object-fit: contain;
}

/* -----------------------------------------
   Desktop Header
   ----------------------------------------- */
.nvm-header-desktop {
    display: none; /* Hidden by default on mobile */
    padding: 0 40px;
}

.nvm-header-desktop-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 80px;
    width: 100%;
}

.nvm-header-desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-right: 40px; /* Gap between Logo and Nav */
    margin-left: auto;  /* Pushes Search and Avatar to the left side */
}

.nvm-header-search-wrapper {
    margin-left: 30px; /* Gap between Search and Avatar */
}

.nvm-header-desktop-nav a {
    font-family: 'Heebo', sans-serif;
    font-size: 24px;
    font-weight: 500;
    color: #5b2a68 !important;
    padding: 0px 8px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nvm-header-desktop-nav a:hover {
    background-color: #c3b6c7; /* Light muted purple matching the image */
    color: #ffffff !important;
}

/* Search Form (Desktop & Mobile) */
.nvm-header-search {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 5px 15px;
}

.nvm-header-search input[type="text"] {
    border: none;
    background: transparent;
    padding: 5px 10px;
    outline: none;
    width: 200px;
    font-size: 16px;
}

.nvm-header-search button {
    background: transparent;
    border: none;
    color: #5b2a68;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nvm-header-search button:hover {
    color: #8c42a1; /* Slightly lighter purple */
    transform: scale(1.1);
    background: transparent;
    outline: none;
}

.nvm-header-search button:focus {
    outline: none;
}

/* Profile Avatar */
.nvm-header-profile {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* -----------------------------------------
   Mobile Header
   ----------------------------------------- */
.nvm-header-mobile {
    display: block; /* Visible by default on mobile */
    padding: 0 15px;
}

.nvm-header-mobile-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nvm-sidebar-hamburger {
    background: none;
    border: none;
    color: #333333;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nvm-header-search-mobile-wrapper .nvm-header-search input[type="text"] {
    width: 120px; /* Smaller search on mobile */
}

/* -----------------------------------------
   Sidebar (Mobile)
   ----------------------------------------- */
.nvm-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.nvm-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nvm-sidebar-panel {
    position: fixed;
    top: 0;
    right: -300px; /* Slide in from right (RTL) */
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 1000;
    transition: right 0.3s ease;
    overflow-y: auto;
    direction: rtl;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    font-family: 'Assistant', sans-serif;
}

.nvm-sidebar-panel.active {
    right: 0;
}

.nvm-sidebar-header {
    padding: 15px;
    display: flex;
    justify-content: flex-end;
}

.nvm-sidebar-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #333;
}

.nvm-sidebar-profile {
    padding: 0 20px 20px;
}

.nvm-sidebar-profile-link,
.nvm-sidebar-login-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #333;
}

.nvm-sidebar-avatar-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.nvm-sidebar-avatar-icon {
    font-size: 40px;
    color: #ccc;
}

.nvm-sidebar-user-name {
    display: block;
    font-weight: 600;
    font-size: 16px;
}

.nvm-sidebar-user-label {
    display: block;
    font-size: 12px;
    color: #666;
}

.nvm-sidebar-divider {
    height: 1px;
    background: #eee;
    margin: 10px 20px;
}

.nvm-sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nvm-sidebar-nav li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-family: 'Heebo', sans-serif;
}

.nvm-sidebar-profile-nav a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
}

.nvm-sidebar-footer {
    padding: 20px;
}

.nvm-sidebar-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    font-size: 16px;
    padding: 0;
}

/* -----------------------------------------
   Mobile Search Overlay & Trigger
   ----------------------------------------- */
.nvm-mobile-search-trigger {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    cursor: pointer;
    color: #5b2a68;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.nvm-mobile-search-trigger:hover,
.nvm-mobile-search-trigger:focus,
.nvm-mobile-search-trigger:active {
    background: transparent;
    outline: none;
}

.nvm-search-icon-circle {
    width: 30px;
    height: 30px;
    background: #5b2a68;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nvm-search-text {
    font-family: 'Heebo', sans-serif;
    font-size: 11px;
    font-weight: 700;
}

.nvm-mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(30, 15, 35, 0.95);
    z-index: 99999;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nvm-mobile-search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nvm-mobile-search-overlay-close-bar {
    padding: 20px;
    display: flex;
    justify-content: flex-end;
}

.nvm-mobile-search-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 10px;
}

.nvm-mobile-search-overlay-content {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 20px;
    margin-top: 20vh;
}

.nvm-mobile-search-overlay-content .nvm-header-search {
    width: 100%;
    max-width: 400px;
    height: 60px;
    border-radius: 30px;
    background: #ffffff;
}

.nvm-mobile-search-overlay-content .nvm-header-search input[type="text"] {
    width: 100%;
    font-size: 18px;
    padding: 10px 20px;
}

.nvm-mobile-search-overlay-content .nvm-header-search button {
    padding: 10px 20px;
    transform: scale(1.3);
}

/* -----------------------------------------
   Media Queries
   ----------------------------------------- */
@media (min-width: 992px) {
    .nvm-header-mobile {
        display: none;
    }
    .nvm-header-desktop {
        display: block;
    }
}
