/* ══════════════════════════════════════════════════════════ HERO HISTORICAL THEME - فخامة تاريخية متجاوبة ══════════════════════════════════════════════════════════ */ /* 1. تعريف المتغيرات لضمان التوافق مع الوضع الليلي والنهاري */ :root { --hero-bg-light: #FDFBF7; /* لون البردي الفاتح */ --hero-bg-dark: #0F172A; /* كحلي ليلي عميق (أفضل من الأسود الصريح) */ --hero-gold: #D4AF37; --hero-gold-gradient: linear-gradient(135deg, #BF953F 0%, #FCF6BA 25%, #B38728 50%, #FBF5B7 75%, #AA771C 100%); --hero-text-light: #1A1A1A; --hero-text-dark: #E2D8C3; --hero-accent: #1E3A5F; /* أزرق لازوردي */ } /* اكتشاف الوضع الليلي تلقائياً */ @media (prefers-color-scheme: dark) { :root { --hero-bg-current: var(--hero-bg-dark); --hero-text-current: var(--hero-text-dark); } } /* دعم أنظمة الدارك مود اليدوية في المواقع */ .dark-mode #hero-historical, [data-theme="dark"] #hero-historical { --hero-bg-current: var(--hero-bg-dark); --hero-text-current: var(--hero-text-dark); } :root { --hero-bg-current: var(--hero-bg-light); --hero-text-current: var(--hero-text-light); } /* 2. الحاوية الرئيسية */ .hero-historical-section { position: relative; width: 100%; min-height: 80vh; /* مسافة مثالية، ليست ضخمة جداً */ max-height: 900px; background-color: var(--hero-bg-current); color: var(--hero-text-current); display: flex; align-items: center; overflow: hidden; transition: background-color 0.4s ease, color 0.4s ease; padding: 2rem 0; } /* 3. الزخرفة الخلفية (نمط هندسي خفيف جداً) */ .hero-bg-pattern { position: absolute; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30Z' fill='none' stroke='%23D4AF37' stroke-width='1'/%3E%3C/svg%3E"); pointer-events: none; z-index: 1; } .hero-glow { position: absolute; top: -20%; right: -10%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%); pointer-events: none; z-index: 1; } .hero-container { position: relative; z-index: 2; width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; } /* 4. إدارة الشرائح */ .hero-slide { display: none; animation: fadeInHistorical 0.8s ease-out forwards; } .hero-slide.active { display: block; } @keyframes fadeInHistorical { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; } /* 5. المحتوى النصي */ .hero-content { text-align: right; } .pharaonic-badge { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--hero-gold); padding: 0.4rem 1rem; border-radius: 50px; font-family: 'Cairo', sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 1.5rem; } .badge-icon { font-size: 1.2rem; } .hero-title { font-family: 'Reem Kufi', 'Cairo', sans-serif; /* خط تاريخي فاخر */ font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; line-height: 1.2; margin-bottom: 1.5rem; color: var(--hero-text-current); } .text-gold { background: var(--hero-gold-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .hero-subtitle { font-family: 'Cairo', sans-serif; font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.8; color: var(--hero-text-current); opacity: 0.85; margin-bottom: 2.5rem; max-width: 500px; } /* 6. الأزرار الفاخرة */ .hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; } .btn-pharaonic { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.9rem 2rem; border-radius: 8px; font-family: 'Cairo', sans-serif; font-weight: 700; font-size: 1rem; text-decoration: none; transition: all 0.3s ease; position: relative; overflow: hidden; } .btn-pharaonic.primary { background: var(--hero-gold-gradient); color: #0F172A; border: none; box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); } .btn-pharaonic.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4); } .btn-pharaonic.secondary { background: transparent; color: var(--hero-text-current); border: 2px solid rgba(212, 175, 55, 0.5); } .btn-pharaonic.secondary:hover { border-color: var(--hero-gold); background: rgba(212, 175, 55, 0.05); } /* 7. العنصر البصري (الإطار الذهبي) */ .hero-visual { display: flex; justify-content: center; align-items: center; position: relative; } .golden-frame-wrapper { position: relative; padding: 15px; } .golden-frame { position: relative; width: 100%; max-width: 450px; aspect-ratio: 4/5; border-radius: 20px; overflow: hidden; border: 2px solid rgba(212, 175, 55, 0.3); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15); background: rgba(212, 175, 55, 0.05); } .hero-image { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .golden-frame:hover .hero-image { transform: scale(1.03); } .hero-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--hero-gold); font-family: 'Cairo', sans-serif; font-size: 1.2rem; } .placeholder-icon { font-size: 4rem; margin-bottom: 1rem; opacity: 0.5; } /* زخارف الزوايا */ .frame-ornament { position: absolute; width: 40px; height: 40px; border: 3px solid var(--hero-gold); z-index: 3; } .frame-ornament.top-right { top: 0; right: 0; border-left: none; border-bottom: none; border-radius: 0 10px 0 0; } .frame-ornament.bottom-left { bottom: 0; left: 0; border-right: none; border-top: none; border-radius: 0 0 0 10px; } /* 8. أزرار التحكم */ .hero-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 3rem; } .hero-nav-btn { background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3); color: var(--hero-gold); width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease; } .hero-nav-btn:hover { background: var(--hero-gold); color: #0F172A; } .hero-dots { display: flex; gap: 0.5rem; } .hero-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(212, 175, 55, 0.3); border: none; cursor: pointer; transition: all 0.3s ease; } .hero-dot.active { background: var(--hero-gold); width: 30px; border-radius: 10px; } /* 9. التجاوب مع الموبايل (Responsive) */ @media (max-width: 968px) { .hero-historical-section { min-height: auto; padding: 4rem 0; } .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; } .hero-content { text-align: center; order: 2; } .hero-subtitle { margin-left: auto; margin-right: auto; } .hero-actions { justify-content: center; } .hero-visual { order: 1; } .golden-frame { max-width: 350px; aspect-ratio: 1/1; } } @media (max-width: 480px) { .hero-title { font-size: 2rem; } .btn-pharaonic { width: 100%; justify-content: center; } .golden-frame { max-width: 280px; } }