/* Header Component Additional Styles */

/* تحسينات للـ Header عند التمرير */
header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.dark-mode header.scrolled {
    background: rgba(30, 26, 53, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* تحسينات للبحث */
.search-box {
    position: relative;
    transition: all 0.3s ease;
}

.nav-or-search.show-search .search-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input:focus {
    outline: none;
    border-color: #ef8d65;
    box-shadow: 0 0 10px rgba(239, 141, 101, 0.3);
}

/* تحسينات للأزرار */
.serchBtn.active {
    background: #ef8d65;
    color: white;
    transform: scale(1.05);
}

.serchBtn.active .cup-fill {
    background: #ef8d65;
}

/* تحسينات للتنقل النشط */
.head_bar li.active_bar a {
    color: #ef8d65;
    font-weight: 500;
    position: relative;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    .nav-or-search {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1000;
    }
    
    .dark-mode .nav-or-search {
        background: #1e1a35;
    }
    
    .nav-or-search.show-search {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .head_bar {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .search-box {
        margin-top: 20px;
        padding: 0 20px;
    }
}

/* تحسينات للأنيميشن */
.logo img {
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

.download_app a {
    transition: all 0.3s ease;
}

.download_app a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(239, 141, 101, 0.3);
}

/* تحسينات للبحث المتقدم */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.dark-mode .search-results {
    background: #1e1a35;
    border-color: #444;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background 0.2s ease;
}

.dark-mode .search-result-item {
    border-bottom-color: #444;
}

.search-result-item:hover {
    background: #f5f5f5;
}

.dark-mode .search-result-item:hover {
    background: #2a2640;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* تحسينات للإشعارات */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ef8d65;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

.notification.warning {
    background: #ffc107;
    color: #333;
}