/* ملف header.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0a0a0a;
    color: #e0e0e0;
}

/* تصميم الهيدر الفاخر */
.luxury-header {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: white;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
}

/* تصميم إطار الشعار الذهبي */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 5px 0 25px;
    position: relative;
    z-index: 2;
}

.logo-frame {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 2px solid transparent;
    box-shadow: 
        0 0 15px rgba(212, 175, 55, 0.3),
        inset 0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.logo-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #d4af37, #f9e076, #b76e79, #d4af37);
    background-size: 400% 400%;
    border-radius: 50%;
    z-index: -1;
    animation: gradientBorder 6s ease infinite;
}

.logo-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.logo-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
    animation: pulse 3s infinite;
    z-index: -1;
}

.logo-frame:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 
        0 0 25px rgba(212, 175, 55, 0.6),
        inset 0 0 15px rgba(0, 0, 0, 0.7);
}

.logo-frame:hover .logo-img {
    transform: scale(1.1);
}

@keyframes gradientBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.95);
        opacity: 0.7;
    }
}

/* تصميم شريط التنقل الذكي */
.smart-navbar {
    display: flex;
    justify-content: center;
    background: rgba(20, 20, 20, 0.7);
    border-radius: 50px;
    padding: 8px;
    margin: 0 auto;
    max-width: 550px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

.nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    padding: 12px 25px;
    margin: 0 5px;
    border-radius: 50px;
    transition: all 0.4s ease;
    font-size: 15px;
    min-width: 110px;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(212, 175, 55, 0.3), rgba(183, 110, 121, 0.3));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link i {
    font-size: 22px;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    color: #d4af37;
}

.nav-link span {
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 7px 15px rgba(212, 175, 55, 0.3);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover i {
    color: #f9e076;
    transform: scale(1.2);
}

.nav-link:hover span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* تأثيرات فاخرة للهيدر */
.luxury-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.luxury-effect {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite linear;
    opacity: 0.3;
}

.gold-dust {
    width: 250px;
    height: 250px;
    top: -100px;
    right: -50px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.4), transparent 70%);
    animation-duration: 25s;
}

.gold-sparkle {
    width: 150px;
    height: 150px;
    bottom: -70px;
    left: 20%;
    background: radial-gradient(circle, rgba(249, 226, 118, 0.4), transparent 70%);
    animation-duration: 18s;
    animation-delay: -5s;
}

.purple-haze {
    width: 200px;
    height: 200px;
    top: 30%;
    left: 10%;
    background: radial-gradient(circle, rgba(183, 110, 121, 0.4), transparent 70%);
    animation-duration: 22s;
    animation-delay: -3s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 30px) rotate(90deg);
    }
    50% {
        transform: translate(0, 60px) rotate(180deg);
    }
    75% {
        transform: translate(-30px, 30px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* تصميم متجاوب */
@media (max-width: 768px) {
    .logo-frame {
        width: 85px;
        height: 85px;
    }
    
    .logo-img {
        width: 70px;
        height: 70px;
    }
    
    .smart-navbar {
        flex-wrap: wrap;
        border-radius: 25px;
        padding: 6px;
        max-width: 95%;
    }
    
    .nav-link {
        padding: 10px 15px;
        margin: 4px;
        min-width: 90px;
        font-size: 13px;
    }
    
    .nav-link i {
        font-size: 18px;
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .luxury-header {
        padding: 10px 15px;
    }
    
    .logo-container {
        margin: 0 0 15px;
    }
    
    .logo-frame {
        width: 75px;
        height: 75px;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .smart-navbar {
        border-radius: 20px;
    }
    
    .nav-link {
        padding: 8px 12px;
        min-width: 80px;
        font-size: 12px;
    }
    
    .nav-link i {
        font-size: 16px;
    }
    
    .gold-dust, .gold-sparkle, .purple-haze {
        display: none;
    }
}


/* رسالة ترحيب بالمستخدم */
.user-welcome {
    display: flex;
    align-items: center;
    background: rgba(212, 175, 55, 0.1);
    padding: 8px 15px;
    border-radius: 25px;
    margin-left: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.user-welcome i {
    color: #f9e076;
    margin-left: 8px;
}

.user-welcome span {
    color: #f9e076;
    font-weight: 500;
    font-size: 14px;
}

/* زر تسجيل الخروج */
.logout-btn {
    background: rgba(183, 110, 121, 0.2) !important;
}

.logout-btn:hover {
    background: rgba(183, 110, 121, 0.4) !important;
}

.logout-btn i {
    color: #b76e79 !important;
}

.logout-btn:hover i {
    color: #e94560 !important;
}


@media (max-width: 768px) {
    .luxury-header {
        padding: 10px 5px;
    }
    
    .logo-container {
        margin: 0 0 15px;
    }
    
    .logo-frame {
        width: 70px;
        height: 70px;
    }
    
    .logo-img {
        width: 60px;
        height: 60px;
    }
    
    .smart-navbar {
        display: flex;
        justify-content: center; /* توسيط العناصر أفقياً */
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 8px 5px;
        max-width: 100%;
        border-radius: 30px;
        scrollbar-width: none;
        margin: 0 auto; /* توسيط الشريط نفسه */
    }
    
    .smart-navbar::-webkit-scrollbar {
        display: none;
    }
    
    .nav-link {
        padding: 8px 12px;
        min-width: auto;
        width: auto;
        flex-shrink: 0;
        margin: 0 3px;
        font-size: 12px;
        white-space: nowrap; /* منع التفاف النص */
    }
    
    .nav-link i {
        font-size: 16px;
        margin-bottom: 4px;
    }
    
    .user-welcome {
        margin: 0 10px;
        flex-shrink: 0;
        padding: 6px 12px;
        white-space: nowrap;
    }
    
    .luxury-effects {
        display: none;
    }
}



/* أيقونة حساب VIP */
.vip-account-link {
    position: relative;
    background: rgba(212, 175, 55, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
}

.vip-account-link:hover {
    background: rgba(212, 175, 55, 0.2) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
}

.vip-icon-container {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.vip-icon-container i {
    font-size: 20px;
    color: #f9e076;
    transition: all 0.3s ease;
}

.vip-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e94560;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.vip-account-link:hover i {
    transform: scale(1.2);
    color: #f9d923;
}

/* تأثير خاص عند التحويم */
.vip-account-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(249, 217, 35, 0.4), transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    border-radius: 50%;
    transition: all 0.5s ease;
    z-index: -1;
}

.vip-account-link:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
}

@media (max-width: 480px) {
    .smart-navbar {
        padding: 6px 3px;
    }
    
    .nav-link {
        padding: 6px 8px;
        font-size: 11px;
        margin: 0 2px;
    }
    
    .nav-link i {
        font-size: 14px;
    }
    
    .user-welcome {
        font-size: 12px;
        padding: 5px 8px;
        margin: 0 5px;
    }
}