/* ==========================================================================
   TURBOLU STUDIOS — PORTAL
   Sade, kurumsal bir arayüz. Gradyan yazı, neon parıltı ve cam efekti yok.
   ========================================================================== */

/* ---------- Tasarım değişkenleri ---------- */
:root {
  --bg: #0b0e13;
  --surface: #11151c;
  --surface-2: #161b23;
  --border: #232a35;
  --border-strong: #2f3846;

  --text: #e6eaf0;
  --text-muted: #8b95a5;
  --text-dim: #6b7688;

  --accent: #22c55e;
  --accent-hover: #16a34a;
  --accent-soft: rgba(34, 197, 94, 0.12);
  --accent-border: rgba(34, 197, 94, 0.32);
  --header-bg: rgba(11, 14, 19, 0.82);

  --radius: 10px;
  --radius-lg: 14px;

  --header-h: 60px;
  --wrap: 1120px;
}

.light {
  --bg: #edf1f8;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --border: #e4e7ec;
  --border-strong: #d0d5dd;

  --text: #111827;
  --text-muted: #667085;
  --text-dim: #98a2b3;

  --accent: #16a34a;
  --accent-hover: #15803d;
  --accent-soft: rgba(22, 163, 74, 0.1);
  --accent-border: rgba(22, 163, 74, 0.32);
  --header-bg: rgba(255, 255, 255, 0.82);
}

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

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Arka plan: lime + cyan yumuşak geçiş ----------
   Görsel dosyası yok, saf CSS. Anında yüklenir, mobil veri harcamaz. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(950px 560px at 6% -12%, rgba(163, 230, 53, 0.16) 0%, transparent 62%),
    radial-gradient(850px 600px at 96% 112%, rgba(34, 211, 238, 0.16) 0%, transparent 62%);
}

.light body::before {
  background:
    radial-gradient(950px 560px at 6% -12%, rgba(132, 204, 22, 0.20) 0%, transparent 62%),
    radial-gradient(850px 600px at 96% 112%, rgba(6, 182, 212, 0.18) 0%, transparent 62%);
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

h1, h2, h3 { line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- Üst çubuk ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img { border-radius: 8px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav a {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.icon-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-2);
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 88px 72px;
  max-width: var(--wrap);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(1.7rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 34ch;
}

.lead {
  margin-top: 20px;
  max-width: 60ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.btn-primary {
  background: var(--accent);
  color: #04140a;
  font-weight: 600;
}

.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

/* ---------- Bölümler ---------- */
.section {
  padding-block: 56px;
  border-top: 1px solid var(--border);
}

.section-head { margin-bottom: 28px; }

.section-head h2,
.split h2 {
  font-size: 1.375rem;
  margin-bottom: 6px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* ---------- Proje kartları ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.card:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.card img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-2);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  color: var(--text-dim);
}

.card-body { flex: 1; min-width: 0; }

.card-body h3 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.card-body p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.card-arrow {
  color: var(--text-dim);
  font-size: 0.8rem;
  margin-top: 4px;
  transition: transform 0.18s, color 0.18s;
  flex-shrink: 0;
}

.card:hover .card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

.card-muted { opacity: 0.72; cursor: default; }
.card-muted:hover { transform: none; background: var(--surface); border-color: var(--border); }

/* ---------- Etiketler ---------- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

.tag-live {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-soft);
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* ---------- Hakkımızda ---------- */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.prose {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 62ch;
}

.prose + .prose { margin-top: 14px; }

.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.facts > div {
  background: var(--surface);
  padding: 18px 20px;
}

.facts dt {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.facts dd {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- İletişim ---------- */
.contact-list {
  display: grid;
  gap: 10px;
  max-width: 560px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: border-color 0.15s, background 0.15s;
}

.contact-list a:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.contact-list a > i:first-child { color: var(--accent); }

.contact-list .ext {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ---------- Alt bilgi ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 32px;
}

.footer-inner {
  padding-block: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-sep { opacity: 0.5; }

/* ---------- Canlı sunucu durumu + IP ---------- */
.status-strip {
  margin-top: 30px;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 9px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.875rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  flex-shrink: 0;
}

.live-dot.online { background: #a3e635; box-shadow: 0 0 0 4px rgba(163, 230, 53, 0.2); }
.live-dot.offline { background: #ef4444; box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); }

.status-strip .sep { color: var(--border-strong); }

.ip-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 2px 4px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s;
}

.ip-btn:hover { color: var(--accent); }

.ip-btn code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.84rem;
}

.ip-btn .kopya { font-size: 0.72rem; color: var(--text-dim); }

/* ---------- Duyurular ---------- */
.duyuru-listesi { display: grid; gap: 10px; }

.duyuru {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
}

.duyuru h3 { font-size: 0.95rem; margin-bottom: 5px; }

.duyuru p {
  font-size: 0.875rem;
  color: var(--text-muted);
  white-space: pre-wrap;
}

.duyuru small {
  display: block;
  margin-top: 9px;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ---------- Duyarlı ---------- */
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 640px) {
  .wrap { padding-inline: 18px; }
  .hero { padding-block: 56px 48px; }
  .lead { font-size: 1rem; }
  .section { padding-block: 44px; }
  .grid { grid-template-columns: 1fr; }
  .site-nav { gap: 0; }
  .site-nav a { padding: 7px 9px; font-size: 0.82rem; }
  .btn { width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; }
}

@media (max-width: 420px) {
  .site-nav { display: none; }
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ========== DUVAR KAĞIDI MODU (macOS Big Sur) ==========
   Tema butonuyla açılır. Görsel yalnızca bu mod etkinken indirilir:
   CSS arka plan resimleri sadece eşleşen kural aktifken çekilir. */


/* Görselin üstüne hafif bir perde: renkler görünsün ama yazı okunur kalsın */
/* Duvar kağıdı modunda hero'nun üstü koyu lacivert kalıyor,
   bu yüzden oradaki yazılar açık renge dönüyor. */


/* Duvar kağıdı modunda üst çubuk koyulaşır: hero'nun lacivert kısmıyla kaynaşır */




/* ========== MANZARA: her mod kendi SVG'sini kullanır ========== */
body {
  background-color: var(--bg);
  background-image: url('img/bigsur-koyu.svg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}


/* Açık modda arka planın üstüne ince bir ışık katmanı:
   SVG dosyasındaki renkler ellenmiyor, sadece üstüne perde geliyor.
   Bu sayede renkler görünür kalırken yazılar okunuyor. */
.light body {
  background-color: #ffffff;
  background-image: url('img/aydinlikmod.svg');
}
/* Açık modda arka plan canlı; arka planın üstüne gelen yazılar beyaz.
   Beyaz yazı açık gökyüzünde kaybolmasın diye altına koyu gölge konuldu. */
.light .hero h1,
.light .hero .lead,
.light .section-head h2,
.light .section-head p,
.light .split h2,
.light .prose {
  color: #ffffff;
  text-shadow:
    0 1px 3px rgba(8, 12, 30, 0.62),
    0 2px 16px rgba(8, 12, 30, 0.42);
}
/* ---------- Hero: solda metin, sagda gorsel panel ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding-block: 72px 64px;
}

.hero-text { min-width: 0; }

.hero-visual { min-width: 0; }

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}

.panel-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.panel-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

.panel-bar span:first-child { background: #f87171; }
.panel-bar span:nth-child(2) { background: #fbbf24; }
.panel-bar span:last-child { background: #34d399; }

.panel-body {
  aspect-ratio: 4 / 3;
  background-image: url('img/mcdunya.svg');
  background-size: cover;
  background-position: 50% 42%;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-block: 56px 48px; }
  .panel-body { aspect-ratio: 16 / 9; }
}
/* Durum seridi grid icinde tam genislik kaplar */
.hero .status-strip { grid-column: 1 / -1; }
/* Ana sayfada gorsel panel kaldirildi: hero tek sutun */
.hero { grid-template-columns: 1fr; gap: 0; max-width: 760px; }
.hero .status-strip { grid-column: auto; }
.panel, .panel-bar, .panel-body { display: none; }
