/* ============================================
   PROFESSIONAL HEADER - MODERN & CLEAN
   شريط علوي احترافي حديث ونظيف
   ============================================ */

/* ===== PROFESSIONAL HEADER ===== */
.professional-header {
    position: fixed !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 10000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    transform: translateY(0) !important;
}

.professional-header.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* ===== CONTAINER ===== */
.professional-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.professional-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

/* ===== LOGO ===== */
.professional-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: opacity 0.3s;
    position: relative;
}

.professional-logo:hover {
    opacity: 0.8;
}

.professional-logo-img {
    height: 45px;
    width: auto;
}

/* Separator for LTR (English) */
[dir="ltr"] .professional-logo-img {
    border-right: 1px solid rgba(176, 176, 176, 0.3);
    padding-right: 12px;
    margin-right: 0;
}

/* Separator for RTL (Arabic) */
[dir="rtl"] .professional-logo-img {
    border-left: 1px solid rgba(176, 176, 176, 0.3);
    padding-left: 12px;
    margin-left: 0;
}

.professional-logo-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.professional-logo-main {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
}

.professional-logo-sub {
    font-size: 9px;
    font-weight: 600;
    color: #b0b0b0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* RTL Support for Logo */
[dir="rtl"] .professional-logo-text {
    align-items: flex-end;
    flex-direction: column;
}

[dir="ltr"] .professional-logo-text {
    align-items: flex-start;
    flex-direction: column;
}

/* Adjust font size for English layout - make it similar to main */
[dir="ltr"] .professional-logo-sub {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== NAVIGATION MENU ===== */
.professional-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.professional-menu-item {
    position: relative;
}

/* Modern Clean Button with Icons */
.professional-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 26px;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    will-change: transform, opacity;
    -webkit-tap-highlight-color: transparent;
}

/* Icon Styling */
.professional-menu-link i {
    display: inline-block;
    margin-left: 8px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.professional-menu-link:hover i {
    transform: scale(1.1);
}

/* Hover State - When Header is Transparent */
.professional-menu-link:hover {
    color: rgba(255, 255, 255, 1);
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Active State - Transparent with White Border */
.professional-menu-link.active {
    background: transparent;
    color: rgba(255, 255, 255, 1);
    border: 2px solid rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.professional-menu-link.active:hover {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.4);
}

/* ===== SCROLLED STATE - When Header Has White Background ===== */

/* Links turn dark when scrolled */
.professional-header.scrolled .professional-menu-link {
    color: #2c3e50;
}

/* Hover state when scrolled */
.professional-header.scrolled .professional-menu-link:hover {
    color: #006cde;
    background: rgba(0, 108, 222, 0.08);
}

/* Active state when scrolled - Blue background */
.professional-header.scrolled .professional-menu-link.active {
    background: linear-gradient(135deg, #006cde 0%, #0056b2 100%);
    color: white;
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 108, 222, 0.3);
}

.professional-header.scrolled .professional-menu-link.active:hover {
    background: linear-gradient(135deg, #0056b2 0%, #004085 100%);
    box-shadow: 0 6px 16px rgba(0, 108, 222, 0.4);
}

/* تم إزالة تأثيرات :active و Ripple لتحسين سلاسة الانتقال */

/* ===== ACTIONS ===== */
.professional-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Button - Clean Design with Globe Icon */
.professional-lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    color: #2c3e50;
}

.professional-lang-btn:hover {
    border-color: #006cde;
    color: #006cde;
    background: rgba(0, 108, 222, 0.03);
}

.professional-lang-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
    display: inline-block !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;
}

.professional-lang-btn i::before {
    content: "\f0ac" !important;
}

.professional-lang-btn:hover i {
    transform: rotate(15deg);
}

.professional-lang-text {
    font-size: 14px;
}

/* Search Icon Button */
.professional-search-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
    font-size: 16px;
}

.professional-search-btn:hover {
    border-color: #006cde;
    color: #006cde;
    background: rgba(0, 108, 222, 0.03);
}

/* Mobile Toggle */
.professional-mobile-toggle {
    display: none;
    width: 38px;
    height: 38px;
    background: #006cde;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.professional-mobile-toggle:hover {
    background: #0056b2;
}

.professional-toggle-bar {
    position: absolute;
    width: 18px;
    height: 2px;
    background: white;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.professional-toggle-bar:nth-child(1) {
    top: 12px;
}

.professional-toggle-bar:nth-child(2) {
    top: 18px;
}

.professional-toggle-bar:nth-child(3) {
    top: 24px;
}

.professional-mobile-toggle.active .professional-toggle-bar:nth-child(1) {
    top: 18px;
    transform: translateX(-50%) rotate(45deg);
}

.professional-mobile-toggle.active .professional-toggle-bar:nth-child(2) {
    opacity: 0;
}

.professional-mobile-toggle.active .professional-toggle-bar:nth-child(3) {
    top: 18px;
    transform: translateX(-50%) rotate(-45deg);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .professional-menu {
        gap: 4px;
    }
    
    .professional-menu-link {
        padding: 10px 20px;
        font-size: 14px;
    }
}

@media (max-width: 992px) {
    .professional-search-btn {
        display: none;
    }
}

@media (max-width: 768px) {
    .professional-container {
        padding: 0 20px;
    }
    
    .professional-nav {
        height: 60px;
    }
    
    .professional-menu {
        display: none;
        position: fixed;
        top: 60px;
        left: 20px;
        right: 20px;
        flex-direction: column;
        background: white;
        border-radius: 16px;
        padding: 16px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
        gap: 8px;
        z-index: 9999;
    }
    
    .professional-menu.active {
        display: flex;
        animation: slideDown 0.3s ease;
    }
    
    .professional-menu-link {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
        border-radius: 12px;
    }
    
    .professional-mobile-toggle {
        display: block;
    }
    
    .professional-logo-text {
        display: none;
    }
    
    .professional-logo-img {
        height: 40px;
    }
    
    .professional-lang-text {
        display: none;
    }
    
    .professional-lang-btn {
        padding: 8px;
        min-width: 38px;
        justify-content: center;
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== CLEAN & MINIMAL STYLE ===== */
.professional-header {
    border-bottom: none;
}

/* Remove all unnecessary effects */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus States - Removed outline */
.professional-menu-link:focus,
.professional-menu-link:focus-visible,
.professional-lang-btn:focus,
.professional-lang-btn:focus-visible,
.professional-search-btn:focus,
.professional-search-btn:focus-visible {
    outline: none;
}

/* ===== FORCE HEADER TO STAY VISIBLE ===== */
header.professional-header,
header.advanced-header,
header.creative-header,
header.premium-header,
header.modern-header {
    transform: translateY(0) !important;
    top: 0 !important;
    position: fixed !important;
}

header.professional-header.hide,
header.advanced-header.hide {
    transform: translateY(0) !important;
}
