/* ================================================================
   _templates/premium/styles.css
   Concept B — Private Invitation
   Centered composition · Radial vignette · Two gold rules · No buttons
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@900&family=Heebo:wght@300;400;500;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: 'Heebo', Arial, sans-serif;
  background: #0a0a0a;
  color: #fff;
  direction: rtl;
}

/* ── Canvas ───────────────────────────────────────────────── */
#flyer {
  position: relative;
  width: 1080px;
  height: 1920px;
  overflow: hidden;
  background: #0a0a0a;
}

/* ── Background layer ────────────────────────────────────── */
.bg {
  position: absolute;
  inset: 0;
  /* heroBgPosition from flyer-config.json — default center center */
  background: url('assets/hero.jpg') var(--hero-position, center center) / cover no-repeat;
}

/* Radial vignette — dark edges, photo breathes in center at 42% */
.overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 65% at 62% 42%,
      rgba(0, 0, 0, 0.10)  0%,
      rgba(0, 0, 0, 0.72) 65%,
      rgba(0, 0, 0, 0.92) 100%),
    linear-gradient(to bottom,
      rgba(0, 0, 0, 0.45)  0%,
      transparent          30%,
      rgba(0, 0, 0, 0.55) 100%);
}

/* ── Content block — centered horizontally,
      vertically centered near 42% of total height ─────────
   Extra padding-bottom biases center slightly above midpoint,
   matching the radial vignette's open window at 42%. ──── */
.content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 96px;   /* sits above the footer strip */
  left: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 80px 160px;   /* bottom bias → visual center ~42% */
  direction: rtl;
}

/* ── Element 1 & 4 — gold rule ──────────────────────────── */
.gold-rule {
  display: block;
  width: 64px;
  height: 2px;          /* 2px renders cleanly on screen; 1px can sub-pixel disappear */
  background: #c9a84c;
  border: none;
  margin: 0 auto 28px;
  opacity: 0.88;
}
.gold-rule-lower {
  margin: 0 auto 32px;
}

/* ── Element 2 — English category ───────────────────────── */
.category {
  display: block;
  font-family: 'Heebo', Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: #c9a84c;
  opacity: 0.90;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.category:empty { display: none; }

/* ── Element 3 — Hebrew headline (two lines) ────────────────
   Reference shows "תחרות" / "ערב הקיץ" — two full-width lines.
   At 108px the text fits on one line in 1080px portrait;
   148px + max-width: 760px forces the break after "תחרות". ── */
.headline {
  font-family: 'Frank Ruhl Libre', Georgia, serif;
  font-size: 148px;
  font-weight: 900;
  line-height: 0.95;
  color: #ffffff;
  text-shadow: 0 4px 48px rgba(0, 0, 0, 0.65);
  margin-bottom: 30px;
  letter-spacing: -0.01em;
  max-width: 600px;
  word-break: keep-all;
}

/* ── Element 5 — Date line ───────────────────────────────── */
.date-line {
  font-family: 'Heebo', Arial, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #c9a84c;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

/* ── Element 6 — Details line ───────────────────────────── */
.detail-line {
  font-family: 'Heebo', Arial, sans-serif;
  font-size: 22px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 24px;
}
.detail-line:empty { display: none; }

/* ── Element 7 — Emotional tagline ─────────────────────── */
.tagline-emotional {
  font-family: 'Heebo', Arial, sans-serif;
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.50);
  line-height: 1.5;
}
.tagline-emotional:empty { display: none; }

/* ── CTA — plain underlined text link ───────────────────── */
.cta-link {
  display: inline-block;
  font-family: 'Heebo', Arial, sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #c9a84c;
  letter-spacing: 0.06em;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(201, 168, 76, 0.45);
  margin-top: 52px;
  transition: text-decoration-color 0.2s;
}
.cta-link:hover { text-decoration-color: #c9a84c; }

/* ── Footer strip ────────────────────────────────────────── */
.footer-strip {
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 96px;
  background: rgba(0, 0, 0, 0.82);
  border-top: 1px solid rgba(201, 168, 76, 0.18);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  direction: rtl;
}

/* Right: club logo + name */
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.50;
}
.footer-club-name {
  font-family: 'Heebo', Arial, sans-serif;
  font-size: 10px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.28);
  text-align: center;
  letter-spacing: 0.04em;
  direction: rtl;
}

/* Center: phone number */
.footer-phone {
  font-family: 'Heebo', Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.04em;
}

/* Left: QR code + label */
.footer-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.footer-qr img {
  width: 62px;
  height: 62px;
  background: #fff;
  padding: 4px;
  border-radius: 3px;
  opacity: 0.65;
  display: block;
}
.footer-qr-label {
  font-family: 'Heebo', Arial, sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  direction: rtl;
}

/* ── Sticky CTA — web only, outside #flyer ───────────────── */
.sticky-cta {
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #c9a84c;
  color: #0a0a0a;
  font-family: 'Heebo', Arial, sans-serif;
  font-size: 20px;
  font-weight: 900;
  padding: 20px;
  text-decoration: none;
  direction: rtl;
  letter-spacing: 0.02em;
}

/* ── Responsive — scale to viewport ─────────────────────── */
@media screen and (max-width: 1079px) {
  html, body { background: #0a0a0a; }

  #flyer {
    width: 100%;
    max-width: 540px;
    height: auto;
    aspect-ratio: 1080 / 1920;
    margin: 0 auto;
    display: block;
  }

  .headline      { font-size: clamp(44px, 13.7vw, 148px); max-width: 76%; }
  .category      { font-size: clamp(8px,  1.48vw,  16px); letter-spacing: 0.20em; }
  .date-line     { font-size: clamp(14px, 3.15vw,  34px); }
  .detail-line   { font-size: clamp(9px,  2.04vw,  22px); }
  .tagline-emotional { font-size: clamp(8px, 1.85vw, 20px); }
  .cta-link      { font-size: clamp(9px,  1.85vw,  20px); margin-top: clamp(20px, 4.8vw, 52px); }
  .content       { padding: 0 clamp(24px, 7.4vw, 80px) clamp(50px, 14.8vw, 160px); }

  .footer-logo   { height: clamp(20px, 4.1vw, 44px); }
  .footer-phone  { font-size: clamp(9px, 1.85vw, 20px); }
  .footer-qr img { width: clamp(28px, 5.7vw, 62px); height: clamp(28px, 5.7vw, 62px); }
  .footer-qr-label { font-size: clamp(5px, 1.02vw, 11px); }
  .footer-club-name { font-size: clamp(5px, 0.93vw, 10px); }
  .footer-strip  { padding: 0 clamp(16px, 5.2vw, 56px); }
}
