/* ========================================
   قائمة التنقل المحسنة - Professional Navigation
   ======================================== */

/* Main Navbar Container */
.main-navbar {
    background: linear-gradient(135deg, #0F766E 0%, #115E59 50%, #134E4A 100%) !important;
    box-shadow: 0 4px 20px rgba(13, 148, 136, 0.25);
    padding: 0 !important;
    border: none;
    position: sticky;
    top: 0;
    z-index: 1030;
    backdrop-filter: blur(10px);
}

/* Inner Container */
.main-navbar .container {
    padding: 0;
}

/* Navbar Nav Items Container */
.main-navbar .navbar-nav {
    padding: 0;
    margin: 0;
    display: flex;
    align-items: stretch;
}

/* Nav Items */
.main-navbar .nav-item {
    position: relative;
    margin: 0;
}

/* Nav Links - Base Style */
.main-navbar .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 600 !important;
    font-size: 0.85rem !important;
    padding: 0.875rem 0.75rem !important;
    margin: 0 !important;
    border-radius: 0 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    position: relative !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
}

/* Nav Links Icons */
.main-navbar .nav-link i {
    font-size: 0.9rem;
    opacity: 0.85;
    transition: all 0.3s ease;
}

/* Hover Effect */
.main-navbar .nav-link:hover {
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%) !important;
}

.main-navbar .nav-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Bottom Border Animation on Hover */
.main-navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #C9A962, #D4B870, #C9A962);
    border-radius: 3px 3px 0 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.main-navbar .nav-link:hover::after,
.main-navbar .nav-link.active::after {
    width: 80%;
}

/* Active State */
.main-navbar .nav-link.active {
    color: #ffffff !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.08) 100%) !important;
}

/* Dropdown Menu */
.main-navbar .dropdown-menu {
    background: #ffffff;
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    margin-top: 0;
    min-width: 220px;
    animation: dropdownFade 0.25s ease-out;
    overflow: hidden;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dropdown Items */
.main-navbar .dropdown-item {
    color: #424242 !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 2px 0;
}

.main-navbar .dropdown-item i {
    color: #0D9488;
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
    transition: all 0.25s ease;
}

.main-navbar .dropdown-item:hover {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%) !important;
    color: #0F766E !important;
    transform: translateX(-5px);
}

.main-navbar .dropdown-item:hover i {
    color: #0D9488;
    transform: scale(1.15);
}

/* Dropdown Toggle Arrow */
.main-navbar .dropdown-toggle::after {
    margin-right: 8px;
    transition: transform 0.3s ease;
    border: none;
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.7rem;
}

.main-navbar .nav-item.dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
}

/* Dropdown Divider */
.main-navbar .dropdown-divider {
    border-color: rgba(0, 0, 0, 0.08);
    margin: 0.5rem 0;
}

/* Search Form Container */
.main-navbar .search-form {
    margin: 0 15px;
}

.main-navbar .search-input {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 2px solid transparent !important;
    border-radius: 25px !important;
    color: #ffffff !important;
    padding: 0.5rem 2.5rem 0.5rem 1rem !important;
    width: 180px !important;
    font-size: 0.9rem !important;
    transition: all 0.3s ease !important;
}

.main-navbar .search-input::placeholder {
    color: rgba(255, 255, 255, 0.7) !important;
}

.main-navbar .search-input:focus {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    width: 220px !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1) !important;
}

/* Search Button */
.main-navbar .btn-search {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.25rem !important;
}

.main-navbar .btn-search:hover {
    color: #ffffff !important;
}

/* Login Button */
.main-navbar .login-btn {
    background: linear-gradient(135deg, #C9A962 0%, #B8934A 100%) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #ffffff !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 3px 10px rgba(201, 169, 98, 0.3) !important;
}

.main-navbar .login-btn:hover {
    background: linear-gradient(135deg, #D4B870 0%, #C9A962 100%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 5px 15px rgba(201, 169, 98, 0.4) !important;
}

/* Mobile Toggle Button */
.main-navbar .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
    padding: 0.5rem 0.75rem !important;
    border-radius: 8px !important;
    color: #ffffff !important;
    transition: all 0.3s ease !important;
}

.main-navbar .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
}

.main-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15) !important;
}

/* Mobile Brand */
.main-navbar .navbar-brand {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .main-navbar {
        padding: 0.5rem 0 !important;
    }

    .main-navbar .navbar-collapse {
        background: linear-gradient(180deg, #0F766E 0%, #115E59 100%);
        margin-top: 0.75rem;
        border-radius: 12px;
        padding: 1rem;
        box-shadow: 0 8px 25px rgba(13, 148, 136, 0.25);
    }

    .main-navbar .nav-link {
        padding: 0.875rem 1rem !important;
        border-radius: 8px !important;
        margin: 2px 0 !important;
    }

    .main-navbar .nav-link::after {
        display: none;
    }

    .main-navbar .nav-link:hover,
    .main-navbar .nav-link.active {
        background: rgba(255, 255, 255, 0.15) !important;
        border-radius: 8px !important;
    }

    .main-navbar .dropdown-menu {
        background: rgba(255, 255, 255, 0.1);
        box-shadow: none;
        border-radius: 8px;
        margin: 0.5rem 0;
    }

    .main-navbar .dropdown-item {
        color: rgba(255, 255, 255, 0.9) !important;
    }

    .main-navbar .dropdown-item:hover {
        background: rgba(255, 255, 255, 0.2) !important;
        color: #ffffff !important;
    }

    .main-navbar .d-flex {
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin-top: 0.75rem;
    }

    .main-navbar .search-form {
        margin: 0;
        width: 100%;
    }

    .main-navbar .search-input {
        width: 100% !important;
    }

    .main-navbar .search-input:focus {
        width: 100% !important;
    }
}

/* Glow effect on scroll */
.main-navbar.scrolled {
    box-shadow: 0 4px 30px rgba(13, 148, 136, 0.35);
}

/* RTL Support */
[dir="rtl"] .main-navbar .dropdown-item:hover {
    transform: translateX(5px);
}

[dir="rtl"] .main-navbar .search-input {
    padding: 0.5rem 1rem 0.5rem 2.5rem !important;
}

[dir="rtl"] .main-navbar .btn-search {
    left: auto;
    right: 10px;
}

/* ============================================
   Live Stream Button
   ============================================ */
.btn-live-stream {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-live-stream:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

.btn-live-stream i {
    font-size: 1rem;
}

/* Live State */
.btn-live-stream.is-live {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    border-color: #e74c3c;
    animation: live-button-glow 2s infinite;
}

@keyframes live-button-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(231, 76, 60, 0.4);
    }

    50% {
        box-shadow: 0 0 25px rgba(231, 76, 60, 0.6);
    }
}

.btn-live-stream.is-live:hover {
    background: linear-gradient(135deg, #ec5e4f 0%, #d03d2e 100%);
}

/* Live Pulse Animation */
.btn-live-stream .live-pulse {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    transform: translateY(-50%);
    animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
        transform: translateY(-50%) scale(1);
    }

    50% {
        opacity: 0.5;
        transform: translateY(-50%) scale(0.7);
    }
}

/* Live Badge */
.btn-live-stream .live-badge {
    background: #fff;
    color: #e74c3c;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* RTL Support for Live Button */
[dir="rtl"] .btn-live-stream .live-pulse {
    left: auto;
    right: 12px;
}

[dir="rtl"] .btn-live-stream .live-badge {
    margin-right: 0;
    margin-left: 4px;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .btn-live-stream {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        border-radius: 10px;
        order: -1;
    }

    .btn-live-stream span:not(.live-badge):not(.live-pulse) {
        display: inline !important;
    }
}