/* guest_navbar.css - تصميم احترافي متطور بفصل أنيق - مصحح */

/* إعادة تعيين */
.guest-navbar * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* تصميم الشريط العلوي */
.guest-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 3rem;
    background: linear-gradient(135deg, 
        rgba(13, 2, 33, 0.98) 0%,
        rgba(25, 8, 65, 0.97) 100%);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(106, 0, 255, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 
        0 8px 40px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.guest-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* تصميم الشعار */
.guest-nav-brand {
    display: flex;
    align-items: center;
}

.guest-logo {
    font-family: 'Orbitron', sans-serif;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    line-height: 1;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

.guest-logo-main {
    font-size: 2.2rem;
    background: linear-gradient(135deg, #6a00ff 0%, #00f5d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 3px;
    text-shadow: 
        0 2px 10px rgba(106, 0, 255, 0.4),
        0 4px 20px rgba(0, 245, 212, 0.2);
    font-weight: 800;
}

.guest-logo-sub {
    font-size: 1.1rem;
    background: linear-gradient(135deg, #00f5d4 0%, #9d4dff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 5px;
    margin-left: 3px;
    margin-top: 2px;
    font-weight: 600;
    text-shadow: 0 1px 5px rgba(0, 245, 212, 0.3);
}

/* ===== أزرار الزوار - تصميم احترافي متطور ===== */
.nav-btn-group-elite {
    display: flex;
    align-items: center;
    background: rgba(20, 10, 45, 0.6);
    border-radius: 16px;
    padding: 0.4rem;
    border: 1px solid rgba(106, 0, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-btn-professional {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    color: #e6e6fa;
    min-width: 120px;
    background: transparent;
}

/* زر Login - تصميم احترافي */
.login-btn-pro {
    color: rgba(230, 230, 250, 0.9);
    font-weight: 600;
}

/* زر Sign Up - تصميم متميز */
.signup-btn-pro {
    color: #ffffff;
    font-weight: 700;
    background: linear-gradient(135deg, 
        rgba(106, 0, 255, 0.15) 0%,
        rgba(0, 245, 212, 0.1) 100%);
}

/* الخط الفاصل الاحترافي */
.btn-separator {
    width: 1px;
    height: 24px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(106, 0, 255, 0.4) 50%, 
        transparent 100%);
    margin: 0 0.5rem;
}

/* الخط السفلي المتطور */
.btn-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6a00ff, #00f5d4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* تأثير التمييز لزر Sign Up */
.btn-highlight {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(106, 0, 255, 0.1), 
        transparent);
    transition: left 0.6s ease;
}

/* تأثيرات Hover للأزرار الاحترافية */
.nav-btn-professional:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.login-btn-pro:hover {
    background: rgba(106, 0, 255, 0.08);
}

.signup-btn-pro:hover {
    background: linear-gradient(135deg, 
        rgba(106, 0, 255, 0.2) 0%,
        rgba(0, 245, 212, 0.15) 100%);
    box-shadow: 
        0 4px 20px rgba(106, 0, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-btn-professional:hover .btn-underline {
    width: 80%;
}

.signup-btn-pro:hover .btn-highlight {
    left: 100%;
}

.btn-text-pro {
    position: relative;
    z-index: 2;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ===== أزرار المسجلين - تصميم استراتيجي مدمج - مصحح ===== */
.nav-compact-group {
    display: flex;
    align-items: center;
    background: rgba(20, 10, 45, 0.6);
    border-radius: 14px;
    padding: 0.3rem;
    border: 1px solid rgba(106, 0, 255, 0.2);
    backdrop-filter: blur(20px);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-compact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    color: #e6e6fa;
    min-width: 90px;
    background: transparent;
}

/* زر Dashboard المدمج */
.dashboard-compact {
    color: rgba(230, 230, 250, 0.9);
}

/* زر Logout المدمج */
.logout-compact {
    color: rgba(230, 230, 250, 0.9);
}

/* الخط الفاصل المدمج */
.compact-separator {
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(106, 0, 255, 0.3) 50%, 
        transparent 100%);
    margin: 0 0.3rem;
}

/* الخط السفلي المدمج */
.compact-underline {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #6a00ff, #00f5d4);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    border-radius: 1px;
}

.compact-text {
    position: relative;
    z-index: 2;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* تأثيرات Hover للأزرار المدمجة - مصححة */
.nav-compact-btn:hover {
    color: #ffffff;
    background: rgba(106, 0, 255, 0.1);
    transform: translateY(-1px);
}

.dashboard-compact:hover {
    background: rgba(0, 245, 212, 0.1);
}

.logout-compact:hover {
    background: rgba(255, 0, 110, 0.1);
}

.nav-compact-btn:hover .compact-underline {
    width: 70%;
}

/* ===== تصميم متجاوب احترافي - مصحح ===== */

/* للأجهزة اللوحية */
@media (max-width: 1024px) {
    .guest-navbar {
        padding: 1.1rem 2.5rem;
    }
    
    .guest-logo-main {
        font-size: 2rem;
    }
    
    .guest-logo-sub {
        font-size: 1rem;
    }
    
    .nav-btn-professional {
        padding: 0.8rem 1.8rem;
        min-width: 110px;
        font-size: 0.9rem;
    }
    
    .nav-compact-btn {
        padding: 0.6rem 1.3rem;
        min-width: 85px;
        font-size: 0.8rem;
    }
}

/* للهواتف الكبيرة */
@media (max-width: 768px) {
    .guest-navbar {
        padding: 1rem 2rem;
    }
    
    .guest-logo-main {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    
    .guest-logo-sub {
        font-size: 0.9rem;
        letter-spacing: 4px;
    }
    
    /* أزرار الزوار في الهواتف */
    .nav-btn-group-elite {
        padding: 0.3rem;
    }
    
    .nav-btn-professional {
        padding: 0.7rem 1.2rem;
        min-width: 90px;
        font-size: 0.85rem;
    }
    
    .btn-separator {
        height: 20px;
        margin: 0 0.3rem;
    }
    
    /* أزرار المسجلين في الهواتف */
    .nav-compact-group {
        padding: 0.25rem;
    }
    
    .nav-compact-btn {
        padding: 0.5rem 1rem;
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .compact-separator {
        height: 18px;
        margin: 0 0.2rem;
    }
    
    /* إخفاء عناصر الوسطى في الهواتف */
    .guest-nav-middle {
        display: none;
    }
}

/* للهواتف المتوسطة */
@media (max-width: 480px) {
    .guest-navbar {
        padding: 0.9rem 1.5rem;
    }
    
    /* إصلاح: الحفاظ على الشعار في اليسار والأزرار في اليمين */
    .guest-nav-container {
        flex-direction: row; /* إصلاح: يبقى أفقي */
        justify-content: space-between; /* إصلاح: توزيع بالتساوي */
        align-items: center;
        gap: 0.5rem;
    }
    
    .guest-logo-main {
        font-size: 1.6rem;
    }
    
    .guest-logo-sub {
        font-size: 0.85rem;
        letter-spacing: 3px;
    }
    
    .guest-nav-brand {
        flex-shrink: 1;
    }
    
    /* أزرار الزوار */
    .nav-btn-group-elite {
        flex-shrink: 0;
        min-width: 180px;
        justify-content: center;
    }
    
    .nav-btn-professional {
        padding: 0.7rem 0.9rem;
        min-width: 75px;
        font-size: 0.8rem;
    }
    
    /* أزرار المسجلين */
    .nav-compact-group {
        flex-shrink: 0;
        min-width: 160px;
        justify-content: center;
    }
    
    .nav-compact-btn {
        padding: 0.5rem 0.8rem;
        min-width: 70px;
        font-size: 0.75rem;
    }
}

/* للهواتف الصغيرة */
@media (max-width: 360px) {
    .guest-navbar {
        padding: 0.8rem 1rem;
    }
    
    .guest-logo-main {
        font-size: 1.4rem;
    }
    
    .guest-logo-sub {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }
    
    .nav-btn-professional {
        padding: 0.6rem 0.7rem;
        min-width: 70px;
        font-size: 0.75rem;
    }
    
    .nav-compact-btn {
        padding: 0.45rem 0.6rem;
        min-width: 65px;
        font-size: 0.7rem;
    }
    
    .btn-text-pro, .compact-text {
        font-size: 0.75rem;
    }
}

/* مساحة للشريط الثابت */
body {
    padding-top: 90px;
}

@media (max-width: 768px) {
    body {
        padding-top: 85px;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 85px; /* إصلاح: تصحيح الارتفاع */
    }
}

/* تحسينات للأوضاع الخاصة */
@media (max-height: 500px) and (orientation: landscape) {
    .guest-navbar {
        padding: 0.7rem 2rem;
    }
    
    body {
        padding-top: 75px;
    }
}

/* تأثيرات تحميل سلسة */
.guest-navbar {
    animation: navSlideDown 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes navSlideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات Typography */
.btn-text-pro, .compact-text {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
}

/* إضافة خط Inter إذا لم يكن مضافاً */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* عناصر التنقل الوسطى - تصميم احترافي متطور */
.guest-nav-middle {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-middle-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(230, 230, 250, 0.8);
    text-decoration: none;
    padding: 0.6rem 1rem;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    letter-spacing: 0.4px;
    border-radius: 8px;
}

/* الخط الفاصل الاحترافي */
.nav-middle-separator {
    width: 1px;
    height: 20px;
    background: linear-gradient(to bottom, 
        transparent 0%, 
        rgba(106, 0, 255, 0.3) 30%, 
        rgba(0, 245, 212, 0.3) 70%, 
        transparent 100%);
    opacity: 0.6;
}

/* تأثير الخلفية الرقيقة عند Hover */
.nav-middle-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(106, 0, 255, 0.08) 0%, 
        rgba(0, 245, 212, 0.05) 100%);
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

/* الخط السفلي المتحرك */
.nav-middle-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #6a00ff, #00f5d4);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateX(-50%);
    border-radius: 2px;
}

.nav-middle-link:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.nav-middle-link:hover::before {
    opacity: 1;
}

.nav-middle-link:hover::after {
    width: 70%;
}

/* تأثير النص المتطور */
.nav-middle-link span {
    position: relative;
    z-index: 2;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* إخفاء عناصر الوسطى في الهواتف */
@media (max-width: 768px) {
    .guest-nav-middle {
        display: none;
    }
}