@import url('../event-kit.css');
@import url('https://fonts.googleapis.com/css2?family=Amiri&family=Pinyon+Script&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500&family=Poppins:wght@400;500;600&display=swap');

/* =========================================================================
   Aqiqah Teddy
   Arah: kamar bayi penuh mainan. Kuning mentega bermotif gingham (motif
   identitas, dipakai penuh di sampul/galeri/penutup dan sebagai strip tepi
   di halaman lain), beruang & balok huruf, bingkai oval emas berpita.
   Dial: ENERGY 2 / RHYTHM 2 / MOTION 2.
   Huruf: Pinyon Script (nama & judul, kaligrafi kartu ucapan bayi),
   Playfair Display (angka tanggal & countdown, kontras tinggi),
   Poppins (isi; geometris bulat, ramah seperti mainan).
   Kontras: teks #5B4331 di #FFF3C4 7.9:1; tombol putih di atas cokelat 8.4:1;
   ikon aktif cokelat tua di atas emas 4.7:1.
   ========================================================================= */

.at {
    --at-check: color-mix(in srgb, var(--secondary) 16%, transparent);
    --at-gold: var(--secondary);
    --at-paper: color-mix(in srgb, var(--bg-color), #fff 45%);
    font-size: 14.5px;
}
.at .ev-panel { background: var(--bg-color); }
.at .ev-scroll { padding-bottom: 76px; }
.at .ev-btn { border-radius: 8px; background: var(--primary); }
/* Kuning polos dengan strip gingham di kedua sisi (seperti referensi), cahaya
   lembut di tengah supaya halaman terasa bercat, bukan datar. */
.at-page {
    color: var(--text);
    background:
        repeating-linear-gradient(0deg, var(--at-check) 0 11px, transparent 11px 22px) left top / 30px 100% no-repeat,
        repeating-linear-gradient(90deg, var(--at-check) 0 11px, transparent 11px 22px) left top / 30px 100% no-repeat,
        repeating-linear-gradient(0deg, var(--at-check) 0 11px, transparent 11px 22px) right top / 30px 100% no-repeat,
        repeating-linear-gradient(90deg, var(--at-check) 0 11px, transparent 11px 22px) right top / 30px 100% no-repeat,
        radial-gradient(70% 40% at 50% 30%, color-mix(in srgb, var(--bg-color), #fff 55%), transparent 75%),
        var(--bg-color);
}
.at-page .ev-inner { padding-inline: 38px; }
.at-cloud { width: 34%; max-width: 150px; opacity: .95; }
.at-cloud-a { top: 1%; left: 22%; width: 26%; }
.at-cloud-b { top: 34%; right: -8%; }
.at-cloud-c { bottom: 18%; left: -10%; }
.at-cloud-hero { top: 44%; right: -12%; }
.at-cloud-event { top: 2%; right: -10%; }
.at-cloud-rsvp { top: 4%; right: -12%; }
.at-deco-bear-tl { width: 22%; max-width: 96px; top: 10px; left: 30px; }
.at-deco-balloons { width: 24%; max-width: 104px; top: 6px; right: 26px; }
.at-gingham, .at-gate {
    background-color: var(--bg-color);
    background-image:
        repeating-linear-gradient(0deg, var(--at-check) 0 16px, transparent 16px 32px),
        repeating-linear-gradient(90deg, var(--at-check) 0 16px, transparent 16px 32px);
    color: var(--text);
}
.at-deco { position: absolute; z-index: 1; pointer-events: none; }
.at-arabic { font-family: 'Amiri', serif; font-size: 25px; line-height: 1.8; color: var(--primary); }
.at-small { font-size: 13px; }
/* Nama bergradasi emas tua; titik paling terang (#8A6424) tetap 4.9:1 di latar kuning. */
.at .at-name {
    font-family: 'Pinyon Script', cursive; font-weight: 400; font-size: clamp(34px, 10cqw, 46px); line-height: 1.3; overflow-wrap: anywhere;
    color: #6E4E1C; background: linear-gradient(100deg, #6E4E1C, #8A6424 45%, #5E4115); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.at .at-script-title { font-family: 'Pinyon Script', cursive; font-weight: 400; font-size: clamp(38px, 11cqw, 48px); line-height: 1.2; color: var(--boho-dark); }
.at .at-serif-title { font-family: var(--boho-font-heading), serif; font-style: italic; font-weight: 500; font-size: 27px; color: var(--boho-dark); }
.at .ev-title { font-family: 'Pinyon Script', cursive; font-weight: 400; font-size: 42px; color: var(--boho-dark); }

/* ---------- Bingkai oval emas: area foto = elips dalam frame.svg ---------- */
.at-framed { position: relative; width: min(64%, 240px); aspect-ratio: 300 / 360; margin: 12px auto 4px; }
.at-frame { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.at-frame-photo { position: absolute !important; left: 16.67%; top: 11.11%; width: 66.67%; height: 72.22%; border-radius: 50%; z-index: 3; background: var(--at-paper); }
.at-framed-hero { width: min(70%, 260px); }
.at-framed-end { width: min(56%, 210px); margin-bottom: 18px; }

/* ---------- Sampul ---------- */
.at-gate { text-align: center; }
.at-deco-blocks { width: 26%; max-width: 110px; bottom: 14px; right: 30px; }
.at-deco-bear { width: 24%; max-width: 104px; left: 30px; bottom: 12px; }
.at-gate-copy { position: relative; z-index: 2; min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 110px 38px 120px; }
.at-guest { margin: 10px 0 12px; font-size: 13.5px; }
.at-guest-name { font-family: var(--boho-font-heading), serif; font-size: 21px; font-weight: 700; color: var(--boho-dark); }

/* ---------- Pembuka & data lahir ---------- */
.at-salam { font-weight: 600; }
.at-intro { max-width: 360px; margin: 8px auto 0 !important; white-space: pre-line; }
.at-parents { font-weight: 500; }
/* Baris ikon data lahir: ikon garis besar + nilai kecil di bawahnya, tanpa label
   terlihat (label tetap ada untuk pembaca layar). */
.at-hero .ev-inner { padding-top: 110px; }
.at-facts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(56px, 1fr)); gap: 12px 4px; }
.at-facts li { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.at-facts svg { width: 36px; height: 36px; color: var(--boho-dark); stroke-width: 1.3; }
.at-fact-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.at-facts strong { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--boho-dark); }

/* ---------- Acara ---------- */
.at-title-bear { width: 72px; margin: 0 auto 4px; }
.at-countdown { display: flex; justify-content: center; gap: 20px; margin: 14px 0 18px; }
.at .ev-count strong { display: block; font-family: var(--boho-font-heading), serif; font-size: 32px; font-weight: 600; line-height: 1.1; color: var(--boho-dark); }
.at .ev-count span { font-size: 12px; }
.at-btn-outline { background: transparent !important; color: var(--primary); border: 1.5px solid var(--primary); }
.at-date-edit { margin-bottom: 10px; }
.at-note { max-width: 380px; margin: 20px auto 0 !important; white-space: pre-line; }
.at-save-row { position: relative; display: flex; justify-content: center; }
.at-save-blocks { position: absolute; left: -6px; top: 50%; width: 76px; transform: translateY(-50%); }
/* Kartu acara berbingkai kuning tebal seperti referensi. */
.at-event {
    position: relative; margin-top: 22px; padding: 28px 20px 24px;
    background: color-mix(in srgb, var(--bg-color), #F6DC8A 30%);
    border: 10px solid color-mix(in srgb, var(--bg-color), #F2CF63 45%); border-radius: 30px;
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--secondary) 45%, transparent), 0 12px 26px rgba(107, 68, 35, .12);
}
.at-hadith { position: relative; margin-top: 30px; padding: 44px 22px 26px; border-radius: 50% 50% 18px 18px / 36px 36px 18px 18px; background: color-mix(in srgb, var(--bg-color), #F6DC8A 34%); }
.at-hadith-text { font-family: var(--boho-font-heading), serif; font-style: italic; font-size: 14.5px; line-height: 1.75; white-space: pre-line; }
.at-hadith-source { margin-top: 12px !important; font-size: 13px; }
.at-deco.at-bear-rsvp { position: static; display: block; width: 84px; margin: 0 auto 4px; }
.at-event-icon svg { display: block; width: 42px; height: 42px; margin: 0 auto; color: var(--primary); }
.at .at-event-title { font-family: 'Pinyon Script', cursive; font-weight: 400; font-size: 40px; line-height: 1.2; color: var(--boho-dark); }
.at-event-month { margin-top: 2px !important; font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.at-event-date { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 6px auto 8px !important; max-width: 300px; }
.at-event-date span { padding: 4px 0; border-block: 1.5px solid var(--primary); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.at-event-date strong { font-family: var(--boho-font-heading), serif; font-size: 54px; font-weight: 600; line-height: 1; color: var(--boho-dark); }
.at-event-time { font-size: 14px; }
.at-event-pin { display: block; margin-top: 14px; }
.at-event-pin svg { display: block; width: 24px; height: 24px; margin: 0 auto; color: var(--primary); }
.at-event-place { font-weight: 600; }
.at-event-addr { font-size: 13.5px; }
.at-map { width: 100%; height: 190px; margin-top: 14px; border: 0; border-radius: 12px; }
.at-btn-map { margin-top: 14px; }

/* ---------- Doa ---------- */
.at-doa { margin-top: 12px !important; font-family: var(--boho-font-heading), serif; font-style: italic; font-size: 15.5px; line-height: 1.8; white-space: pre-line; }
.at-doa-source { margin-top: 10px !important; font-size: 13px; }
.at-divider { display: flex; align-items: center; gap: 12px; margin-top: 22px !important; }
.at-divider::before, .at-divider::after { content: ''; flex: 1; height: 1px; background: color-mix(in srgb, var(--primary) 45%, transparent); }
.at-divider img { width: 38px; }

/* ---------- Galeri kolase ---------- */
.at-gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 18px; }
.at-gallery-item { grid-column: span 2; aspect-ratio: 1; border-radius: 6px; border: 3px solid #fff; }
.at-gallery-item:nth-child(5n+4), .at-gallery-item:nth-child(5n+5) { grid-column: span 3; aspect-ratio: 3 / 4; }
.at-gallery-item:nth-child(5n+4):last-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

/* ---------- Ucapan: rekap hadir memakai warna status, bukan warna tema ---------- */
.at-tally { display: flex; justify-content: center; gap: 12px; margin-top: 18px; }
.at-tally p { width: 116px; padding: 10px 8px; border-radius: 8px; color: #fff; }
.at-tally strong { display: block; font-size: 24px; line-height: 1.1; }
.at-tally span { font-size: 12.5px; }
.at-tally-yes { background: #3E7D4F; }
.at-tally-no { background: #B5443F; }
.at .ev-input { border-radius: 8px; border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.at .ev-comment { background: var(--at-paper); }
.at .ev-gift-card { background: var(--at-paper); border: 1px solid var(--at-gold); }
.at-gift { margin-top: 18px; }

/* ---------- Penutup ---------- */
.at-deco-blocks-end { width: 96px; left: 14px; bottom: 12px; }
.at-closing .ev-inner { padding-bottom: 110px; }
.at-closing-msg { white-space: pre-line; }
.at-closing .at-salam { margin-top: 16px !important; }
.at-by { margin-top: 16px !important; font-size: 13.5px; }
.at-sign { font-family: 'Pinyon Script', cursive; font-size: 34px; line-height: 1.3; color: var(--boho-dark); }

/* ---------- Navigasi bulat di bawah (muncul setelah sampul dibuka) ---------- */
.at-nav {
    position: absolute; left: 50%; bottom: 12px; z-index: 65; display: flex; gap: 12px; padding: 7px 12px;
    border-radius: 999px; background: color-mix(in srgb, var(--bg-color), #fff 35%);
    box-shadow: 0 6px 18px rgba(74, 47, 26, .18);
    transform: translate(-50%, 150%); opacity: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .4s;
}
.at.is-opened .at-nav { transform: translate(-50%, 0); opacity: 1; }
.at-nav a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; }
.at-nav a.active { background: var(--secondary); color: var(--boho-dark); }
.at-nav svg { width: 22px; height: 22px; }
.at .music-btn.ev-music { bottom: 82px; }

.at .ev-side-name { font-family: 'Pinyon Script', cursive; font-size: clamp(52px, 5.5vw, 78px); }
