/*
 * GLT Karatay – ortak tasarım dili (ana sayfadan türetildi)
 * Brief: scrollcraft/builds/glt-home/BRIEF.md ("rhythmic cutlist")
 *
 * Kurallar:
 *  - Bölümler sert zemin değişimleriyle kesilir: gece, kırmızı, kâğıt, yüzey.
 *    Komşu iki bölüm aynı zemini taşımaz.
 *  - Tek vurgu rengi kırmızı. Koyu zeminde yazı için açık tonu kullanılır.
 *  - Başlıklar Montserrat 800-900, sıkı harf aralığı. Gradyan yazı yok.
 *  - Tek eylem etiketi: "Başvuru Yap".
 *
 * Yükleme sırası: vendor/scrollcraft.css → theme-kapsul.css → components.css → site.css → (home.css)
 */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --sc-canvas: #f8f9fa;
  --sc-surface: #ffffff;
  --sc-ink: #111111;
  --sc-ink-soft: #4a4d55;
  --sc-accent: #e21f26;
  --sc-accent-ink: #ffffff;
  --sc-font-display: 'Montserrat', system-ui, sans-serif;
  --sc-font-text: 'Montserrat', system-ui, sans-serif;
  --sc-shadow-color: 228 30% 8%;

  /* Kırmızının iki tonu: açık zeminde koyu, koyu zeminde açık (tek renk tonu) */
  --gh-red-on-light: #c4181f;
  --gh-red-on-dark: #f2535a;
  --gh-night: #0b0d17;
  --gh-night-2: #12141d;
  --gh-night-3: #171a28;
  --gh-paper: #f8f9fa;
  --gh-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

[data-theme="dark"] {
  --sc-canvas: #0b0d17;
  --sc-surface: #12141d;
  --sc-ink: #f5f5f7;
  --sc-ink-soft: #a6a8b3;
  --gh-paper: #0b0d17;
}

/* scrollcraft.css svg'leri block yapar; metin içi Lucide ikonları satır içinde kalmalı */
svg.lucide { display: inline-block; vertical-align: -0.15em; }

html { scroll-padding-top: 96px; scroll-padding-bottom: 140px; }

body.gh { font-family: var(--sc-font-text); background: var(--gh-paper); }

/* Koyu kahramanın üstünde şeffaf menü: açık yazı. Menü açıkken veya kaydırınca tema rengine döner. */
.gh:not(:has(.glt-fullscreen-menu.open)) .glt-navbar-new:not(.scrolled) { color: #fff; }
.gh:not(:has(.glt-fullscreen-menu.open)) .glt-navbar-new:not(.scrolled) .glt-logo-new img { filter: brightness(0) invert(1); }
.gh:not(:has(.glt-fullscreen-menu.open)) .glt-navbar-new:not(.scrolled) .glt-menu-toggle span { background: #fff; }
.gh:not(:has(.glt-fullscreen-menu.open)) .glt-navbar-new:not(.scrolled) .glt-cta-new { background: #fff; color: #111; }
.gh:not(:has(.glt-fullscreen-menu.open)) .glt-navbar-new:not(.scrolled) .theme-toggle {
  background: rgba(11, 13, 23, 0.35); border-color: rgba(255, 255, 255, 0.35); color: #fff;
}

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 10001;
  padding: 12px 20px; border-radius: 10px;
  background: var(--sc-accent); color: #fff; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------- shared bits -- */
.gh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 28px; border-radius: 999px;
  font-weight: 800; font-size: 0.875rem; letter-spacing: 0.06em; text-transform: uppercase;
  white-space: nowrap; cursor: pointer; border: 1px solid transparent;
  transition: transform 160ms var(--gh-ease), background-color 160ms var(--gh-ease),
              border-color 160ms var(--gh-ease), color 160ms var(--gh-ease);
}
.gh-btn:active { transform: scale(0.97); }
.gh-btn svg { width: 18px; height: 18px; }
.gh-btn--accent { background: var(--sc-accent); color: #fff; box-shadow: var(--sc-e2); }
.gh-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); background: rgba(11, 13, 23, 0.25); }
.gh-btn--line { color: var(--text); border-color: var(--border); background: transparent; }
/* Kırmızı zeminde: beyaz dolgu, koyu yazı */
.gh-btn--paper { background: #fff; color: #111; }
.gh-btn--block { width: 100%; }
@media (hover: hover) and (pointer: fine) {
  .gh-btn--accent:hover { background: #c4181f; }
  .gh-btn--ghost:hover { border-color: #fff; background: rgba(11, 13, 23, 0.5); }
  .gh-btn--line:hover { border-color: var(--accent-text, var(--accent)); color: var(--accent-text, var(--accent)); }
  .gh-btn--paper:hover { background: #f1f1f1; }
}

.gh-head { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.gh-head--split {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
}
.gh-h2 {
  font-family: var(--sc-font-display);
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.6rem);
  font-weight: 800; line-height: 1.02; letter-spacing: -0.035em;
  text-wrap: balance; margin: 0;
}
.gh-h2--xl { font-size: clamp(2.6rem, 1.4rem + 5vw, 6rem); line-height: 0.98; padding-bottom: 0.08em; }
.gh-h2--sm { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -0.02em; }
.gh-sub { margin-top: 0.75rem; color: var(--text-soft); font-size: 1.05rem; max-width: 52ch; }
.gh-more { margin-top: clamp(2rem, 4vw, 3rem); text-align: center; }
.gh-loading { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--text-soft); padding: 40px 0; width: 100%; grid-column: 1 / -1; }
.gh-empty { grid-column: 1 / -1; text-align: center; color: var(--text-soft); padding: 48px 0; }

.gh-textlink {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; color: var(--accent-text, var(--accent));
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.25em;
}
[data-theme="light"] :is(.gh-ground-paper, .gh-ground-surface) .gh-textlink { color: var(--gh-red-on-light); }

.gh-tabs { margin: 0; justify-content: flex-start; }
.gh-tabs .gallery-tab { min-height: 44px; }

/* ------------------------------------------------------- section grounds --
 * Sert zemin değişimleri. Koyu bölümler değişkenleri yeniden tanımlar ki içindeki
 * tema bileşenleri (kart, sekme) doğru renge geçsin. */
.gh-ground-paper { background: var(--gh-paper); color: var(--text); }
.gh-ground-surface { background: var(--sc-surface); color: var(--text); }
.gh-ground-night {
  --bg: var(--gh-night);
  --bg-soft: var(--gh-night-3);
  --text: #f5f5f7;
  --text-soft: #b4b6c0;
  --border: rgba(255, 255, 255, 0.12);
  --accent-text: var(--gh-red-on-dark);
  background: var(--bg); color: var(--text);
}
[data-theme="dark"] .gh-ground-night { --bg: #151827; --bg-soft: #1d2133; }
.gh-ground-red {
  --text: #fff;
  --text-soft: rgba(255, 255, 255, 0.88);
  --border: rgba(255, 255, 255, 0.35);
  --accent-text: #fff;
  background: var(--sc-accent); color: #fff;
}
/* Kırmızı zeminde ikonlar ve damgalar beyaz kalır (kırmızı üstüne kırmızı okunmaz) */
.gh-ground-red svg.lucide { color: #fff !important; }
.gh-section { padding-block: clamp(4.5rem, 9vw, 8rem); }
.gh-section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ============================================================ PAGE HERO ==
 * İç sayfaların açılışı: gece zemininde sol altta büyük başlık, üstünde bir damga.
 * Damga, ana sayfadaki üye kartına basılan damgaların aynısıdır. */
.gp-hero {
  position: relative; isolation: isolate;
  display: flex; align-items: flex-end;
  min-height: clamp(26rem, 64svh, 42rem);
  padding-top: 132px; padding-bottom: clamp(3rem, 7vw, 5.5rem);
  background: var(--gh-night); color: #f6f4f2;
  overflow: clip;
}
[data-theme="dark"] .gp-hero { background: #151827; }
.gp-hero--short { min-height: clamp(20rem, 46svh, 30rem); }
.gp-hero__inner { width: 100%; }
.gp-hero__title {
  font-family: var(--sc-font-display);
  font-size: clamp(2.6rem, 1.2rem + 5.4vw, 6.25rem);
  font-weight: 900; line-height: 0.98; letter-spacing: -0.045em;
  text-wrap: balance; margin: 1.25rem 0 0; max-width: 16ch;
  padding-bottom: 0.06em;
}
.gp-hero__title--md { font-size: clamp(2.2rem, 1.2rem + 3.8vw, 4.6rem); max-width: 22ch; }
.gp-hero__lede {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6;
  color: rgba(246, 244, 242, 0.8); max-width: 52ch;
}
.gp-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.gp-hero__meta { display: flex; flex-wrap: wrap; gap: 1.25rem 2.75rem; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.gp-hero__meta dt {
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(246, 244, 242, 0.7);
}
.gp-hero__meta dd { margin: 0.35rem 0 0; font-size: 1.1rem; font-weight: 700; }
/* Sağdaki büyük logo izi: dekoratif, metnin arkasında kalır */
.gp-hero__mark {
  position: absolute; z-index: -1; right: calc(var(--sc-gutter) * -0.5); bottom: -12%;
  width: clamp(16rem, 34vw, 30rem); opacity: 0.06;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

.gp-stamp {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 7px 14px; border-radius: 8px;
  border: 1.5px solid var(--gh-red-on-dark);
  background: rgba(226, 31, 38, 0.22); color: #fff;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  transform: rotate(-4deg); transform-origin: 0 100%;
}
.gp-stamp svg { width: 14px; height: 14px; }
/* Açık zemindeki damga */
.gp-stamp--ink { border-color: var(--gh-red-on-light); background: rgba(226, 31, 38, 0.08); color: var(--gh-red-on-light); }
[data-theme="dark"] .gp-stamp--ink { border-color: var(--gh-red-on-dark); color: var(--gh-red-on-dark); background: rgba(226, 31, 38, 0.14); }

.gp-hero__back {
  display: inline-flex; align-items: center; gap: 0.4em; min-height: 44px;
  font-size: 0.85rem; font-weight: 700; color: rgba(246, 244, 242, 0.8);
  margin-bottom: 0.5rem;
}
.gp-hero__back:hover { color: #fff; }
.gp-hero__back svg { width: 16px; height: 16px; }

/* ========================================================= RED STATEMENT ==
 * Ana sayfadaki rakamlar bloğunun kardeşi: kırmızı zemin, ince beyaz ayraçlarla bölünmüş sütunlar. */
.gp-columns { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); margin: 0; }
.gp-col { padding-inline: clamp(0.75rem, 2vw, 2rem); border-left: 1px solid var(--border); }
.gp-col:first-child { border-left: 0; padding-left: 0; }
.gp-col__label {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-soft); margin: 0;
}
.gp-col h3 {
  font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.6rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.035em;
  margin: 0.5rem 0 0;
}
.gp-col p { margin-top: 0.9rem; line-height: 1.6; color: var(--text-soft); max-width: 36ch; }
@media (max-width: 860px) {
  .gp-columns { grid-template-columns: 1fr; row-gap: 2.25rem; }
  .gp-col { border-left: 0; padding-left: 0; border-top: 1px solid var(--border); padding-top: 1.5rem; }
  .gp-col:first-child { border-top: 0; padding-top: 0; }
}

/* =============================================================== PROSE == */
.gp-split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 2rem; }
.gp-split__title {
  grid-column: 1 / -1;
  font-family: var(--sc-font-display);
  font-size: clamp(2.6rem, 1.2rem + 6vw, 7rem);
  font-weight: 900; line-height: 0.96; letter-spacing: -0.045em;
  text-transform: uppercase; max-width: 13ch; margin: 0;
}
.gp-split__body { grid-column: 5 / -1; margin-top: clamp(2.5rem, 5vw, 4.5rem); }
.gp-split__body > * + * { margin-top: 1.5rem; }
.gh-lead { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); line-height: 1.6; max-width: 58ch; color: var(--text); }
.gh-lead strong { font-weight: 800; }
.gp-prose { font-size: 1.1rem; line-height: 1.75; color: var(--text-soft); max-width: 62ch; }
.gp-prose p + p { margin-top: 1.25rem; }
@media (max-width: 900px) {
  .gp-split__body { grid-column: 1 / -1; }
}

/* ================================================================ TEAM == */
.gh-team__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(1.25rem, 2.5vw, 2rem);
}
.gh-member { flex: 0 1 200px; text-align: left; margin: 0; }
.gh-member__photo {
  aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
}
.gh-member__photo img { width: 100%; height: 100%; object-fit: cover; }
.gh-member__photo img.is-fallback { object-fit: contain; padding: 28%; opacity: 0.35; }
[data-theme="dark"] .gh-member__photo img.is-fallback { filter: invert(1); }
.gh-member h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; margin-top: 0.85rem; line-height: 1.25; }
.gh-member__role {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gh-red-on-light); margin-top: 0.3rem;
}
[data-theme="dark"] .gh-member__role { color: var(--gh-red-on-dark); }
.gh-member__social { display: flex; gap: 8px; margin-top: 0.6rem; }
.gh-member__social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); color: var(--text-soft);
  transition: color 160ms var(--gh-ease), border-color 160ms var(--gh-ease);
}
.gh-member__social a:hover { color: var(--accent-text, var(--accent)); border-color: currentColor; }
.gh-member__social svg { width: 16px; height: 16px; }
@media (max-width: 520px) {
  .gh-member { flex-basis: calc(50% - 0.75rem); }
}

/* ======================================================== EVENT CARDS == */
.gh-events__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.gh-events__grid .event-card { border-radius: 20px; }
.gh-events__grid .event-card:hover { transform: translateY(-6px); }
.gh-events__grid .event-card-visual { aspect-ratio: 4 / 5; }
.gh-events__grid .event-card-body { padding: 24px; }
.gh-events__grid .event-card-actions a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
[data-theme="light"] .gh-ground-paper .event-card-date,
[data-theme="light"] .gh-ground-surface .event-card-date { color: var(--gh-red-on-light); }

/* ============================================================ GLT PASS ==
 * Ana sayfanın imza hareketindeki üye kartı. Davranış: home.js (ana sayfa), registration.html. */
.gh-pass__card {
  position: relative;
  width: 300px; aspect-ratio: 1.586; padding: 18px 20px;
  border-radius: 18px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(226, 31, 38, 0.32), transparent 55%),
    linear-gradient(160deg, #1b1e2c 0%, #0e1019 100%);
  color: #f5f5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--sc-e3);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.gh-pass__top { display: flex; align-items: center; gap: 10px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.gh-pass__top img { filter: brightness(0) invert(1); }
.gh-pass__name {
  margin-top: auto; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em;
  color: rgba(245, 245, 247, 0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3); padding-bottom: 6px;
}
.gh-pass__name.is-signed { color: #fff; border-bottom-style: solid; }
.gh-pass__stamps { display: flex; gap: 8px; margin-top: 12px; padding: 0; list-style: none; }
.gh-pass__stamps li {
  position: relative; flex: 1; height: 30px; border-radius: 8px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  display: flex; align-items: center; justify-content: center;
}
.gh-pass__stamps li span {
  font-size: 0.5rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.gh-pass__stamps li.is-stamped {
  border: 1.5px solid var(--gh-red-on-dark);
  background: rgba(226, 31, 38, 0.22);
  transform: rotate(-4deg);
}
.gh-pass__stamps li.is-stamped:nth-child(even) { transform: rotate(3deg); }
.gh-pass__stamps li.is-stamped span { color: #fff; }
.gh-pass__meta { margin-top: 10px; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.5); }

.gh-pass__card--final { width: min(420px, 100%); padding: 24px 26px; border-radius: 22px; }
.gh-pass__card--final .gh-pass__name { font-size: clamp(1.3rem, 1rem + 1.2vw, 1.75rem); }
.gh-pass__card--final .gh-pass__stamps li { height: 40px; }
.gh-pass__card--final .gh-pass__stamps li span { font-size: 0.62rem; }


/* =============================================================== CLOSE ==
 * Her sayfa aynı koyu kapanışla biter: tek cümle, tek eylem, alt bilgi. */
.gh-close {
  --text: #f5f5f7; --text-soft: #b4b6c0; --border: rgba(255, 255, 255, 0.14);
  background: var(--gh-night); color: var(--text);
  padding-top: clamp(5rem, 11vw, 9rem);
}
[data-theme="dark"] .gh-close { background: #07080f; }
.gh-close__title {
  font-family: var(--sc-font-display);
  font-size: clamp(2.3rem, 1.3rem + 4vw, 5rem);
  font-weight: 900; line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; margin: 0;
}
.gh-close__lede { margin-top: 1.25rem; color: var(--text-soft); font-size: 1.1rem; max-width: 40ch; }

.gp-end { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem 3rem; }
.gp-end__title { max-width: 16ch; }
.gp-end__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* Yalnızca alt bilgi taşıyan kapanış (başvuru sayfası gibi) */
.gh-close--foot { padding-top: 0; }
.gh-close--foot .gh-foot { margin-top: 0; border-top: 0; }

.gh-foot { margin-top: clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--border); padding-block: 2rem 2.5rem; }
.gh-foot__wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2.5rem; }
.gh-foot__brand { display: flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: 0.9rem; }
.gh-foot__brand img { filter: brightness(0) invert(1); }
.gh-foot__nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.gh-foot__nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 0.9rem; color: var(--text-soft); }
.gh-foot__nav a:hover { color: #fff; }
.gh-foot__legal { width: 100%; font-size: 0.8rem; color: var(--text-soft); }

/* ------------------------------------------------------- reduced motion -- */
@media (prefers-reduced-motion: reduce) {
  .gp-stamp { transform: none; }
  .gh-btn { transition: none; }
}
