/* style.css - Minimalist Golden Dark Edition */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;800&display=swap');

:root {
    --primary: #FFD700;       /* ذهبي */
    --primary-dim: #B8860B;   /* ذهبي غامق */
    --text-main: #ffffff;
    --bg-dark: #050505;
    
    --card-bg: rgba(5, 5, 5, 0.92); /* زيادة التعتيم قليلاً */
    
    /* تعديل: توهج خافت جداً وناعم */
    --glow-soft: 0 0 5px rgba(255, 215, 0, 0.05); 
    --glow-strong: 0 0 15px rgba(255, 215, 0, 0.25); /* توهج غير مؤذي للعين */
}

* { box-sizing: border-box; margin: 0; padding: 0; outline: none; }

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    direction: rtl;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- خلفية الفيديو --- */
.video-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: -5; 
    opacity: 0.35; /* تقليل سطوع الفيديو قليلاً */
    filter: sepia(80%) hue-rotate(5deg) saturate(150%) contrast(1.1);
}

.overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, transparent 0%, #000 95%);
    z-index: -4;
    pointer-events: none;
}

/* --- الهيدر (توسيط + هدوء) --- */
header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.9); /* خلفية داكنة أكثر */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    position: sticky; top: 0; z-index: 100;
    transition: 0.3s;
}

.logo {
    font-size: 34px; 
    font-weight: 900; 
    color: var(--primary);
    text-transform: uppercase; 
    letter-spacing: 4px;
    margin-bottom: 15px;
    /* تخفيف توهج النص */
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.2); 
}

nav ul { 
    list-style: none; 
    display: flex; 
    gap: 40px; 
    padding: 0;
}

nav a {
    text-decoration: none; 
    color: #bbb; /* لون أهدأ من الأبيض الصريح */
    font-weight: 600; 
    font-size: 15px;
    transition: 0.3s; 
    text-transform: uppercase; 
    position: relative;
    padding-bottom: 5px;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 1px; /* خط رفيع جداً */
    background: var(--primary);
    transition: 0.3s;
    transform: translateX(-50%);
    opacity: 0.7;
}

nav a:hover { color: var(--primary); text-shadow: 0 0 5px rgba(255, 215, 0, 0.4); }
nav a:hover::after { width: 100%; }

/* --- البطاقات (تعديل: حدود شفافة وتوهج ناعم) --- */
.container {
    max-width: 1200px; margin: 0 auto; padding: 40px 20px;
    display: grid; grid-template-columns: 2.5fr 1fr; gap: 30px;
}

.card {
    background: var(--card-bg);
    /* حدود خفيفة جداً تكاد لا ترى */
    border: 1px solid rgba(184, 134, 11, 0.15); 
    border-radius: 4px;
    padding: 25px;
    margin-bottom: 25px;
    box-shadow: var(--glow-soft);
    backdrop-filter: blur(5px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px); /* حركة بسيطة */
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: var(--glow-strong);
}

/* خط علوي خافت */
.card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,215,0,0.5), transparent);
}

.card-title {
    font-size: 18px; font-weight: 700; color: var(--primary);
    margin-bottom: 15px; padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 215, 0, 0.05); /* خط فاصل خافت جداً */
    display: flex; align-items: center; justify-content: space-between;
}

/* --- الأزرار --- */
.btn-gold {
    display: inline-block; padding: 12px 40px;
    background: rgba(0,0,0,0.6);
    color: var(--primary);
    border: 1px solid rgba(255, 215, 0, 0.4); /* حدود غير ساطعة */
    font-weight: bold; text-decoration: none; text-transform: uppercase;
    transition: 0.3s; margin: 10px;
    clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.btn-gold:hover {
    background: var(--primary); color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

/* --- الجداول --- */
table { width: 100%; border-collapse: separate; border-spacing: 0 5px; }
tr { transition: 0.2s; }
td { padding: 12px; border-bottom: 1px solid rgba(255,255,255,0.03); }
tr:hover td { background: rgba(255, 215, 0, 0.05); } 

.rank-badge {
    background: #222; 
    border: 1px solid var(--primary-dim);
    color: var(--primary); font-weight: bold;
    width: 25px; height: 25px; display: inline-flex;
    align-items: center; justify-content: center;
    border-radius: 50%; font-size: 12px; 
}

/* --- الهيرو --- */
.hero { text-align: center; padding: 80px 20px; }
.hero h1 { 
    font-size: 70px; margin-bottom: 10px; color: #fff;
    /* ظل نصي ناعم جداً */
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

/* الموبايل */
@media (max-width: 768px) {
    .container { grid-template-columns: 1fr; }
    nav ul { gap: 15px; font-size: 12px; }
    .hero h1 { font-size: 45px; }
}

/* --- Shop Styles (Add to end of style.css) --- */

/* تخطيط صفحة المتجر */
.shop-layout {
    display: grid;
    grid-template-columns: 250px 1fr; /* القائمة الجانبية + المنتجات */
    gap: 30px;
    max-width: 1300px;
    margin: 40px auto;
    padding: 0 20px;
}

/* القائمة الجانبية (تصنيفات) */
.shop-sidebar {
    background: var(--card-bg);
    border: 1px solid rgba(184, 134, 11, 0.2);
    border-radius: 4px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.category-link {
    display: block;
    padding: 12px 15px;
    color: #ccc;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    font-weight: bold;
}

.category-link:hover, .category-link.active {
    background: rgba(255, 215, 0, 0.1);
    color: var(--primary);
    border-left: 3px solid var(--primary);
}

/* شريط البحث */
.search-box {
    position: relative;
    margin-bottom: 30px;
}
.search-input {
    width: 100%;
    padding: 15px 45px 15px 15px;
    background: rgba(0,0,0,0.5);
    border: 1px solid var(--primary-dim);
    color: #fff;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    outline: none;
    transition: 0.3s;
}
.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}
.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary);
}

/* شبكة المنتجات */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* بطاقة المنتج */
.product-card {
    background: linear-gradient(145deg, rgba(20,20,20,0.95), rgba(10,10,10,0.95));
    border: 1px solid rgba(184, 134, 11, 0.15);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    position: relative;
    text-align: center;
    padding-bottom: 15px;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.15);
}

.product-image-container {
    height: 180px;
    background: radial-gradient(circle, rgba(50,50,50,0.3) 0%, transparent 70%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 10px;
}

.product-img {
    max-width: 100%;
    max-height: 100%;
    transition: 0.4s;
    filter: drop-shadow(0 5px 5px rgba(0,0,0,0.5));
}

.product-card:hover .product-img {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 0 10px var(--primary));
}

.product-title {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-desc {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
    padding: 0 10px;
    height: 35px; /* ارتفاع ثابت للوصف */
    overflow: hidden;
}

.product-price {
    font-size: 18px;
    color: var(--primary);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.btn-add-cart {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Cairo', sans-serif;
    font-weight: bold;
    transition: 0.3s;
    border-radius: 4px;
}

.btn-add-cart:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--primary);
}

/* --- سلة المشتريات الجانبية (Slide Menu) --- */
.cart-sidebar {
    position: fixed;
    top: 0; left: -350px; /* مخفية خارج الشاشة */
    width: 320px;
    height: 100%;
    background: rgba(10, 10, 12, 0.98);
    border-right: 2px solid var(--primary);
    z-index: 1000;
    transition: 0.4s;
    padding: 20px;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.cart-sidebar.open { left: 0; }

.cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding-bottom: 15px; border-bottom: 1px solid #333; margin-bottom: 15px;
}

.cart-items { flex-grow: 1; overflow-y: auto; }

.cart-item {
    display: flex; align-items: center; margin-bottom: 15px;
    background: rgba(255,255,255,0.05); padding: 10px; border-radius: 5px;
}

.cart-item img { width: 40px; height: 40px; margin-left: 10px; }
.cart-item-info { flex-grow: 1; }
.cart-item-remove { color: #ff4444; cursor: pointer; font-size: 14px; }

.cart-footer { border-top: 1px solid #333; padding-top: 20px; }
.total-price { font-size: 20px; color: var(--primary); font-weight: bold; text-align: center; margin-bottom: 15px; display:block; }

/* زر عائم لفتح السلة */
.cart-float-btn {
    position: fixed; bottom: 30px; left: 30px;
    background: var(--primary); color: #000;
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; cursor: pointer; z-index: 999;
    box-shadow: 0 0 20px rgba(255,215,0,0.5);
    transition: 0.3s;
}
.cart-float-btn:hover { transform: scale(1.1); }
.cart-count {
    position: absolute; top: 0; right: 0;
    background: red; color: white;
    font-size: 12px; width: 20px; height: 20px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

/* للموبايل */
@media (max-width: 768px) {
    .shop-layout { grid-template-columns: 1fr; }
    .shop-sidebar { display: none; /* يمكن تحويلها لقائمة منسدلة لاحقاً */ }
}