/* =====================================================================
   event.css — صفحة معاينة الفعالية فقط  •  بعد site.css
   التبويبات/lightbox/السلة/الإشعار من site.css. لون البرنامج عبر q-track-*.
   ===================================================================== */

/* البوستر (sticky) + إحصائيات سريعة */
.ev-poster { background: #fff; border-radius: 24px; height: 540px; display: block; padding: 0; box-shadow: 0 14px 36px rgba(20,90,84,.1); position: relative; cursor: zoom-in; overflow: hidden; }
.ev-poster__img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.ev-poster:hover .ev-poster__img { transform: scale(1.07); }
.ev-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,46,42,.30), rgba(8,46,42,0) 32%); pointer-events: none; }
.ev-poster__badge { position: absolute; top: 16px; right: 16px; background: var(--track); color: #fff; font-weight: 800; font-size: 12.5px; padding: 6px 14px; border-radius: 18px; z-index: 2; box-shadow: 0 4px 12px rgba(8,46,42,.22); }
.ev-poster__hint { position: absolute; bottom: 16px; left: 16px; z-index: 2; background: rgba(8,46,42,.66); color: #fff; font-weight: 700; font-size: 12px; padding: 7px 12px; border-radius: 16px; display: flex; align-items: center; gap: 6px; pointer-events: none; backdrop-filter: blur(4px); }
.ev-quickstats { display: flex; gap: 12px; margin-top: 14px; }
.ev-quickstat { flex: 1; background: #fff; border-radius: 14px; padding: 14px; text-align: center; box-shadow: 0 6px 16px rgba(20,90,84,.06); }
.ev-quickstat__num { font-family: var(--font-head); font-weight: 800; font-size: 20px; color: var(--track); }
.ev-quickstat__label { font-size: 12px; color: var(--c-muted-2); font-weight: 700; }

/* العنوان + الوسوم */
.ev-trackbadge { background: var(--track-soft); color: var(--track); font-weight: 800; font-size: 12.5px; padding: 6px 14px; border-radius: 16px; }
.ev-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(26px,4vw,34px); line-height: 1.35; margin: 0 0 10px; color: var(--c-ink); }
.ev-tagline { font-size: 17px; line-height: 1.7; color: var(--c-muted); font-weight: 600; margin: 0 0 22px; }

/* شبكة المعلومات (مكان/وقت/مدة…) */
.ev-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-bottom: 26px; }
.ev-meta__item { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 15px; padding: 13px 15px; box-shadow: 0 6px 16px rgba(20,90,84,.05); }
.ev-meta__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--track-soft); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ev-meta__label { font-size: 12px; color: #9BB0AC; font-weight: 700; }
.ev-meta__value { font-size: 14.5px; color: var(--c-ink); font-weight: 700; line-height: 1.4; }

/* بطاقة التسجيل */
.ev-reg { background: #F3F9FD; border: 1.5px solid #D6EAF6; border-radius: 22px; padding: 24px; }
.ev-reg__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.ev-reg__title { display: flex; align-items: center; gap: 9px; }
.ev-reg__bar { width: 7px; height: 22px; border-radius: 5px; background: var(--track); }
.ev-reg__title h3 { font-family: var(--font-head); font-weight: 800; font-size: 19px; margin: 0; color: var(--c-ink); }
.ev-reg__price { font-family: var(--font-head); font-weight: 800; font-size: 32px; color: var(--track); }
.ev-reg__price-unit { font-size: 15px; color: var(--c-muted-2); font-weight: 700; }
.ev-reg__label { display: block; font-size: 13px; font-weight: 700; color: var(--c-muted); margin-bottom: 8px; }
.ev-reg__note { font-size: 12px; color: #9BB0AC; font-weight: 600; margin-bottom: 16px; }
.ev-reg__actions { display: flex; gap: 12px; }
.ev-reg__submit { flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px; background: linear-gradient(135deg, var(--track), var(--track-d)); color: #fff; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 16.5px; padding: 16px; border-radius: 14px; box-shadow: 0 10px 24px rgba(20, 90, 84, .22); transition: transform .15s ease, box-shadow .15s ease; }
.ev-reg__submit:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(20, 90, 84, .30); }
.ev-reg__submit:active { transform: translateY(0); }
.ev-reg__cart { width: 56px; border: 2px solid #D6EAF6; border-radius: 14px; background: #fff; cursor: pointer; font-size: 20px; color: var(--track); }
.ev-reg__hint { font-size: 12px; color: var(--c-muted); font-weight: 600; margin-top: 12px; display: flex; align-items: center; gap: 7px; justify-content: center; }

/* قائمة اختيار الابن (dropdown) */
.ev-dd { position: relative; margin-bottom: 8px; }
.ev-dd__trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1.5px solid #D6EAF6; border-radius: 14px; padding: 12px 14px; cursor: pointer; }
.ev-dd__menu { position: absolute; top: calc(100% + 8px); right: 0; left: 0; z-index: 41; background: #fff; border-radius: 16px; box-shadow: 0 18px 44px rgba(12,68,63,.18); border: 1px solid var(--line); padding: 8px; animation: q-fade .16s ease; max-height: 330px; overflow-y: auto; }
.ev-dd__group { font-size: 11.5px; font-weight: 800; color: #9BB0AC; padding: 8px 12px 6px; }
.ev-dd__row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; cursor: pointer; transition: background .12s; }
.ev-dd__row:hover { background: var(--bg-page); }
.ev-dd__avatar { width: 40px; height: 40px; border-radius: 11px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; color: #fff; flex-shrink: 0; }
.ev-dd__name { font-weight: 800; font-size: 14.5px; color: var(--c-ink); }
.ev-dd__age { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 20px; background: var(--bg-page); color: var(--c-muted); }
.ev-dd__add { display: flex; align-items: center; gap: 9px; padding: 12px; margin-top: 4px; border-top: 1px dashed rgba(var(--c-teal-rgb),.20); color: var(--c-teal-d); font-weight: 800; font-size: 13.5px; }
.ev-dd__add .ico { width: 30px; height: 30px; border-radius: 9px; background: var(--bg-soft-teal); display: flex; align-items: center; justify-content: center; font-size: 17px; }

/* إضافة ابن دون مغادرة الصفحة: زرّ + تنبيه لا-أبناء + شارة المطابقة العمرية */
.ev-nochild { font-size: 13px; font-weight: 700; color: #9A6418; background: #FFF7EC; border: 1.5px solid #F6E0BC; border-radius: 12px; padding: 10px 14px; margin-bottom: 10px; line-height: 1.6; }
.ev-addchild { display: inline-flex; align-items: center; gap: 9px; background: none; border: none; cursor: pointer; color: var(--c-teal-d); font-family: var(--font-body); font-weight: 800; font-size: 13.5px; padding: 4px 2px; margin-bottom: 4px; }
.ev-addchild:hover { text-decoration: underline; }
.ev-addchild__ico { width: 28px; height: 28px; border-radius: 9px; background: var(--bg-soft-teal); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.ev-elig { font-size: 13px; font-weight: 700; border-radius: 12px; padding: 10px 14px; margin: 4px 0 12px; line-height: 1.6; }
.ev-elig.is-ok { color: var(--c-lime-d); background: #EFF8E2; border: 1.5px solid #D6EBB9; }
.ev-elig.is-bad { color: #B23B3B; background: #FDECEC; border: 1.5px solid #F5C6C6; }

/* نموذج إضافة ابن سريع (modal) */
.ev-cmodal { position: fixed; inset: 0; z-index: 1200; background: rgba(8,46,42,.55); display: flex; align-items: center; justify-content: center; padding: 18px; overflow-y: auto; animation: q-fade .18s ease; }
.ev-cmodal[hidden] { display: none; }
.ev-cmodal__card { width: 100%; max-width: 480px; background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(8,46,42,.34); overflow: hidden; margin: auto; }
.ev-cmodal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.ev-cmodal__head h3 { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; margin: 0; color: var(--c-ink); }
.ev-cmodal__ico { width: 34px; height: 34px; border-radius: 10px; background: var(--bg-soft-teal); color: var(--c-teal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ev-cmodal__close { background: none; border: none; cursor: pointer; font-size: 18px; color: var(--c-muted); width: 34px; height: 34px; border-radius: 9px; }
.ev-cmodal__close:hover { background: var(--bg-page); }
.ev-cmodal__body { padding: 20px; }
.ev-cmodal__err { font-size: 13px; font-weight: 700; color: #B23B3B; background: #FDECEC; border: 1.5px solid #F5C6C6; border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; line-height: 1.6; }
.ev-cmodal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ev-cmodal__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ev-cmodal__field--full { grid-column: 1 / -1; }
.ev-cmodal__field label { font-size: 13px; font-weight: 700; color: var(--c-muted); }
.ev-cmodal__field label span { color: var(--c-accent-d); }
.ev-cmodal__field label small { color: var(--c-muted-3); font-weight: 600; }
.ev-cmodal__field input, .ev-cmodal__field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; font-family: var(--font-body); font-size: 15px; color: var(--c-ink); background: #fff; }
.ev-cmodal__field input:focus, .ev-cmodal__field textarea:focus { outline: none; border-color: var(--c-teal); box-shadow: 0 0 0 3px rgba(var(--c-teal-rgb),.14); }
.ev-cmodal__gender { display: flex; gap: 10px; }
.ev-cmodal__gender label { display: flex; align-items: center; gap: 7px; flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--c-ink); }
.ev-cmodal__gender input { accent-color: var(--c-teal); }
.ev-cmodal__hint { font-size: 12.5px; color: var(--c-muted); font-weight: 600; margin: 14px 0 0; line-height: 1.7; }
.ev-cmodal__hint a { color: var(--c-teal-d); font-weight: 800; }
.ev-cmodal__foot { display: flex; gap: 12px; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--bg-page); }
.ev-cmodal__save { flex: 1; background: linear-gradient(135deg, var(--c-teal), var(--c-teal-d)); color: #fff; border: none; cursor: pointer; font-family: var(--font-body); font-weight: 800; font-size: 15.5px; padding: 13px; border-radius: 13px; box-shadow: 0 10px 22px rgba(var(--c-teal-rgb),.26); }
.ev-cmodal__save:disabled { opacity: .6; cursor: not-allowed; }
.ev-cmodal__cancel { background: #fff; border: 1.5px solid var(--line); border-radius: 13px; padding: 13px 20px; cursor: pointer; font-family: var(--font-body); font-weight: 700; font-size: 15px; color: var(--c-muted); }
@media (max-width: 480px) { .ev-cmodal__grid { grid-template-columns: 1fr; } }

/* ضمانات */
.ev-assure { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 24px; }
.ev-assure > div { text-align: center; font-size: 12.5px; font-weight: 700; color: var(--c-muted); }

/* العرض المكبّر للبوستر: بحجمه الكامل مع تمرير عمودي عند الحاجة (تجاوز نمط site.css المشترك) */
#evLightbox .q-lightbox__stage { align-items: flex-start; justify-content: center; overflow: auto; padding: 24px; -webkit-overflow-scrolling: touch; }
#evLightbox .q-lightbox__pic { flex: none; width: auto; height: auto; max-width: 100%; background: #fff; border-radius: 18px; padding: 0; overflow: hidden; }
#evLightbox .q-lightbox__pic img { display: block; width: auto; height: auto; max-width: min(920px, 92vw); max-height: none; object-fit: contain; border-radius: 18px; }
