/**
 * Base Stylesheet — منصة الرحلة التعليمية
 * Clean Architecture - Core Layout & Navigation
 */

@import url("tokens.31e2fa28d98e.css");

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.pixel-navbar {
    background-color: var(--color-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 80px;
}

/* Logo Area */
.nav-logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    border-radius: var(--radius-sm);
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.nav-logo-title {
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--primary-light);
}

.nav-logo-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Nav Links */
.nav-links-area {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 10px;
}

.nav-link-custom {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    color: #4B5563;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    position: relative;
    transition: all var(--transition-smooth);
}

.nav-link-custom:hover {
    color: var(--primary-blue);
}

/* Animated bottom indicator on hover */
.nav-link-custom::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background-color: var(--primary-blue);
    transition: all var(--transition-smooth);
    transform: translateX(-50%);
    border-radius: 3px 3px 0 0;
    opacity: 0;
}

.nav-link-custom:hover::after {
    width: 100%;
    opacity: 1;
}

/* Active State */
.nav-link-custom.active {
    color: var(--primary-blue);
}

.nav-link-custom.active::after {
    width: 100%;
    opacity: 1;
}

/* User Area */
.nav-user-area {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Share Button */
.nav-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: none;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-blue));
    color: white;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
    flex-shrink: 0;
}

.nav-share-btn:hover {
    transform: scale(1.10);
    box-shadow: 0 5px 18px rgba(37, 99, 235, 0.50);
}

.nav-share-btn:active {
    transform: scale(0.95);
}

/* Toast notification */
.share-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1E293B;
    color: white;
    padding: 10px 22px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 600;
    font-family: 'Tajawal', sans-serif;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 9999;
    white-space: nowrap;
}

.share-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.nav-icon-btn {
    background: none;
    border: none;
    color: var(--text-dark);
    font-size: 1.2rem;
    position: relative;
    cursor: pointer;
}

.nav-icon-btn .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--color-danger);
    color: white;
    font-size: 0.6rem;
    border-radius: var(--radius-full);
    padding: 3px 5px;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-body);
    padding: 6px 12px 6px 16px;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
}

.user-profile-btn img,
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background-color: #9CA3AF;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    padding: 8px 0;
    text-align: right;
}

.dropdown-item {
    padding: 8px 20px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item i {
    color: var(--text-muted);
}

.dropdown-item:hover {
    background-color: var(--bg-body);
    color: var(--primary-light);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-dark);
}

@media (max-width: 991px) {
    .nav-links-area {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        height: auto;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        padding: 10px 0;
    }
    .nav-links-area.show {
        display: flex;
    }
    .nav-link-custom {
        padding: 12px 24px;
        width: 100%;
        border-bottom: 1px solid #f3f4f6;
    }
    .nav-link-custom.active::after {
        display: none;
    }
    .mobile-toggle {
        display: block;
    }
    .nav-user-area {
        gap: 10px;
    }
    .user-profile-text {
        display: none;
    }
}

/* ============================================================
   MAIN CONTAINER
   ============================================================ */
.app-container {
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 24px;
}

/* Flash Messages */
#flashMessagesContainer .flash-msg-item {
    border-radius: 14px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    padding: 14px 20px;
    margin-bottom: 10px;
}

/* ============================================================
   FOOTER & FEATURES BAR
   ============================================================ */
.features-bar {
    background-color: var(--color-white);
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border-color);
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-dark);
}

.feature-icon {
    color: var(--primary-light);
    font-size: 1.5rem;
}

.feature-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
}

.feature-text p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

/* ============================================================
   RESPONSIVE ENHANCEMENTS (Mobile to 4K Screens)
   ============================================================ */
@media (max-width: 480px) {
    .navbar-container {
        padding: 0 14px;
        height: 70px;
    }
    .nav-logo-subtitle {
        display: none;
    }
    .nav-logo-title {
        font-size: 1.05rem;
    }
    .nav-logo-img {
        height: 34px;
    }
    .app-container {
        margin: 16px auto;
        padding: 0 14px;
    }
    .features-bar {
        padding: 16px 0;
    }
}

@media (min-width: 2000px) {
    .navbar-container,
    .app-container {
        max-width: 1700px;
    }
}

