/* ============================================
   تنسيقات التنقل والفوتر
   ============================================ */

/* شريط التنقل */
nav {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 5px 30px rgba(0,0,0,0.4);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.logo {
    font-family: 'Katibeh', cursive;
    font-size: 2.2em;
    color: var(--accent);
    padding: 20px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}

.logo-icon {
    width: 55px;
    height: 55px;
    background: var(--accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.nav-links {
    display: flex;
    gap: 0;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    padding: 30px 25px;
    display: block;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
    cursor: pointer;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: all 0.3s;
}

.nav-links a:hover::before,
.nav-links a.active::before {
    width: 100%;
    right: 0;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

.admin-btn {
    background: var(--accent);
    color: var(--dark);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    margin: 20px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Menu toggle button - hidden on desktop */
.menu-toggle {
    display: none;
}

/* الفوتر */
footer {
    background: var(--dark);
    color: white;
    padding: 70px 20px 35px;
    margin-top: 90px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 45px;
    margin-bottom: 45px;
}

.footer-section h3 {
    color: var(--accent);
    margin-bottom: 22px;
    font-size: 1.6em;
    font-family: 'Katibeh', cursive;
}

.footer-section p,
.footer-section a {
    color: rgba(255,255,255,0.85);
    line-height: 2.2;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.footer-section a:hover {
    color: var(--accent);
    padding-right: 12px;
    cursor: pointer;
}

.footer-bottom {
    text-align: center;
    padding-top: 35px;
    border-top: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    font-size: 1.05em;
}

/* التصميم المتجاوب */
@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        padding: 10px 15px;
    }
    
    .logo {
        font-size: 1.3em;
        padding: 15px 0;
    }
    
    .logo-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
    
    /* زر القائمة للجوال */
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 25px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 1001;
        pointer-events: auto;
    }
    
    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: white;
        border-radius: 3px;
        transition: all 0.3s;
    }
    
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    
    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
    
    .nav-links {
        display: none !important;
        width: 100%;
        flex-direction: column;
        background: rgba(0,0,0,0.98);
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        z-index: 999;
        padding-bottom: 20px;
    }
    
    .nav-links.active {
        display: flex !important;
    }
    
    .nav-links li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-links a {
        padding: 18px 20px;
        font-size: 1.1em;
    }
    
    .admin-btn {
        padding: 10px 20px;
        margin: 10px 20px 20px;
        width: calc(100% - 40px);
        text-align: center;
    }
}
