/* ==========================================================================
   Korner — tanıtım sayfası (tabela tasarımı)
   Üstte gece maçı havasında koyu bir sahne ve sıradaki gerçek maçın tabelası,
   altında kısa ve açık renkli bölümler. Marka renkleri yönetim panelinden
   --brand-400, --brand-600 ve --amber olarak gelir; diğer tonlar türetilir.
   ========================================================================== */

:root {
  --brand-400: #10B981;
  --brand-600: #047857;
  --amber: #F59E0B;

  --brand: color-mix(in srgb, var(--brand-400) 50%, var(--brand-600));
  --brand-50: color-mix(in srgb, var(--brand-400) 8%, #fff);
  --brand-100: color-mix(in srgb, var(--brand-400) 18%, #fff);
  --brand-glow: color-mix(in srgb, var(--brand-400) 45%, transparent);
  --night: color-mix(in srgb, var(--brand-600) 22%, #03070b);
  --night-2: color-mix(in srgb, var(--brand-600) 38%, #03070b);
  --grad: linear-gradient(135deg, var(--brand-400), var(--brand-600));

  --bg: #F4F6F5;
  --surface: #FFFFFF;
  --ink: #0F1720;
  --ink-2: #374151;
  --muted: #5B6270;
  --line: #E4E8E6;
  --on-night: #FFFFFF;
  --on-night-2: rgba(255, 255, 255, .68);
  --night-line: rgba(255, 255, 255, .12);

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-digits: "Segoe UI Variable Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  --wrap: 1040px;
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ul, figure, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

[hidden] { display: none !important; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.2em;
  height: 1.2em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand-400) 60%, transparent); outline-offset: 3px; }

/* --------------------------------------------------------------------------
   Sahne: gece maçı arka planı
   -------------------------------------------------------------------------- */

.stage {
  position: relative;
  overflow: hidden;
  padding-bottom: 44px;
  color: var(--on-night);
  background:
    radial-gradient(38% 46% at 8% 0%, var(--brand-glow), transparent 70%),
    radial-gradient(38% 46% at 92% 0%, var(--brand-glow), transparent 70%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .018) 0 80px, transparent 80px 160px),
    linear-gradient(180deg, var(--night-2), var(--night) 70%);
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 65%);
  pointer-events: none;
}

.stage::before { left: -120px; }
.stage::after { right: -120px; }

.stage-pitch {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(255, 255, 255, .07);
  stroke-width: 2;
  pointer-events: none;
}

.stage .wrap { position: relative; z-index: 1; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0;
}

.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.brand-logo { width: 34px; height: 34px; border-radius: 10px; object-fit: cover; }

.brand-sub {
  display: none;
  padding-left: 10px;
  border-left: 1px solid var(--night-line);
  color: var(--on-night-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

@media (min-width: 560px) { .brand-sub { display: inline; } }

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.lang-switch button {
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-night-2);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}

.lang-switch button:hover { color: #fff; }
.lang-switch button[aria-pressed="true"] { background: #fff; color: var(--night); }

.stage-title {
  max-width: 640px;
  margin: 18px auto 24px;
  font-size: clamp(28px, 4.6vw, 46px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.035em;
  text-align: center;
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   Tabela
   -------------------------------------------------------------------------- */

.board {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 18px 18px;
  border: 1px solid var(--night-line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .04));
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.board-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }

.board-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: color-mix(in srgb, var(--brand-400) 70%, #fff);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.board.is-live .board-label { color: #FCA5A5; }

.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: pulse 1.8s var(--ease) infinite;
}

@keyframes pulse {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.board-pills { display: flex; flex-wrap: wrap; gap: 6px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: var(--on-night);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.pill .icon { width: 14px; height: 14px; color: color-mix(in srgb, var(--brand-400) 70%, #fff); }

/* Maç, etkinlik ve bilgi mesajı üst üste aynı alanı kullanır; durum değişince sayfa kaymaz. */
.board-stage { display: grid; margin-top: 18px; }
.board-stage > * { grid-area: 1 / 1; }
.board-stage > .is-off { visibility: hidden; }

.board-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.team { display: grid; justify-items: center; gap: 10px; min-width: 0; text-align: center; }

.crest {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 55%),
    var(--crest, #334155);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12), 0 14px 26px -12px rgba(0, 0, 0, .8);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.team-name {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.board-clock { display: grid; justify-items: center; gap: 2px; padding: 0 4px; }

.board-day {
  color: var(--on-night-2);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.board-time {
  font-family: var(--font-digits);
  font-size: clamp(34px, 7vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 24px var(--brand-glow);
}

.board-event { display: grid; align-content: center; justify-items: center; gap: 10px; text-align: center; }

.event-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .12);
}

.event-icon .icon { width: 28px; height: 28px; color: #fff; }
.event-name { max-width: 420px; font-size: 18px; font-weight: 700; line-height: 1.3; }

/* Veri gelene kadar iskelet görünüm; JavaScript yoksa tabela hiç gösterilmez */
html:not(.js) .board,
html:not(.js) .after { display: none; }

.board.is-loading .board-pills,
.board.is-loading .board-day,
.board.is-loading .countdown { visibility: hidden; }

.board.is-loading .crest,
.board.is-loading .team-name {
  color: transparent;
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
  animation: skeleton 1.4s ease-in-out infinite;
}

.board.is-loading .team-name { width: 92px; height: 15px; border-radius: 8px; }
.board.is-loading .board-time { color: rgba(255, 255, 255, .25); text-shadow: none; }

@keyframes skeleton { 50% { opacity: .45; } }

/* Program alınamadığında ya da maç olmadığında */
.board.is-status .board-pills { visibility: hidden; }

.board-status {
  align-self: center;
  justify-self: center;
  max-width: 380px;
  color: var(--on-night-2);
  font-size: 15px;
  text-align: center;
}

/* Geri sayım */
.countdown {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--night-line);
}

.countdown-label { color: var(--on-night-2); font-size: 13px; font-weight: 600; }
.countdown.is-idle { visibility: hidden; }

.countdown-live {
  position: absolute;
  inset: 16px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #FCA5A5;
  font-size: 15px;
  font-weight: 700;
  visibility: hidden;
}

.countdown.is-live .countdown-live { visibility: visible; }
.countdown.is-live .countdown-label,
.countdown.is-live .countdown-cells { visibility: hidden; }
.countdown-cells { display: flex; gap: 6px; }

.cell {
  display: grid;
  justify-items: center;
  min-width: 52px;
  padding: 6px 6px 5px;
  border: 1px solid var(--night-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, .28);
}

.cell b { font-family: var(--font-digits); font-size: 21px; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cell small { color: var(--on-night-2); font-size: 10.5px; font-weight: 600; }

/* Sıradaki maçlar */
.after.is-empty { visibility: hidden; }

.after {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 600px;
  margin: 14px auto 0;
}

.after-label { flex: none; color: var(--on-night-2); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

.after-list {
  display: flex;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  mask-image: linear-gradient(90deg, #000 85%, transparent);
}

.after-list::-webkit-scrollbar { display: none; }

.after-item {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  font-size: 12.5px;
  white-space: nowrap;
}

.after-item b { color: color-mix(in srgb, var(--brand-400) 65%, #fff); font-variant-numeric: tabular-nums; }

/* İndirme butonu */
.stage-cta { margin-top: 26px; text-align: center; }

.btn-install {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  min-height: 60px;
  padding: 0 30px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 18px 40px -16px var(--brand-glow);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.btn-install .icon { width: 22px; height: 22px; stroke-width: 2.2; }

.btn-install::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .3), transparent);
  transform: translateX(0) skewX(-20deg);
  animation: shine 5s var(--ease) infinite;
}

@keyframes shine {
  0%, 62% { transform: translateX(0) skewX(-20deg); }
  100% { transform: translateX(480%) skewX(-20deg); }
}

.btn-install:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 24px 44px -16px var(--brand-glow); }
.btn-install:active { transform: translateY(0) scale(.99); }

.btn-install--light { background: #fff; color: var(--brand-600); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .6); }
.btn-install--light::after { background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--brand-400) 18%, transparent), transparent); }

/* --------------------------------------------------------------------------
   Platform şeridi
   -------------------------------------------------------------------------- */

.platforms { padding: 26px 0 22px; border-bottom: 1px solid var(--line); background: var(--surface); }

.platforms-title {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-align: center;
  text-transform: uppercase;
}

.platform-strip {
  min-height: 58px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.platform-track { display: flex; gap: 12px; width: max-content; }
.js .platform-track.is-looping { animation: marquee 40s linear infinite; }
.platform-strip:hover .platform-track { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }

.platform-tile a,
.platform-tile > span {
  display: grid;
  place-items: center;
  width: 148px;
  height: 58px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  text-decoration: none;
  transition: border-color .25s, background-color .25s;
}

.platform-tile a:hover,
.platform-tile > span:hover { border-color: color-mix(in srgb, var(--logo-color, var(--brand)) 40%, var(--line)); background: #fff; }

.platform-tile img { width: 100%; height: 26px; object-fit: contain; }
.platform-tile b { overflow: hidden; color: var(--logo-color, var(--ink)); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }

/* --------------------------------------------------------------------------
   Özellikler
   -------------------------------------------------------------------------- */

.features { padding: 34px 0; }
.feat-row { display: grid; gap: 12px; }

.feat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.feat-ico {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 14px;
  background: var(--brand-100);
  color: var(--brand-600);
}

.feat-ico .icon { width: 22px; height: 22px; }
.feat h2 { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.feat p { margin-top: 2px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* --------------------------------------------------------------------------
   Yorum
   -------------------------------------------------------------------------- */

.quote { padding: 0 0 34px; }

.quote-card {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  padding: 30px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  text-align: center;
}

.quote-mark { width: 34px; height: 34px; margin: 0 auto 10px; color: var(--brand); stroke-width: 2; }
/* Tüm yorumlar üst üste durur, kart en uzun yorum kadar yer kaplar; değişirken sayfa kaymaz. */
.quote-body { display: grid; min-height: 120px; }

.quote-slide {
  grid-area: 1 / 1;
  align-self: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s var(--ease), visibility 0s linear .45s;
}

.quote-slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s var(--ease) .1s, visibility 0s; }

.quote-text { color: var(--ink); font-size: clamp(17px, 2.2vw, 20px); font-weight: 500; line-height: 1.55; letter-spacing: -.01em; }

.quote-author {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13.5px;
}

.quote-author strong { color: var(--ink); font-weight: 700; }
.quote-stars { display: inline-flex; gap: 1px; color: #D9DCE6; }
.quote-stars .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.quote-stars .is-on { color: var(--amber); }

.quote-dots { display: flex; justify-content: center; gap: 4px; margin-top: 14px; }

.quote-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.quote-dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  transition: width .3s var(--ease), background-color .3s;
}

.quote-dots button[aria-pressed="true"]::before { width: 22px; background: var(--brand); }

/* --------------------------------------------------------------------------
   Kapanış ve alt bilgi
   -------------------------------------------------------------------------- */

.closing { padding: 0 0 40px; }

.closing-card {
  position: relative;
  overflow: hidden;
  padding: 36px 22px 30px;
  border-radius: 28px;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--brand-glow), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night));
  color: var(--on-night);
  text-align: center;
}

.closing-card h2 { margin-bottom: 20px; font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.03em; }
.closing-note { margin-top: 14px; color: var(--on-night-2); font-size: 12.5px; }

.footer {
  padding: 20px var(--gutter) 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* --------------------------------------------------------------------------
   Görünür olunca beliren öğeler
   -------------------------------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

.js .reveal.is-visible { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Ekran boyutları
   -------------------------------------------------------------------------- */

@media (min-width: 760px) {
  .stage { padding-bottom: 56px; }
  .stage-title { margin: 26px auto 30px; }
  .board { padding: 20px 26px 22px; }
  .crest { width: 78px; height: 78px; font-size: 20px; }
  .team-name { font-size: 17px; }
  .cell { min-width: 60px; }
  .cell b { font-size: 24px; }
  .feat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feat { flex-direction: column; align-items: flex-start; padding: 20px; }
  .features { padding: 44px 0; }
  .quote { padding-bottom: 44px; }
  .quote-card { padding: 38px 48px 26px; }
  .closing { padding-bottom: 56px; }
  .closing-card { padding: 48px 32px 40px; }
}

@media (max-width: 380px) {
  .crest { width: 54px; height: 54px; font-size: 15px; }
  .team-name { font-size: 13.5px; }
  .cell { min-width: 44px; }
  .cell b { font-size: 18px; }
  .countdown-label { flex-basis: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
