/* Salam & Selah Iraq Life — dreamy sky theme */

:root {
  --ink: #2c2622;
  --muted: #6f6a63;
  --terracotta: #c1503f;
  --terracotta-deep: #a23a2b;
  --teal: #4f7d76;
  --sage: #a7c3bc;
  --peach: #f2b6a8;
  --cream: #fbf3ec;
  --yellow: #ffe27a;
  --line: #e7ddcf;
  --card: #ffffff;
  --shadow: 0 16px 40px rgba(66, 48, 33, 0.14);
  --shadow-soft: 0 6px 18px rgba(66, 48, 33, 0.10);
  --radius: 20px;
  --radius-sm: 12px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terracotta); text-decoration: none; }

/* soft cloud sky, reused in hero + give */
.sky {
  background:
    radial-gradient(46% 34% at 18% 26%, rgba(255,255,255,0.85), transparent 62%),
    radial-gradient(40% 30% at 78% 18%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(50% 40% at 60% 88%, rgba(255,255,255,0.55), transparent 60%),
    linear-gradient(180deg, #f4b8ab 0%, #f3c8ba 45%, #eddacf 78%, #e9dccf 100%);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  padding: 16px 12px;
  background: linear-gradient(180deg, rgba(244,184,171,0.9), rgba(244,184,171,0));
  backdrop-filter: blur(4px);
}
.nav a {
  border: 1.5px solid var(--terracotta);
  color: var(--terracotta-deep);
  background: rgba(255,255,255,0.35);
  padding: 6px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.nav a:hover { background: var(--terracotta); color: #fff; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 30px 20px 70px; }
.hero h1 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 4rem); line-height: 1.05;
  margin: 8px 0 0; letter-spacing: 0.5px;
}
.hero h1 .life {
  display: block; font-family: var(--serif); font-style: italic;
  font-weight: 600; font-size: clamp(2.4rem, 8.5vw, 3.8rem); margin-top: 2px;
}
.hero .tagline {
  max-width: 380px; margin: 22px auto 0;
  color: #7a4a3f; font-size: 0.98rem;
}
.hero .tagline .hi { color: var(--teal); }
.hero .tagline .lo { text-decoration: underline; }
.read-why {
  display: inline-block; margin-top: 26px;
  background: var(--terracotta); color: #fff;
  padding: 12px 30px; border-radius: 999px;
  font-weight: 500; box-shadow: 0 10px 24px rgba(193,80,63,0.35);
  transition: background 0.15s ease;
}
.read-why:hover { background: var(--terracotta-deep); }

/* ---------- videos band ---------- */
.videos {
  background: linear-gradient(180deg, var(--sage), #9cbab2);
  padding: 46px 0 0;
}
.section-head { text-align: center; padding: 0 20px; }
.section-head h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.2rem); margin: 0;
}
.section-head h2 .mark {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  background: linear-gradient(180deg, transparent 55%, var(--yellow) 55%, var(--yellow) 88%, transparent 88%);
  padding: 0 6px;
}
.section-head .sub {
  font-family: var(--serif); font-style: italic;
  font-size: 1.35rem; color: #2f4a45; margin: 4px 0 0;
}

.featured-wrap { max-width: 680px; margin: 26px auto 0; padding: 0 20px; }
.featured-video {
  position: relative; width: 100%; aspect-ratio: 16/9;
  background: #0f0f0f; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow);
}
.featured-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.featured-video .facade {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; padding: 0; cursor: pointer; background: #000;
}
.featured-video .facade img { width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.facade .play, .frame .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(193,80,63,0.92); box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}
.facade .play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
  border-left: 20px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent;
}
.featured-caption {
  text-align: center; margin: 12px 0 0; font-weight: 500; color: #2f4a45;
}

.more-videos { padding: 40px 0 4px; }
.more-videos .section-head h2 { font-size: clamp(1.3rem, 4.5vw, 1.7rem); color: #2f4a45; }

/* film strip */
.filmstrip {
  margin-top: 20px; padding: 14px 0;
  background:
    repeating-linear-gradient(90deg, #101010 0 8px, #2b2b2b 8px 16px) top/100% 9px no-repeat,
    repeating-linear-gradient(90deg, #101010 0 8px, #2b2b2b 8px 16px) bottom/100% 9px no-repeat,
    #141414;
}
.film-track {
  display: flex; gap: 8px; overflow-x: auto; padding: 6px 12px;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.film-track::-webkit-scrollbar { height: 6px; }
.film-track::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
.frame {
  position: relative; flex: 0 0 auto; width: 200px; aspect-ratio: 4/3;
  border: 0; padding: 0; cursor: pointer; background: #000;
  scroll-snap-align: start; overflow: hidden;
  border-left: 2px solid #000; border-right: 2px solid #000;
}
.frame img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.frame .noimg { width: 100%; height: 100%; background: linear-gradient(135deg, #b7d0c9, #8fb0a8); }
.frame .play { width: 42px; height: 42px; }
.frame .play::after {
  content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%);
  border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.frame-title {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 8px 6px; color: #fff; font-size: 0.74rem; line-height: 1.25;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.8));
  text-align: left;
}

/* ---------- give band ---------- */
.give { text-align: center; padding: 56px 20px 60px; }
.give h2 {
  font-family: var(--sans); font-weight: 500;
  font-size: clamp(1.7rem, 5vw, 2.1rem); margin: 0 0 4px; color: #7a4a3f;
}
.give p { color: #7a4a3f; margin: 0 auto 8px; max-width: 380px; }
.donate-box {
  border: 0; background: transparent; cursor: pointer;
  margin: 10px auto 0; display: block;
  transition: transform 0.2s ease;
}
.donate-box:hover { transform: translateY(-4px) rotate(-1deg); }
.donate-box svg { width: 150px; height: 150px; filter: drop-shadow(0 10px 16px rgba(0,0,0,0.15)); }
.donate-cta {
  display: inline-block; margin-top: 6px; font-weight: 600; color: var(--terracotta);
  font-size: 0.95rem;
}

/* ---------- blog picture frames ---------- */
.read { padding: 20px 0 60px; background: var(--cream); }
.frames-grid {
  max-width: 760px; margin: 24px auto 0; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.pic-frame {
  position: relative; aspect-ratio: 1/1; border-radius: 14px; overflow: hidden;
  background: #e7d8c9; box-shadow: var(--shadow-soft);
  border: 6px solid #fff;
}
.pic-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.pic-frame:hover img { transform: scale(1.06); }
.frame-fallback {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--serif); font-size: 2.4rem; color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--terracotta));
}
.pic-hover {
  position: absolute; inset: 0; display: grid; place-items: center;
  padding: 12px; text-align: center;
  background: rgba(44,38,34,0.55); color: #fff; opacity: 0; transition: opacity 0.2s ease;
}
.pic-hover span { font-family: var(--serif); font-style: italic; font-size: 1.1rem; line-height: 1.2; }
.pic-frame:hover .pic-hover { opacity: 1; }

/* ---------- donate modal ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(44,38,34,0.45); backdrop-filter: blur(3px);
  display: none; align-items: center; justify-content: center; padding: 18px;
}
.overlay.show { display: flex; }
.modal {
  width: 100%; max-width: 440px; background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.6); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 26px 24px 28px; position: relative;
}
.modal .close {
  position: absolute; top: 14px; right: 16px; border: 0; background: transparent;
  font-size: 1.4rem; color: var(--muted); cursor: pointer; line-height: 1;
}
.modal h3 {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: 1.9rem; margin: 0 0 4px; text-align: center;
}
.modal .lead { text-align: center; color: var(--muted); margin: 0 0 20px; font-size: 0.95rem; }

.choice-row { display: grid; gap: 12px; }
.choice {
  border: 1.5px solid var(--line); background: #fff; border-radius: var(--radius-sm);
  padding: 16px 18px; cursor: pointer; text-align: left; font-family: var(--sans);
  transition: all 0.15s ease;
}
.choice:hover { border-color: var(--terracotta); transform: translateY(-1px); }
.choice strong { display: block; font-size: 1.05rem; }
.choice small { color: var(--muted); }

.step { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.step .num {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-weight: 600; font-size: 0.9rem;
}
.step .txt { font-size: 0.96rem; padding-top: 2px; }
.modal .go-link {
  display: block; text-align: center; margin-top: 8px;
  background: var(--terracotta); color: #fff; padding: 12px; border-radius: var(--radius-sm);
  font-weight: 600;
}
.modal .go-link:hover { background: var(--terracotta-deep); }

.pay-grid { display: grid; gap: 12px; }
.pay {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
}
.pay .logo {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 0.72rem;
}
.pay .logo.zelle { background: #6d1ed4; }
.pay .logo.cashapp { background: #00c244; }
.pay .logo.venmo { background: #008cff; }
.pay .info { flex: 1; }
.pay .info .name { font-weight: 600; font-size: 0.95rem; }
.pay .info .handle { color: var(--muted); font-size: 0.9rem; word-break: break-all; }
.pay .qr {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 8px;
  background: repeating-linear-gradient(45deg, #eee 0 4px, #fff 4px 8px);
  border: 1px dashed var(--line); display: grid; place-items: center;
  font-size: 0.55rem; color: var(--muted); text-align: center;
}
.pay .qr img { width: 100%; height: 100%; object-fit: contain; }
.modal .back-btn {
  display: block; margin: 18px auto 0; background: transparent; border: 0;
  color: var(--muted); cursor: pointer; font-family: var(--sans); font-size: 0.9rem;
}

/* ---------- footer ---------- */
footer {
  text-align: center; padding: 30px 20px 40px; color: #7a4a3f;
  font-size: 0.9rem;
}
footer .brand { font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--ink); }
footer a { color: var(--terracotta); }

.empty { text-align: center; color: var(--muted); padding: 30px 0; }
.demo-banner {
  background: var(--yellow); color: #5a3417; text-align: center;
  font-weight: 600; font-size: 0.84rem; padding: 7px 16px;
}

/* ---------- single post view ---------- */
.article { max-width: 700px; margin: 0 auto; padding: 40px 20px 70px; }
.article .back { font-weight: 600; font-size: 0.92rem; }
.article .meta {
  margin: 20px 0 6px; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--teal); font-weight: 600;
}
.article h1 {
  font-family: var(--serif); font-style: italic; font-weight: 600;
  font-size: clamp(2.1rem, 6vw, 3rem); line-height: 1.1; margin: 0 0 18px;
}
.article .cover { border-radius: var(--radius); margin: 0 0 26px; box-shadow: var(--shadow-soft); }
.article .video { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; margin: 0 0 26px; }
.article .content { font-size: 1.1rem; color: #3a332d; }
.article .content p { margin: 0 0 1.2em; }

/* ---------- admin (kept simple, warm) ---------- */
.admin-shell { min-height: 100vh; background: var(--cream); }
.admin-bar {
  background: var(--card); border-bottom: 1px solid var(--line);
  padding: 14px 22px; display: flex; align-items: center; justify-content: space-between;
}
.admin-bar .brand { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.admin-main { max-width: 720px; margin: 0 auto; padding: 30px 20px 80px; }
.login-box {
  max-width: 400px; margin: 8vh auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 34px 30px; text-align: center;
}
.login-box h1 { font-family: var(--serif); font-style: italic; font-weight: 600; margin: 0 0 4px; }
.login-box p { color: var(--muted); margin: 0 0 22px; font-size: 0.95rem; }
label { display: block; text-align: left; font-weight: 600; font-size: 0.85rem; margin: 14px 0 6px; }
input, textarea, select {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 1rem; font-family: var(--sans); background: #fff; color: var(--ink);
}
textarea { min-height: 170px; resize: vertical; line-height: 1.6; }
.btn {
  background: var(--terracotta); color: #fff; border: 0;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; font-family: var(--sans); font-size: 1rem;
}
.btn:hover { background: var(--terracotta-deep); }
.btn-teal { background: var(--teal); }
.btn-teal:hover { background: #3f6660; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.btn-ghost:hover { background: #f3ece3; }
.btn-danger { background: #b23a2e; }
.btn-danger:hover { background: #8f2d24; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-soft);
  padding: 26px; margin-bottom: 24px;
}
.panel h2 { font-family: var(--serif); font-style: italic; font-weight: 600; font-size: 1.7rem; margin: 0 0 16px; }
.inline-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }
.checkbox-row input { width: auto; }
.checkbox-row label { margin: 0; }
.post-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
.post-row:last-child { border-bottom: 0; }
.post-row .info strong { display: block; font-family: var(--serif); font-size: 1.15rem; }
.post-row .info small { color: var(--muted); }
.badge { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge.live { background: #cfe0dd; color: var(--teal); }
.badge.draft { background: #f0e6d8; color: var(--muted); }
.toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none;
  transition: opacity 0.2s ease; z-index: 70;
}
.toast.show { opacity: 1; }
.config-warn { background: #f0e6d8; color: #7a6f64; padding: 12px; border-radius: 12px; font-size: 0.85rem; margin-bottom: 16px; }

@media (max-width: 560px) {
  .frames-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-2 { grid-template-columns: 1fr; }
}
