/*
Theme Name: KUT Airsoft Yakında
Description: KUT Airsoft için açılış tarihine geri sayan tek sayfalık Türkçe tema.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kut-airsoft-yakinda
*/

:root {
  color-scheme: dark;
  --background: #101011;
  --text: #f5f4f3;
  --muted: #bab7b7;
  --red: #ff424b;
  --line: #383537;
  --mono: ui-monospace, 'Cascadia Mono', 'Courier New', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font: 1rem/1.6 system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.kut-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 47%, #302325 0%, transparent 48%),
    linear-gradient(120deg, #101011 15%, #19191b 69%, #111112 100%);
}

.admin-bar .kut-shell { min-height: calc(100svh - 32px); }

.kut-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(circle, #ffffff2c .65px, transparent .8px);
  background-size: 7px 7px;
  mask-image: linear-gradient(100deg, transparent 16%, #0007 62%, #000 100%);
  opacity: .47;
  content: '';
}

.kut-wrap { width: min(calc(100% - 7.5vw), 1280px); margin-inline: auto; }

.kut-header, .kut-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.kut-header { min-height: 82px; border-bottom: 1px solid var(--line); }

.kut-wordmark {
  display: inline-flex;
  align-items: center;
  gap: .62rem;
  font-size: 1.03rem;
  font-weight: 850;
  letter-spacing: .125em;
}

.kut-wordmark::before {
  width: 4px;
  height: 1.12rem;
  background: var(--red);
  transform: skewX(-16deg);
  content: '';
}

.kut-footer {
  min-height: 66px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font: .85rem/1.4 var(--mono);
}

.kut-footer p { margin: 0; }

.kut-hero {
  display: grid;
  grid-template-columns: 1.1fr minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.6rem, 5vw, 5rem);
  padding-block: clamp(3.6rem, 8vh, 7.5rem);
}

.kut-main-copy { min-width: 0; }

.kut-title {
  margin: 0;
  font-family: Impact, 'Arial Narrow', 'Arial Black', system-ui, sans-serif;
  font-size: clamp(3.45rem, 8.1vw, 7.8rem);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.038em;
}

.kut-title span { display: block; }
.kut-title em { color: var(--red); font-style: normal; }

.kut-description {
  max-width: 31rem;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.kut-countdown {
  max-width: 31rem;
  min-height: 7.6rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.kut-countdown-heading {
  margin: 0 0 .8rem;
  color: var(--text);
  font: 700 .85rem/1.45 var(--mono);
  letter-spacing: .075em;
  text-transform: uppercase;
}

.kut-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .48rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.kut-countdown-grid li {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  min-height: 5.1rem;
  padding: .55rem .22rem;
  border: 1px solid var(--line);
  border-top-color: #9e3439;
  background: #19191b;
}

.kut-countdown-value {
  font: 700 clamp(1.28rem, 3vw, 2.25rem)/1.08 var(--mono);
  letter-spacing: -.075em;
  font-variant-numeric: tabular-nums;
}

.kut-countdown-unit {
  margin-top: .36rem;
  color: var(--muted);
  font: 600 .84rem/1.2 var(--mono);
  letter-spacing: .025em;
}

.kut-date, .kut-status { margin: .72rem 0 0; color: var(--muted); }
.kut-date { font: .85rem/1.45 var(--mono); }
.kut-status { font-size: 1rem; }

.kut-emblem {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 32.5rem;
  aspect-ratio: 1;
  margin: 0 auto;
  border: 1px solid #555053;
  background:
    linear-gradient(145deg, #ffffff0d 0%, transparent 42%),
    repeating-linear-gradient(135deg, transparent 0 5px, #ffffff06 5px 6px),
    radial-gradient(circle at 50% 42%, #3d3a3c, #1b1b1e 70%);
}

.kut-emblem::before, .kut-emblem::after {
  position: absolute;
  z-index: 1;
  width: 2.3rem;
  height: 2.3rem;
  pointer-events: none;
  content: '';
}

.kut-emblem::before { inset: -1px auto auto -1px; border-top: 2px solid var(--red); border-left: 2px solid var(--red); }
.kut-emblem::after { inset: auto -1px -1px auto; border-right: 2px solid var(--red); border-bottom: 2px solid var(--red); }

.kut-emblem img {
  display: block;
  width: 79%;
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 1rem 3.25rem #0009;
  object-fit: cover;
}

.kut-emblem img.kut-custom-logo { border-radius: 0; box-shadow: none; object-fit: contain; }

.kut-emblem-fallback {
  display: grid;
  align-content: center;
  justify-items: center;
  width: 75%;
  aspect-ratio: 1;
  border: 3px solid #939092;
  border-radius: 50%;
  box-shadow: 0 1rem 3.25rem #0009;
  background: #242426;
  font-weight: 900;
  letter-spacing: .18em;
}

.kut-emblem-fallback strong {
  color: var(--text);
  font: 900 clamp(3rem, 9vw, 7rem)/.95 Impact, 'Arial Black', system-ui, sans-serif;
  letter-spacing: -.04em;
}

@media (max-width: 782px) {
  .admin-bar .kut-shell { min-height: calc(100svh - 46px); }
}

@media (max-width: 700px) {
  .kut-wrap { width: calc(100% - 2.5rem); }
  .kut-header { min-height: 64px; }
  .kut-footer { min-height: 55px; }
  .kut-hero { grid-template-columns: minmax(0, 1fr); padding-block: 2rem 2.65rem; gap: 1.55rem; }
  .kut-emblem { grid-row: 1; width: min(65vw, 15rem); margin-inline: 0; }
  .kut-title { font-size: clamp(2.8rem, 13.2vw, 5.5rem); }
  .kut-description { margin-top: 1rem; }
  .kut-countdown { margin-top: 1.5rem; min-height: 0; }
  .kut-countdown-grid li { min-height: 4.25rem; }
}
