/* ===== هيدر موحد ونظيف ===== */

/* الهيدر الرئيسي */
.main-header {
    background: #2c3e50;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* محتوى الهيدر */
.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الشعار */
.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: white;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-icon {
    width: 45px;
    height: 45px;
    background: #3498db;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.logo-icon i {
    font-size: 1.5rem;
    color: white;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* شريط البحث */
.search-box {
    flex: 1;
    max-width: 500px;
}

.search-form {
    position: relative;
}

.search-input-group {
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-btn {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover {
    color: white;
}

/* أدوات المستخدم */
.user-tools {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tool-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 12px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
}

.tool-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.wishlist-count,
.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #2c3e50;
}

/* قائمة المستخدم */
.user-menu {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 12px;
    padding: 10px 15px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    text-decoration: none;
}

.user-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    margin: 0;
}

.user-status {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* أزرار تسجيل الدخول */
.auth-buttons {
    display: flex;
    gap: 10px;
}

.auth-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.register-btn {
    background: #3498db;
    color: white;
}

.register-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

/* القائمة الجانبية */
.mobile-menu-btn {
    display: block;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    padding: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ===== توحيد جميع الألوان في الصفحة ===== */

/* البانر الرئيسي - لون موحد */
.page-hero,
.hero-section,
.welcome-section {
    background: #2c3e50 !important;
    color: white;
}

/* إزالة جميع التدرجات */
.page-hero::before,
.hero-section::before,
.welcome-section::before {
    display: none !important;
}

/* البطاقات - لون موحد */
.category-card,
.product-card,
.feature-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
}

/* الأزرار - لون موحد */
.btn-primary,
.add-to-cart-btn {
    background: #3498db !important;
    color: white !important;
    border: none !important;
}

.btn-primary:hover,
.add-to-cart-btn:hover {
    background: #2980b9 !important;
    transform: translateY(-2px) !important;
}

/* الأزرار الثانوية */
.btn-secondary {
    background: #95a5a6 !important;
    color: white !important;
    border: none !important;
}

.btn-secondary:hover {
    background: #7f8c8d !important;
}

/* البطاقات الإحصائية */
.stat-card {
    background: white !important;
    border: 1px solid #e2e8f0 !important;
}

/* الأيقونات - لون موحد */
.category-icon,
.feature-icon {
    background: #3498db !important;
    color: white !important;
}

/* إزالة جميع التدرجات من الأيقونات */
.logo-icon,
.user-avatar,
.category-icon,
.feature-icon {
    background: #3498db !important;
    background-image: none !important;
}

/* التجاوب مع الشاشات الصغيرة */
@media (max-width: 1024px) {
    .header-content {
        gap: 15px;
    }
    
    .logo-title {
        font-size: 1.3rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .search-box {
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    .header-content {
        gap: 10px;
    }
    
    .search-box {
        max-width: 300px;
    }
    
    .logo-link {
        gap: 8px;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
    }
    
    .user-tools {
        gap: 10px;
    }
    
    .user-btn {
        padding: 8px 12px;
    }
    
    .user-name {
        font-size: 0.8rem;
    }
    
    .user-status {
        font-size: 0.6rem;
    }
    
    .auth-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        gap: 8px;
    }
    
    .logo-icon {
        width: 35px;
        height: 35px;
    }
    
    .logo-icon i {
        font-size: 1.2rem;
    }
    
    .logo-title {
        font-size: 1rem;
    }
    
    .search-input {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .search-btn {
        left: 12px;
        font-size: 1rem;
    }
    
    .user-tools {
        gap: 8px;
    }
    
    .tool-btn {
        min-width: 40px;
        height: 40px;
        padding: 10px;
    }
    
    .user-btn {
        padding: 6px 10px;
    }
    
    .user-avatar {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .user-name {
        font-size: 0.7rem;
    }
    
    .user-status {
        font-size: 0.5rem;
    }
    
    .auth-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
    }
} 