/* الصفحة الرئيسية للمنصة (طلب المالك 2026-10-05): فوق theme.css، بهوية المنصة وحدها.
   بطاقة الفعالية تأخذ لوني هويتها المخصصة ان وجدت عبر --c1 و--c2 على البطاقة نفسها. */

/* المسافة بين الحروف تفكك الوصل العربي (تدقيق سديم 2026-10-05)؛ الاصلاح العام في المرحلة 1 من التقرير */
.eyebrow { letter-spacing: 0; text-transform: none; font-size: .82rem; }
.num { white-space: nowrap; }

.home-hero { padding-top: 3.5rem; padding-bottom: 2.5rem; }
.home-hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
.home-cta { margin-top: 1.4rem; }
.home-cta .btn { min-height: 48px; padding-inline: 1.4rem; }
/* بلا فعالية قادمة: الرمز المعتمد كبيرا بتوهج الهوية بدل الرسم المجرد */
.home-art { display: flex; align-items: center; justify-content: center; min-height: 300px; }
.home-art img { width: min(100%, 380px); height: auto; filter: drop-shadow(0 30px 60px rgba(var(--a2-rgb), .45)); }

/* اقرب فعالية في البطل: محتوى حقيقي فوق الطي لا رسما */
.feat { display: block; border-radius: 24px; overflow: hidden; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--glow); color: var(--ink); transition: transform .2s, border-color .2s; }
.feat:hover { transform: translateY(-3px); border-color: rgba(var(--a1-rgb), .55); color: var(--ink); }
.feat:focus-visible, .ev-link:focus-visible, .past-list a:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.feat-art, .ev-art { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--c1, var(--magenta)), var(--c2, var(--violet))); overflow: hidden; }
.feat-art::after, .ev-art::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-radial-gradient(circle at 70% 40%, rgba(255,255,255,.08) 0 2px, transparent 2px 22px); }
.feat-art.has-photo::after, .ev-art.has-photo::after { background: linear-gradient(to top, rgba(0,0,0,.55), transparent 55%); }
.feat-art img, .ev-art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.feat-logo { position: absolute; inset: 0; margin: auto; z-index: 1; width: max-content; height: max-content; max-width: 60%; background: #fff; border-radius: 16px; padding: .8rem 1.1rem; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.feat-logo img { display: block; max-width: 100%; max-height: 70px; width: auto; height: auto; object-fit: contain; }
.has-photo .feat-logo { inset: auto; bottom: .8rem; inset-inline-end: .8rem; padding: .45rem .7rem; border-radius: 12px; max-width: 40%; }
.has-photo .feat-logo img { max-height: 40px; }
.feat-tag { position: absolute; top: .9rem; inset-inline-start: .9rem; z-index: 2; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(10, 4, 28, .72); backdrop-filter: blur(6px); color: #fff; font-weight: 700; font-size: .82rem; }
.feat-body { display: flex; flex-direction: column; gap: .3rem; padding: 1.1rem 1.3rem 1.25rem; }
.feat-name { font-size: 1.35rem; font-weight: 800; line-height: 1.3; }
.feat-go { display: inline-flex; align-items: center; gap: .3rem; margin-top: .4rem; color: var(--pink); font-weight: 700; }

.ev-org { color: var(--ink-3); font-size: .8rem; font-weight: 700; }
.ev-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: .4rem; color: var(--ink-2); font-size: .92rem; }
.ev-line .sep { color: var(--ink-3); }

/* شبكة الفعاليات */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.25rem; }
.ev-grid > * { min-width: 0; }
.ev-card { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.ev-card:hover { transform: translateY(-4px); border-color: rgba(var(--a1-rgb), .5); box-shadow: var(--glow); }
.ev-date { position: absolute; top: .8rem; inset-inline-end: .8rem; z-index: 2; min-width: 58px; padding: .35rem .5rem .4rem; border-radius: 14px; background: #fff; color: #17102e; text-align: center; line-height: 1.1; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.ev-date .d { display: block; font-size: 1.55rem; font-weight: 900; }
.ev-date .m { display: block; font-size: .72rem; font-weight: 700; color: #5b4f7a; }
.ev-status { position: absolute; bottom: .8rem; inset-inline-start: .8rem; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 700; color: #fff; background: rgba(10, 4, 28, .72); backdrop-filter: blur(6px); }
.ev-status.is-open { background: rgba(14, 120, 80, .9); }
.ev-status.is-live { background: rgba(214, 20, 90, .92); }
.ev-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.2rem 1.15rem; flex: 1; }
.ev-body h3 { font-size: 1.15rem; margin: 0; line-height: 1.4; }
.ev-link { color: var(--ink); }
.ev-link::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* البطاقة كلها رابط الصفحة، وزر التسجيل فوقها */
.ev-link:hover { color: var(--ink); }
.ev-headline { color: var(--ink-2); font-size: .92rem; margin: 0; }
.ev-meta { list-style: none; margin: .25rem 0 0; padding: 0; display: grid; gap: .3rem; color: var(--ink-2); font-size: .88rem; }
.ev-meta li { display: flex; align-items: flex-start; gap: .45rem; }
.ev-meta .ico { flex: none; margin-top: .2rem; color: var(--ink-3); }
.ev-actions { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: auto; padding-top: .8rem; }
.ev-actions .btn { position: relative; z-index: 2; }
.ev-more { display: inline-flex; align-items: center; gap: .25rem; color: var(--pink); font-weight: 700; font-size: .9rem; margin-inline-start: auto; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.7); animation: live-pulse 1.6s infinite; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } .feat, .ev-card { transition: none; } }

.home-empty { text-align: center; padding: 2.4rem 1.5rem; max-width: 620px; margin: 0 auto; }
.home-empty svg { width: 46px; height: 46px; color: var(--pink); margin-bottom: .6rem; }

/* السابقة: قائمة مدمجة للثقة لا للتسجيل */
.past { margin-top: 2.6rem; }
.past-title { font-size: 1rem; color: var(--ink-2); margin-bottom: .8rem; }
.past-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: .7rem; }
.past-list a { display: flex; flex-direction: column; gap: .1rem; padding: .75rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); min-height: 44px; }
.past-list a:hover { border-color: var(--line-2); background: var(--panel-2); }
.past-name { font-weight: 700; }

/* من نحن */
.about { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.2rem; align-items: center; }
.about h2 { font-size: clamp(1.45rem, 3vw, 2rem); }
.about-text { color: var(--ink-2); font-size: 1.02rem; max-width: 600px; }
.values { display: grid; gap: .9rem; }
.value { display: flex; gap: .9rem; align-items: flex-start; padding: 1rem 1.1rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.value strong { display: block; margin-bottom: .15rem; }
.value p { margin: 0; color: var(--ink-3); font-size: .9rem; }
.value-ico, .cap-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--grad-soft); color: var(--pink); border: 1px solid var(--line); }
.value-ico svg, .cap-ico svg { width: 22px; height: 22px; }

/* كيف ننظم: مراحل مرقمة بشارات مصممة */
.steps { list-style: none; margin: 0 0 2.2rem; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; counter-reset: none; }
.step { position: relative; padding: 1.2rem 1.15rem 1.1rem; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.step-n { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--grad); color: var(--on-accent); font-weight: 900; font-size: 1.1rem; box-shadow: var(--glow); margin-bottom: .7rem; }
.step strong { display: block; font-size: 1.05rem; margin-bottom: .25rem; }
.step p { margin: 0; color: var(--ink-3); font-size: .9rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 2.45rem; inset-inline-end: -1rem; width: 1rem; height: 2px; background: var(--line-2); }

.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.cap { padding: 1.1rem; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.cap strong { display: block; margin: .6rem 0 .2rem; }
.cap p { margin: 0; color: var(--ink-3); font-size: .88rem; }

/* التواصل */
.home-contact { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2rem 1.8rem; }
.home-contact h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.home-contact p { margin: 0; max-width: 560px; }
.home-contact-actions .btn { min-height: 48px; padding-inline: 1.6rem; }
.footer a { color: var(--ink-2); }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; gap: 1.4rem; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step::after { display: none; }
}
@media (max-width: 640px) {
  .home-nav { display: none; }
  .topbar .btn-sm { min-height: 40px; }
  .home-hero { padding-top: 2rem; padding-bottom: 1.5rem; }
  .home-cta .btn { flex: 1 1 auto; justify-content: center; }
  .section { padding: 2rem 1rem; }
  .steps { grid-template-columns: 1fr; }
  .ev-actions .btn { min-height: 44px; padding-inline: 1.1rem; }
  .home-contact { padding: 1.5rem 1.2rem; }
  .home-contact-actions { width: 100%; }
  .home-contact-actions .btn { flex: 1 1 auto; justify-content: center; }
}
