/* Template-28 (hugobet.me) shell — t28-shell/main/container.
   HeaderT28 IS position: sticky (top: 0, height 101px, no negative margin — see
   HeaderT28.module.css) but sticky elements still reserve their box in normal flow
   (unlike fixed), so .t28-main needs only a small top padding, like .t27-main —
   NOT .t26-main's 140px, which compensates for a header pulled out of flow via a
   negative margin. */
.t28-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--t28-text-white, #ffffff);
  /* Mobilde bir section viewport'tan taşınca sayfa yatay büyüyüp sticky header'ın sağdaki
     Giriş butonunu ekran dışına itiyordu. `overflow-x: clip` yatay taşmayı keser; `hidden`in
     aksine scroll-container yaratmadığı için position:sticky header ÇALIŞMAYA devam eder. */
  overflow-x: clip;
  max-width: 100vw;
  /* Boş görsel-slotlarının içindeki "resim" izi (statIcon/advIcon :empty::before mask'i). */
  --t28-imgslot-glyph: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='M20%203H4a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h16a2%202%200%200%200%202-2V5a2%202%200%200%200-2-2zm0%2016H4v-3l4-4%203%203.5L15%2011l5%205.5z'/%3E%3Ccircle%20cx='8.5'%20cy='8.5'%20r='1.6'/%3E%3C/svg%3E");
  /* Use relative-colour syntax, as .t26-shell does. `rgb(var(--t28-accent-rgb) / 0.14)` looks
     right but is NOT: the token's value is `142, 211, 178`, so it expands to
     `rgb(142, 211, 178 / 0.14)` — comma and slash syntax mixed, which is invalid. One invalid
     layer voids the whole `background` shorthand, leaving the shell transparent and the page
     black. Valid CSS, silent, invisible to renderToStaticMarkup; only a browser shows it. */
  background:
    radial-gradient(60% 40% at 12% 0%, rgb(from var(--t28-accent, #8ed3b2) r g b / 0.14) 0%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(55% 40% at 100% 30%, rgb(from var(--t28-accent, #8ed3b2) r g b / 0.12) 0%, rgba(0, 0, 0, 0) 70%),
    radial-gradient(50% 45% at 30% 100%, rgb(from var(--t28-accent, #8ed3b2) r g b / 0.1) 0%, rgba(0, 0, 0, 0) 70%),
    var(--t28-bg-base, #102331);
}

.t28-main {
  display: flex;
  flex-direction: column;
  gap: 28px;
  width: 100%;
  padding-top: 20px;
  padding-bottom: 56px;
}

/* The edge gutter lives HERE and nowhere else. Section wrappers set max-width + margin-inline
   only. Hero, Advantages and LatestNews each used to add their own
   `padding-inline: clamp(20px,4vw,64px)`, which nested inside this container and double-padded
   them (~84px per side at desktop widths) while Stats/Seo/ContentList sat flush at 20px — so
   the sections did not line up with each other. Keep new sections gutter-free. */
.t28-container {
  width: 100%;
  max-width: var(--t28-container-width, 1218px);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (max-width: 768px) {
  .t28-main { padding-top: 10px; padding-bottom: 40px; gap: 20px; }
  .t28-container { padding-inline: 14px; }
}

/* ---------------------------------------------------------------------------
   Home free-HTML sections (ported from HeroT28/StatsStripT28/AdvantagesT28/
   SeoBlockT28 module CSS). The home composition now ships as free-HTML
   SectionInstance entries (SectionId="free") so it's BO-editable; these
   global .t28-shell .<class> rules give the plain semantic classes in that
   HTML (hero/statStrip/advantages/seoBlock etc.) the same look the
   structured components used to produce via CSS modules. var(--t28-*)
   tokens are unchanged from the source module CSS. No <img> markup is
   expected here — cover/character/icon images come later from BO/S3 and
   are styled ad hoc by the operator if/when added.
   --------------------------------------------------------------------- */

/* Hero (was HeroT28.module.css) */
/* Figma 227:1476 — hero, 1218px yuvarlak banner kart (ortalı), arka plan görselli + sol gradient overlay. */
.t28-shell .hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: min(var(--t28-container-width, 1218px), calc(100% - 32px));
  margin-inline: auto;
  margin-block: clamp(16px, 2.5vw, 40px);
  /* Görsel tam 1218×390 (banner). Kartı bu orana kilitle ki bg (contain) bant olmadan tam dolsun. */
  aspect-ratio: 1218 / 390;
  border-radius: 32px;
  display: flex;
  align-items: center;
  background: var(--t28-bg-base, #102331);
}

/* Dar ekranda banner oranı çok basıklaşır → oran serbest, min yükseklik. */
@media (max-width: 760px) {
  .t28-shell .hero {
    aspect-ratio: auto;
    min-height: 340px;
  }
}

/* Sol→sağ koyu gradient (Figma): sol metin okunur kalsın, sağdaki karakter/görsel görünsün. */
.t28-shell .hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(11, 25, 34, 0.9) 0%, rgba(11, 25, 34, 0.55) 38%, rgba(11, 25, 34, 0) 72%);
}

.t28-shell .heroInner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(24px, 4vw, 64px);
  flex-wrap: wrap;
  /* Metin sol iç-boşluğu Figma'daki ~126px (477-351) iç-boşluğu; responsive. */
  padding-inline: clamp(24px, 9vw, 126px) clamp(24px, 4vw, 48px);
  padding-block: clamp(16px, 2.4vw, 32px);
}

.t28-shell .heroText {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1vw, 14px);
  min-width: 260px;
  max-width: 460px;
  flex: 1 1 410px;
}

.t28-shell .heroTitle {
  margin: 0;
  display: flex;
  flex-direction: column;
}

.t28-shell .heroTitleTop {
  font-family: var(--t28-font-display, 'Unbounded'), sans-serif;
  font-weight: 900;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  background: linear-gradient(to top, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)), var(--t28-accent, #8ed3b2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.t28-shell .heroTitleBottom {
  font-family: var(--t28-font-display, 'Unbounded'), sans-serif;
  font-weight: 400;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.1;
  color: var(--t28-text-white, #ffffff);
}

.t28-shell .heroBody {
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.35vw, 20px);
  line-height: 1.35;
  color: var(--t28-text-white, #ffffff);
  max-width: 410px;
  margin: 0;
}

.t28-shell .heroCta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  height: 37px;
  padding: 0 20px;
  border-radius: var(--t28-radius-btn, 10.55px);
  background: var(--t28-surface, rgba(11, 25, 34, 0.78));
  box-shadow: inset 0 1.88px 15.6px rgba(255, 255, 255, 0.22);
  color: var(--t28-text-white, #ffffff);
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 700;
  font-size: 14.1px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.t28-shell .heroCta:hover {
  opacity: 0.88;
}

@media (max-width: 900px) {
  .t28-shell .heroInner {
    flex-direction: column;
    text-align: center;
  }

  .t28-shell .heroText {
    align-items: center;
  }

  .t28-shell .heroBody {
    max-width: 100%;
  }
}

/* Stats strip (was StatsStripT28.module.css) */
.t28-shell .statStrip {
  margin: 0;
  padding-block: clamp(24px, 4vw, 48px);
}

.t28-shell .statCard {
  position: relative;
  max-width: 1218px;
  margin-inline: auto;
  padding: 30px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 84px;
  align-items: start;
  justify-items: center;
  border-radius: var(--t28-radius-card-md, 30px);
  backdrop-filter: blur(6.85px);
  box-shadow: var(--t28-shadow-card, 0 15px 32.5px rgba(0, 0, 0, 0.25));
  background:
    radial-gradient(circle at 50% 0%, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)) 0%, transparent 70%),
    var(--t28-surface, rgba(11, 25, 34, 0.78));
}

.t28-shell .statCard::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(0deg, rgba(97, 130, 168, 0) 0%, var(--t28-accent, #8ed3b2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.t28-shell .statItem {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

.t28-shell .statValue {
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.2;
  background: linear-gradient(to top, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)), var(--t28-accent, #8ed3b2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.t28-shell .statLabel {
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.3;
  color: #ffffff;
  text-transform: uppercase;
}

/* ---- Görsel/ikon slotları (Boris kuralı: BO'dan URL gelecek) ----
   Görselleri bundle etmiyoruz; ama slot TASARIMDAKİ kutu olarak DURMALI ki layout
   bozulmasın ve operatör URL'i yerine koyabilsin. Mekanizma :empty:
   - Slot boşken (URL yok) → tasarım ölçüsünde placeholder kutu (kesikli çerçeve + ikon izi).
   - Operatör slot'un içine <img src="S3-URL"> koyunca → :empty biter, placeholder kaybolur,
     görsel kutuyu doldurur. statIcon = stat şeridi ikonu (48px), advIcon = avantaj kartı ikonu. */
.t28-shell .statIcon,
.t28-shell .advIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.t28-shell .statIcon { width: 52px; height: 48px; margin-bottom: 2px; }
.t28-shell .advIcon { width: 54px; height: 54px; margin-bottom: 4px; }

.t28-shell .statIcon:empty,
.t28-shell .advIcon:empty {
  border-radius: 12px;
  border: 1.5px dashed var(--t28-border-pill, rgba(142, 211, 178, 0.5));
  background: radial-gradient(circle at 50% 32%, var(--t28-accent-soft, rgba(142, 211, 178, 0.28)) 0%, transparent 72%);
}

.t28-shell .statIcon:empty::before,
.t28-shell .advIcon:empty::before {
  content: "";
  width: 46%;
  height: 46%;
  background-color: var(--t28-accent, #8ed3b2);
  opacity: 0.55;
  -webkit-mask: var(--t28-imgslot-glyph) center / contain no-repeat;
          mask: var(--t28-imgslot-glyph) center / contain no-repeat;
}

.t28-shell .statIcon > :is(img, svg),
.t28-shell .advIcon > :is(img, svg) {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .t28-shell .statCard {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 24px;
  }
}

@media (max-width: 600px) {
  .t28-shell .statCard {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 20px;
  }
}

/* Advantages (was AdvantagesT28.module.css) */
.t28-shell .advantages {
  margin: 0;
  padding-block: clamp(32px, 5vw, 64px);
}

.t28-shell .advantagesInner {
  max-width: 1218px;
  margin-inline: auto;
}

.t28-shell .advantagesHeading {
  margin: 0 0 clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
}

.t28-shell .advantagesHeadingTop {
  font-family: var(--t28-font-display, 'Unbounded'), sans-serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  color: var(--t28-text-white, #ffffff);
  margin-bottom: -3px;
}

.t28-shell .advantagesHeadingBottom {
  font-family: var(--t28-font-display, 'Unbounded'), sans-serif;
  font-weight: 900;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  background: linear-gradient(to top, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)), var(--t28-accent, #8ed3b2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

/* Figma: 2 kart (438px) + promo (302px), gap 20 → 1218'i tam doldurur (sağda boşluk kalmaz). */
.t28-shell .advantagesGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 438px)) 302px;
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  align-items: stretch;
}

.t28-shell .advCard {
  position: relative;
  max-width: 438px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--t28-radius-card-md, 30px);
  backdrop-filter: blur(6.85px);
  box-shadow: var(--t28-shadow-card, 0 15px 32.5px rgba(0, 0, 0, 0.25));
  background:
    radial-gradient(circle at 50% 0%, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)) 0%, transparent 70%),
    var(--t28-surface, rgba(11, 25, 34, 0.78));
}

.t28-shell .advCard::before,
.t28-shell .advPromo::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(0deg, rgba(97, 130, 168, 0) 0%, var(--t28-accent, #8ed3b2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.t28-shell .advCardTitle {
  margin: 0;
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 800;
  font-size: 25px;
  line-height: 1.2;
  background: linear-gradient(to top, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)), var(--t28-accent, #8ed3b2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.t28-shell .advCardBody {
  margin: 0;
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  color: #ffffff;
}

.t28-shell .advPromo {
  position: relative;
  grid-row: 1 / span 2;
  grid-column: 3;
  width: 302px;
  min-height: 466px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--t28-shadow-card, 0 15px 32.5px rgba(0, 0, 0, 0.25));
  backdrop-filter: blur(6.85px);
  background:
    radial-gradient(circle at 50% 0%, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)) 0%, transparent 70%),
    var(--t28-surface, rgba(11, 25, 34, 0.78));
}

.t28-shell .advPromoContent {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
}

.t28-shell .advPromoEyebrow {
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22px;
  color: var(--t28-text-white, #ffffff);
}

.t28-shell .advPromoTitle {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-size: 25px;
  line-height: 28px;
  background: linear-gradient(to top, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)), var(--t28-accent, #8ed3b2));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.t28-shell .advPromoTitleLine {
  font-weight: 600;
}

.t28-shell .advPromoTitleStrong {
  font-weight: 800;
}

.t28-shell .advPromoBody {
  margin: 0;
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.3;
  color: #ffffff;
}

.t28-shell .advPromoCta {
  align-self: flex-start;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 20px;
  border-radius: var(--t28-radius-btn, 10.55px);
  background: var(--t28-surface, rgba(11, 25, 34, 0.78));
  box-shadow: inset 0 1.88px 15.6px rgba(255, 255, 255, 0.22);
  color: var(--t28-text-white, #ffffff);
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 700;
  font-size: 14.1px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.t28-shell .advPromoCta:hover {
  opacity: 0.88;
}

@media (max-width: 1024px) {
  .t28-shell .advantagesGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .t28-shell .advCard {
    max-width: none;
  }

  .t28-shell .advPromo {
    grid-row: auto;
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .t28-shell .advantagesGrid {
    grid-template-columns: 1fr;
  }
}

/* SEO block (was SeoBlockT28.module.css) */
.t28-shell .seoBlock {
  margin: 0;
  padding-block: clamp(32px, 5vw, 64px);
}

.t28-shell .seoBlockInner {
  position: relative;
  max-width: 1218px;
  margin-inline: auto;
  padding: clamp(24px, 3vw, 40px) clamp(24px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  border-radius: var(--t28-radius-card-md, 30px);
  box-shadow: var(--t28-shadow-card, 0 15px 32.5px rgba(0, 0, 0, 0.25));
  background:
    radial-gradient(circle at 50% 0%, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)) 0%, transparent 70%),
    var(--t28-surface, rgba(11, 25, 34, 0.78));
}

.t28-shell .seoBlockInner::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(0deg, rgba(97, 130, 168, 0) 0%, var(--t28-accent, #8ed3b2) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.t28-shell .seoBlockHeading {
  font-family: var(--t28-font-display, 'Unbounded'), sans-serif;
  font-weight: 900;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.2;
  color: var(--t28-text-white, #ffffff);
  margin: 0;
  background: linear-gradient(to top, var(--t28-accent-soft, rgba(142, 211, 178, 0.5)), var(--t28-accent, #8ed3b2));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.t28-shell .seoBlockBody {
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  color: var(--t28-text-dim, rgba(255, 255, 255, 0.48));
  margin: 0;
  max-width: 780px;
}

.t28-shell .seoBlockMoreLink {
  display: inline-flex;
  align-items: center;
  height: 37px;
  padding: 0 24px;
  margin-top: 4px;
  border-radius: var(--t28-radius-btn, 10.55px);
  background: var(--t28-surface, rgba(11, 25, 34, 0.78));
  box-shadow: inset 0 1.88px 15.6px rgba(255, 255, 255, 0.22);
  color: var(--t28-accent, #8ed3b2);
  font-family: var(--t28-font-body, 'Outfit'), sans-serif;
  font-weight: 700;
  font-size: 14.1px;
  text-decoration: none;
  transition: opacity 160ms ease;
}

.t28-shell .seoBlockMoreLink:hover {
  opacity: 0.88;
}

@media (max-width: 600px) {
  .t28-shell .seoBlockInner {
    padding: 24px 20px;
  }
}
