/* ===== تنسيقات الـ Header للوضعين ===== */



/* اللوجو */
.site-logo {
    width: 160px;
    height: 30px;
    object-fit: contain;
    transition: all 0.3s ease;
    
}

/* الـ Header في الوضع الفاتح */
body.light-mode .header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

body.light-mode .logo,
body.light-mode .contact-info,
body.light-mode .contact-phone,
body.light-mode .mail-icon {
    color: #333333 !important;
}

/* تبديل اللوجو حسب الوضع */
body.light-mode .dark-logo {
    display: none !important;
}

body.light-mode .light-logo {
    display: block !important;
}

body:not(.light-mode) .dark-logo {
    display: block !important;
}

body:not(.light-mode) .light-logo {
    display: none !important;
}

/* معلومات الاتصال */
.contact-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    transition: all 0.3s ease;
}

.contact-phone {
    transition: all 0.3s ease;
}

.mail-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

/* زر تبديل الوضع */
.theme-toggle {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 1rem;
    position: relative;
    overflow: hidden;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.theme-toggle i {
    transition: all 0.3s ease;
}

/* زر تبديل الوضع في الوضع الفاتح */


body.light-mode .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

/* زر Login */
.login-btn {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 0.4rem 1.5rem;
    text-decoration: none;
    font-size: 0.6rem;
    margin-left: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.login-btn:hover {
    color: white;
    border-color: #6ab1ff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(106, 177, 255, 0.3);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(106, 177, 255, 0.2), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.login-btn:hover::before {
    left: 100%;
}

/* زر Login في الوضع الفاتح */
body.light-mode .login-btn {
    color: #333333;
    border-color: rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.8);
}

body.light-mode .login-btn:hover {
    color: #333333;
    border-color: #4a90e2;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

/* تأثير عند التمرير */




/* تحسينات للشاشات الصغيرة */
@media (max-width: 992px) {
    .header {
        padding: 1.5rem;
    }
    
    .contact-info {
        gap: 0.7rem;
    }
    
    .theme-toggle {
        width: 35px;
        height: 35px;
        margin-left: 0.8rem;
    }
    
    .login-btn {
        padding: 0.4rem 1.2rem;
        font-size: 0.85rem;
        margin-left: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .contact-info {
        gap: 0.5rem;
        font-size: 0.5rem;
    }
    
    .contact-phone {
        font-size: 0.8rem;
    }
    
    .theme-toggle {
        width: 32px;
        height: 32px;
        margin-left: 0.5rem;
    }
    
    .login-btn {
        padding: 0.3rem 1rem;
        font-size: 0.8rem;
        margin-left: 0.5rem;
    }
    
    .site-logo {
        width: 140px;
        height: 26px;
    }
}

@media (max-width: 576px) {
    .header {
        padding: 0.8rem;
    }
    
    .contact-info {
        gap: 0.3rem;
    }
    
    .contact-phone {
        display: none; /* إخفاء الرقم في الشاشات الصغيرة جداً */
    }
    
    .theme-toggle {
        width: 30px;
        height: 30px;
        margin-left: 0.3rem;
    }
    
    .login-btn {
        padding: 0.2rem 0.8rem;
        font-size: 0.7rem;
        margin-left: 0.3rem;
    }
    
    .site-logo {
        width: 120px;
        height: 22px;
    }
}

/* تأثيرات الانتقال */
.header * {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* تأثيرات خاصة للوضع الفاتح */
body.light-mode .header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

/* تحويل اللوجو الفاتح إلى داكن 
body.light-mode .site-logo {
    filter: brightness(0) invert(0);
}*/

