/* assets/css/style.css */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --accent: #f4a261;
    --accent-dark: #e76f51;
    --dark: #0a0a0f;
    --dark-light: #1a1a2e;
    --text-light: #ffffff;
    --text-muted: #9ca3af;
    --bottom-nav-height: 65px;
    --top-nav-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: var(--bottom-nav-height);
}

/* شريط التمرير */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* النافبار العلوي */
.navbar {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    height: var(--top-nav-height);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    z-index: 1000;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff !important;
    text-decoration: none;
}

.navbar-brand i {
    color: var(--accent);
    margin-left: 8px;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
}

/* مسافة تعويضية */
.navbar-spacer {
    height: var(--top-nav-height);
}

/* القائمة السفلية للهاتف */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--bottom-nav-height);
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 8px;
    z-index: 1000;
    padding-bottom: env(safe-area-inset-bottom, 0);
    transition: transform 0.3s ease;
}

.mobile-bottom-nav.hidden {
    transform: translateY(100%);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 12px;
    transition: all 0.2s;
    min-width: 55px;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav-item i {
    font-size: 1.3rem;
    transition: all 0.2s;
}

.bottom-nav-item span {
    font-size: 0.7rem;
    font-weight: 600;
}

.bottom-nav-item.active {
    color: var(--accent);
}

.bottom-nav-item.active i {
    filter: drop-shadow(0 0 6px rgba(244,162,97,0.5));
}

.bottom-nav-item:active {
    transform: scale(0.9);
}

/* الزر المركزي */
.bottom-nav-item.center-btn {
    position: relative;
    top: -15px;
}

.center-btn-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(244,162,97,0.4);
    margin-bottom: 2px;
}

.center-btn-icon i {
    color: #fff;
    font-size: 1.3rem;
}

.bottom-nav-item.center-btn span {
    color: var(--accent);
}

/* الأزرار المخصصة */
.btn-custom-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-custom-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(45,106,79,0.4);
    color: #fff;
}

.btn-custom-outline {
    border: 2px solid var(--accent);
    color: var(--accent);
    background: transparent;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-custom-outline:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

/* استجابة */
@media (min-width: 992px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0;
    }
}

@media (max-width: 991px) {
    :root {
        --top-nav-height: 64px;
        --bottom-nav-height: 62px;
    }
    
    .navbar .navbar-collapse {
        position: fixed;
        top: var(--top-nav-height);
        left: 0;
        right: 0;
        bottom: var(--bottom-nav-height);
        background: rgba(10,10,15,0.98);
        backdrop-filter: blur(20px);
        padding: 20px;
        overflow-y: auto;
    }
    
    .navbar .btn {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }
}