:root {
    --primary: #001a33; 
    --accent: #d4af37;  
    --bg-main: #f4f6f9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #6c757d;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Cairo', sans-serif; direction: rtl; background: var(--bg-main); color: var(--text-dark); scroll-behavior: smooth; }

/* --- الواجهة السينمائية (Hero) --- */
.hero { height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hero-video { position: absolute; top: 50%; left: 50%; min-width: 100%; min-height: 100%; transform: translate(-50%, -50%); z-index: 0; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,26,51,0.85) 0%, rgba(0,0,0,0.6) 100%); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; color: var(--white); width: 95%; max-width: 850px; padding: 50px; background: rgba(255, 255, 255, 0.05); backdrop-filter: blur(20px); border-radius: 30px; border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 30px 60px rgba(0,0,0,0.6); }
.hero-logo { width: 140px; border-radius: 50%; border: 4px solid var(--accent); margin-bottom: 20px; box-shadow: 0 0 30px rgba(212, 175, 55, 0.5); }

/* --- الأزرار الموحدة --- */
.btn-group { display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; margin-top: 30px; }
.btn, .btn-modern { padding: 15px 30px; border-radius: 50px; font-weight: 800; font-size: 1.1rem; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; transition: 0.3s; border: none; cursor: pointer; font-family: 'Cairo'; }
.btn-gold { background: linear-gradient(45deg, var(--accent), #f1c40f); color: var(--primary); box-shadow: 0 10px 20px rgba(212,175,55,0.3); }
.btn-gold:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(212,175,55,0.6); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--primary); }

/* --- شريط الأخبار العاجلة --- */
.news-bar { background: var(--primary); color: var(--accent); display: flex; align-items: center; border-bottom: 3px solid var(--accent); font-weight: 700; font-size: 1.1rem; }
.news-title { background: var(--accent); color: var(--primary); padding: 15px 30px; white-space: nowrap; z-index: 10; }

/* --- العناوين الأساسية للمقاطع --- */
.section { padding: 90px 20px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-title { color: var(--primary); font-size: 2.8rem; font-weight: 900; margin-bottom: 10px; }
.section-subtitle { color: var(--text-muted); font-size: 1.2rem; }

/* ========================================= */
/* --- نظام الكروت الذكية (vCards) المذهل --- */
/* ========================================= */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; max-width: 1200px; margin: auto; }
.v-card { background: var(--white); border-radius: 25px; overflow: hidden; box-shadow: 0 15px 40px rgba(0,0,0,0.1); transition: 0.4s; border: 2px solid #eaeaea; text-align: center; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.v-card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(0,0,0,0.2); border-color: var(--accent); }

/* الغلاف (Cover) */
.v-card-header { height: 160px; background-size: cover; background-position: center; position: relative; background-color: var(--primary); border-bottom: 4px solid var(--accent); }
.v-card-header::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.6)); }

/* الصورة الشخصية */
.v-card-avatar { width: 140px; height: 140px; border-radius: 50%; border: 6px solid var(--white); margin: -70px auto 0; position: relative; z-index: 2; object-fit: cover; background: var(--white); box-shadow: 0 8px 20px rgba(0,0,0,0.2); }
.v-card-body { padding: 20px 25px 20px; flex: 1; display: flex; flex-direction: column; }

/* بيانات العضو */
.v-card-name { color: var(--primary); font-size: 1.7rem; font-weight: 900; margin-bottom: 5px; }
.v-card-role { display: inline-block; background: var(--bg-main); color: var(--primary); padding: 5px 15px; border-radius: 20px; font-weight: 800; font-size: 0.95rem; margin-bottom: 15px; border: 1px solid #ddd; }
.v-card-bio { background: #fcfcfc; padding: 15px; border-radius: 12px; font-size: 0.95rem; color: #444; margin-bottom: 20px; border-right: 4px solid var(--accent); box-shadow: inset 0 2px 5px rgba(0,0,0,0.03); line-height: 1.7; }

/* روابط المنصات في الكرت */
.social-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.social-links a { width: 45px; height: 45px; border-radius: 50%; background: #f0f2f5; color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; transition: 0.3s; text-decoration: none; border: 1px solid #ddd; }
.social-links a:hover { background: var(--accent); color: var(--white); transform: scale(1.15); border-color: var(--accent); box-shadow: 0 5px 15px rgba(212,175,55,0.4); }

/* الباركود وأزرار التفاعل الفائقة */
.qr-container { background: white; padding: 10px; border-radius: 15px; border: 2px solid #eee; display: inline-block; margin: 0 auto 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.card-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; margin-top: auto; }
.action-btn { flex: 1; min-width: 90px; padding: 10px; border-radius: 12px; border: none; font-family: 'Cairo'; font-weight: 800; font-size: 0.9rem; cursor: pointer; transition: 0.3s; display: flex; flex-direction: column; align-items: center; gap: 5px; }
.btn-save { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.btn-save:hover { background: #c8e6c9; transform: translateY(-3px); }
.btn-share { background: #e3f2fd; color: #1565c0; border: 1px solid #bbdefb; }
.btn-share:hover { background: #bbdefb; transform: translateY(-3px); }
.btn-print { background: #f3e5f5; color: #6a1b9a; border: 1px solid #e1bee7; }
.btn-print:hover { background: #e1bee7; transform: translateY(-3px); }

/* بصمة ودعاية مطبخ اليوم المركزي الثابتة */
.kitchen-footer { background: #fffdf5; border-top: 2px dashed #d4af37; padding: 15px; display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: auto; }
.kitchen-footer img { width: 55px; height: 55px; border-radius: 50%; border: 2px solid #d35400; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
.kitchen-text { text-align: right; line-height: 1.4; }
.kitchen-text h4 { margin: 0; font-size: 0.95rem; color: #d35400; font-weight: 900; }
.kitchen-text p { margin: 0; font-size: 0.8rem; color: #555; }
.kitchen-text strong { color: var(--primary); font-size: 0.85rem; display: block; margin-top: 3px; }

/* إعدادات الطباعة الدقيقة (تطبع الكرت فقط) */
@media print {
    body * { visibility: hidden; }
    .printable-card, .printable-card * { visibility: visible; }
    .printable-card { position: absolute; left: 0; top: 0; width: 100%; max-width: 450px; box-shadow: none; border: 2px solid #d4af37; break-inside: avoid; margin: 0 auto; }
    .card-actions, .bot-btn, .hero, .news-bar, .section-header, .search-container { display: none !important; }
}

/* ========================================================================= */
/* --- هندسة المركز الإعلامي (يوتيوب شورتس وفيسبوك) - 2 في السطر فقط --- */
/* ========================================================================= */
.media-grid { 
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* إجبار النظام على 2 فقط لجمالية العرض */
    gap: 40px; 
    max-width: 950px; /* تقييد العرض لكي لا تبدو فيديوهات الشورتس ممطوطة */
    margin: auto; 
}

.media-item { 
    background: var(--white); 
    border-radius: 20px; 
    overflow: hidden; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08); 
    border: 1px solid #eaeaea; 
    height: 650px; /* طول ممتاز يتناسب مع نسبة الشورتس وتدفق منشورات فيسبوك */
    display: flex; 
    justify-content: center; 
    align-items: center;
    transition: transform 0.3s ease;
}

.media-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--accent);
}

.media-item iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
}

@media (max-width: 850px) { 
    .media-grid { grid-template-columns: 1fr; gap: 25px; } 
    .media-item { height: 550px; } /* تعديل الطول للموبايل */
}

/* --- محرك البحث والنماذج --- */
.search-container { max-width: 900px; margin: 0 auto 50px; background: var(--white); padding: 25px; border-radius: 25px; box-shadow: 0 15px 30px rgba(0,0,0,0.06); }
.search-form { display: flex; gap: 15px; flex-wrap: wrap; }
.form-input { flex: 1; min-width: 220px; padding: 18px; border: 2px solid #eee; border-radius: 15px; font-family: 'Cairo'; font-size: 1rem; outline: none; transition: 0.3s; background: #fdfdfd; }
.form-input:focus { border-color: var(--accent); background: var(--white); box-shadow: 0 0 0 4px rgba(212,175,55,0.15); }

.form-wrapper { max-width: 850px; margin: auto; background: var(--white); padding: 50px; border-radius: 30px; box-shadow: 0 25px 50px rgba(0,0,0,0.1); border-top: 6px solid var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }
.form-group.full { grid-column: 1 / -1; }

/* --- المساعد الذكي --- */
.bot-btn { position: fixed; bottom: 35px; right: 35px; background: linear-gradient(135deg, var(--accent), #f1c40f); color: var(--primary); width: 75px; height: 75px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 35px; cursor: pointer; z-index: 1000; box-shadow: 0 15px 35px rgba(212,175,55,0.5); border: 4px solid var(--white); transition: 0.4s; animation: float 3s infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
.bot-window { position: fixed; bottom: 125px; right: 35px; width: 380px; background: var(--white); border-radius: 25px; box-shadow: 0 25px 60px rgba(0,0,0,0.25); z-index: 999; display: none; flex-direction: column; overflow: hidden; border: 2px solid var(--accent); }
.bot-header { background: var(--primary); color: var(--accent); padding: 20px; display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 1.2rem; }
.bot-body { padding: 20px; height: 400px; overflow-y: auto; background: #f4f6f9; display: flex; flex-direction: column; gap: 15px; }
.msg { max-width: 85%; padding: 15px 20px; border-radius: 20px; font-size: 1rem; line-height: 1.6; }
.msg-ai { background: var(--white); border: 1px solid #e0e0e0; align-self: flex-start; border-top-right-radius: 0; color: var(--primary); }
.msg-user { background: var(--primary); color: var(--white); align-self: flex-end; border-top-left-radius: 0; }
.bot-input { display: flex; border-top: 1px solid #eee; background: var(--white); }
.bot-input input { flex: 1; padding: 20px; border: none; outline: none; font-family: 'Cairo'; }
.bot-input button { background: var(--accent); color: var(--primary); border: none; padding: 0 25px; cursor: pointer; font-size: 1.3rem; }