/* ========================================
   MEME Client - Navbar Styles
   بألوان اللوجو المميزة
   Teal + Gold + Brown Theme
   ======================================== */

/* Prevent Navbar Duplication */
body > nav.navbar:not(:first-of-type) {
    display: none !important;
}

.navbar {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(30, 107, 94, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(212, 165, 116, 0.15);
}

.navbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    gap: 28px;
}

/* ========================================
   Logo
   ======================================== */

.navbar-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand a:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(212, 165, 116, 0.2));
    transition: all 0.3s ease;
}

.logo-img:hover {
    filter: drop-shadow(0 4px 12px rgba(212, 165, 116, 0.4));
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    background: linear-gradient(135deg, #1e6b5e 0%, #d4a574 50%, #6b4e3d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Desktop Menu - أيقونات ملونة
   ======================================== */

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    color: #2c3e3a;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(30, 107, 94, 0.05), rgba(58, 155, 143, 0.05));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4a574, #e8a35a);
    transform: translateX(-50%);
    transition: width 0.3s ease;
    border-radius: 3px;
}

.nav-link:hover {
    color: #1e6b5e;
    transform: translateY(-2px);
}

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

/* أيقونات ملونة - كل واحدة بلون */
.nav-link i {
    font-size: 18px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

/* الرئيسية - ذهبي */
.nav-link:nth-child(1) i {
    background: linear-gradient(135deg, #e8a35a, #d4a574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* البحث - Teal */
.nav-link:nth-child(2) i {
    background: linear-gradient(135deg, #3a9b8f, #56bfb1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* الباقات - بني */
.nav-link:nth-child(3) i {
    background: linear-gradient(135deg, #a67c52, #8a6752);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* عن الخدمة - Teal داكن */
.nav-link:nth-child(4) i {
    background: linear-gradient(135deg, #1e6b5e, #2d8b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* اتصل بنا - بني داكن */
.nav-link:nth-child(5) i {
    background: linear-gradient(135deg, #6b4e3d, #8a6752);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Navbar Actions
   ======================================== */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* ========================================
   Notification Bell - ملون
   ======================================== */

.notification-wrapper {
    position: relative;
}

.notification-bell {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(212, 165, 116, 0.2);
    background: rgba(212, 165, 116, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.notification-bell i {
    font-size: 20px;
    background: linear-gradient(135deg, #e8a35a, #d4a574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: bellRing 2s ease-in-out infinite;
}

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
}

.notification-bell:hover {
    background: linear-gradient(135deg, rgba(232, 163, 90, 0.15), rgba(212, 165, 116, 0.15));
    border-color: #d4a574;
    transform: scale(1.08);
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
}

.notification-bell .badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 7px;
    border-radius: 12px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

/* ========================================
   User Dropdown
   ======================================== */

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(30, 107, 94, 0.05);
    border: 2px solid rgba(30, 107, 94, 0.15);
    border-radius: 14px;
    cursor: pointer;
    font-weight: 700;
    color: #2c3e3a;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
}

.user-btn:hover {
    border-color: #1e6b5e;
    background: rgba(30, 107, 94, 0.1);
    box-shadow: 0 4px 16px rgba(30, 107, 94, 0.15);
    transform: translateY(-2px);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1e6b5e, #3a9b8f);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(30, 107, 94, 0.3);
}

.user-name {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-icon {
    font-size: 13px;
    transition: transform 0.3s ease;
    background: linear-gradient(135deg, #d4a574, #e8a35a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-btn:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* ========================================
   User Menu
   ======================================== */

.user-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 300px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(30, 107, 94, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 100;
    border: 2px solid rgba(212, 165, 116, 0.2);
}

.user-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    padding: 24px;
    background: linear-gradient(135deg, #1e6b5e, #3a9b8f);
    border-radius: 20px 20px 0 0;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 16px;
}

.user-avatar-large {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-info h4 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.user-info p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.user-menu-links {
    padding: 10px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    color: #2c3e3a;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 15px;
    position: relative;
}

.menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(58, 155, 143, 0.08), rgba(86, 191, 177, 0.08));
    border-radius: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover::before {
    opacity: 1;
}

.menu-item:hover {
    color: #1e6b5e;
    transform: translateX(-6px);
}

.menu-item i {
    font-size: 18px;
    width: 22px;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* أيقونات ملونة في القائمة */
.menu-item:nth-child(1) i {
    background: linear-gradient(135deg, #3a9b8f, #56bfb1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-item:nth-child(2) i {
    background: linear-gradient(135deg, #e8a35a, #d4a574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-item:nth-child(3) i {
    background: linear-gradient(135deg, #a67c52, #8a6752);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-item:nth-child(4) i {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
    margin: 10px 14px;
}

.menu-item.logout {
    color: #ef4444;
}

.menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.menu-item.logout:hover::before {
    opacity: 0;
}

/* ========================================
   Mobile Toggle
   ======================================== */

.navbar-toggle {
    display: none;
    background: rgba(30, 107, 94, 0.08);
    border: 2px solid rgba(30, 107, 94, 0.15);
    cursor: pointer;
    padding: 10px;
    width: 46px;
    height: 46px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.navbar-toggle:hover {
    background: rgba(30, 107, 94, 0.15);
    border-color: #1e6b5e;
    transform: scale(1.05);
}

.navbar-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: linear-gradient(90deg, #1e6b5e, #3a9b8f);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.navbar-toggle:hover span {
    background: linear-gradient(90deg, #d4a574, #e8a35a);
}

/* ========================================
   Mobile Overlay
   ======================================== */

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* ========================================
   Mobile Menu
   ======================================== */

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    max-width: 88%;
    height: 100vh;
    background: #fff;
    box-shadow: -6px 0 28px rgba(30, 107, 94, 0.2);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #1e6b5e, #3a9b8f);
    color: #fff;
}

.mobile-user-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-user-info .user-avatar {
    width: 54px;
    height: 54px;
    font-size: 24px;
}

.mobile-user-info h4 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px 0;
}

.mobile-user-info p {
    font-size: 13px;
    opacity: 0.9;
    margin: 0;
}

.mobile-guest-info {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 19px;
    font-weight: 800;
}

.mobile-guest-info i {
    font-size: 36px;
}

.mobile-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mobile-close:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: rotate(90deg) scale(1.1);
}

.mobile-menu-body {
    padding: 10px;
}

.mobile-menu-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 22px;
    color: #2c3e3a;
    text-decoration: none;
    border-radius: 14px;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 6px;
    position: relative;
}

.mobile-menu-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(58, 155, 143, 0.08), rgba(86, 191, 177, 0.08));
    border-radius: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-item:hover::before {
    opacity: 1;
}

.mobile-menu-item:hover {
    color: #1e6b5e;
    transform: translateX(-6px);
}

.mobile-menu-item i {
    font-size: 20px;
    width: 26px;
    text-align: center;
}

/* أيقونات ملونة في Mobile */
.mobile-menu-item:nth-child(1) i {
    background: linear-gradient(135deg, #e8a35a, #d4a574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-item:nth-child(2) i {
    background: linear-gradient(135deg, #3a9b8f, #56bfb1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-item:nth-child(3) i {
    background: linear-gradient(135deg, #a67c52, #8a6752);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-item:nth-child(4) i {
    background: linear-gradient(135deg, #1e6b5e, #2d8b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-item:nth-child(5) i {
    background: linear-gradient(135deg, #6b4e3d, #8a6752);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-menu-item.logout {
    color: #ef4444;
}

.mobile-menu-item.logout:hover {
    background: rgba(239, 68, 68, 0.1);
}

.mobile-menu-item.logout:hover::before {
    opacity: 0;
}

.mobile-menu-item.primary {
    background: linear-gradient(135deg, #1e6b5e, #3a9b8f);
    color: #fff;
    margin-top: 10px;
    box-shadow: 0 4px 16px rgba(30, 107, 94, 0.3);
}

.mobile-menu-item.primary:hover {
    transform: translateX(-6px) scale(1.02);
}

.mobile-menu-item.secondary {
    background: linear-gradient(135deg, #d4a574, #e8a35a);
    color: #fff;
    box-shadow: 0 4px 16px rgba(212, 165, 116, 0.3);
}

.mobile-menu-item.secondary:hover {
    transform: translateX(-6px) scale(1.02);
}

.mobile-menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 165, 116, 0.3), transparent);
    margin: 14px 18px;
}

.mobile-notification-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 12px;
    margin-right: auto;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
    min-height: calc(100vh - 85px);
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 992px) {
    .navbar-menu {
        display: none;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .user-name {
        display: none;
    }
    
    .user-btn {
        padding: 10px;
    }
}

@media (max-width: 768px) {
    .navbar-content {
        padding: 14px 0;
    }
    
    .logo-img {
        height: 42px;
    }
    
    .user-dropdown {
        display: none;
    }
    
    .btn-primary,
    .btn-secondary {
        display: none;
    }
    
    .notification-bell {
        width: 42px;
        height: 42px;
    }
    
    .notification-bell i {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .mobile-menu {
        width: 100%;
        max-width: 100%;
    }
    
    .notification-bell {
        width: 40px;
        height: 40px;
    }
}
