/* 
 * nav.css - أويا أكاديمي
 * ملف تنسيق قائمة التنقل
 */

/* تنسيق شريط التنقل */
.navbar {
    background-color: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
    height: var(--header-height);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
    padding: 0;
}

.navbar-brand img {
    max-height: 50px;
}

.navbar-toggler {
    border: none;
    padding: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    outline: none;
    box-shadow: none;
}

.navbar-toggler:hover {
    color: var(--primary-dark);
}

.navbar-nav {
    margin-right: auto;
}

.nav-item {
    position: relative;
    margin: 0 0.25rem;
}

.nav-link {
    color: #495057;
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.nav-link:hover, .nav-link:focus {
    color: var(--primary-color);
    background-color: rgba(142, 23, 81, 0.05);
}

.nav-link.active {
    color: var(--primary-color);
    background-color: rgba(142, 23, 81, 0.1);
}

.nav-link i {
    margin-left: 0.5rem;
}

/* تنسيق القائمة المنسدلة */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    min-width: 12rem;
    animation: fadeInDown 0.3s ease;
    right: 0;
    left: auto;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: #495057;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    margin-left: 0.75rem;
    color: var(--primary-color);
}

.dropdown-item:hover, .dropdown-item:focus {
    color: var(--primary-color);
    background-color: rgba(142, 23, 81, 0.05);
}

.dropdown-item.active {
    color: var(--primary-color);
    background-color: rgba(142, 23, 81, 0.1);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid #e9ecef;
}

/* تنسيق زر تسجيل الدخول */
.btn-login {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.btn-login:hover {
    background: var(--primary-color);
    color: white;
}

.btn-register {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(142, 23, 81, 0.3);
}

.btn-register:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(142, 23, 81, 0.4);
    color: white;
}

/* تنسيق صورة المستخدم */
.user-avatar-nav {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    margin-left: 0.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.user-avatar-nav:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* تنسيق الشريط عند التمرير */
.navbar.scrolled {
    background-color: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.25rem 1rem;
}

/* تأثيرات الحركة */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* تحسينات للموبايل */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: white;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        position: absolute;
        top: 70px;
        left: 1rem;
        right: 1rem;
        z-index: 1000;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }

    .navbar-nav {
        margin-right: 0;
    }

    .nav-item {
        margin: 0.25rem 0;
    }

    .dropdown-menu {
        box-shadow: none;
        border: 1px solid #e9ecef;
        padding: 0.5rem 0;
        margin-top: 0.25rem;
        margin-bottom: 0.5rem;
        animation: none;
    }

    .nav-action-buttons {
        flex-direction: column;
        margin-top: 1rem;
    }

    .btn-login, .btn-register {
        width: 100%;
        margin: 0.25rem 0;
        text-align: center;
    }
} 