/* ===== متغيرات الألوان ===== */

:root {
    --primary-color: #005f8c;
    --secondary-color: #00a0e1;
    --accent-color: #ff7d00;
    --dark-color: #003350;
    --light-color: #f8f9fa;
    --text-color: #333;
    --white: #ffffff;
    --header-bg: rgba(0, 0, 0, 0.7);
    --header-bg-solid: #ffffff;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}


/* ===== الهيكل الأساسي ===== */

.main-header {
    position: relative;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* ===== الشعار ===== */

.logo img {
    height: 70px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}


/* ===== القائمة الرئيسية ===== */

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-item {
    margin: 0 10px;
    position: relative;
}

.nav-item a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    padding: 10px 15px;
    display: block;
    transition: color 0.3s ease;
    position: relative;
}

.nav-item a:hover {
    color: var(--accent-color);
}

.nav-item a::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 5px;
    height: 2px;
    width: 0;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-item a:hover::after {
    width: 70%;
}


/* ===== القوائم المنسدلة ===== */

.dropdown {
    position: relative;
}

.dropdown-icon {
    margin-left: 5px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--shadow);
    z-index: 1001;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 12px 20px;
    color: var(--white);
    font-weight: 500;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-color);
    color: var(--white);
}

.dropdown-menu a::after {
    display: none;
}


/* ===== أزرار الهيدر ===== */

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-btn,
.lang-btn {
    background: transparent;
    border: 1px solid var(--white);
    color: var(--white);
}

.login-btn:hover,
.lang-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}


/* ===== التجاوبية ===== */

@media (max-width: 992px) {
    .header-container {
        flex-direction: column;
        padding: 10px 15px;
    }
    .logo {
        margin-bottom: 15px;
    }
    .nav-list {
        flex-direction: column;
        align-items: center;
        margin-bottom: 15px;
    }
    .nav-item {
        margin: 5px 0;
    }
    .header-actions {
        margin-top: 10px;
    }
    .dropdown-menu {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }
    .dropdown-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 200px;
        background: rgba(0, 0, 0, 0.9);
        border-radius: 5px;
        overflow: hidden;
        box-shadow: var(--shadow);
        z-index: 1001;
    }
    .dropdown.active .dropdown-menu {
        display: block;
    }
    .dropdown.active .dropdown-icon {
        transform: rotate(180deg);
    }
}


/* ===== دعم RTL ===== */

html[dir="rtl"] .dropdown-icon {
    margin-left: 0;
    margin-right: 5px;
}

html[dir="rtl"] .dropdown-menu {
    left: auto;
    right: 0;
}

html[dir="rtl"] .dropdown-menu a {
    border-left: none;
    border-right: 3px solid transparent;
}

html[dir="rtl"] .dropdown-menu a:hover {
    border-right-color: var(--accent-color);
}