/* ========== DEĞİŞKENLER ========== */
:root {
  --bg-base: #0b0e13;
  --surface: #11151c;
  --surface-hi: #161b23;
  --surface-soft: #161b23;
  --glass-border: #232a35;
  --glass-border-hi: #2f3846;
  --text: #e6eaf0;
  --text-muted: #8b95a5;
  --accent: #22c55e;
  --accent-hi: #4ade80;
  --accent-hover: #16a34a;
  --accent-glow: transparent;
  --accent-soft: rgba(34,197,94,0.12);
  --accent-border: rgba(34,197,94,0.32);
  --header-bg: rgba(11,14,19,0.85);
  --inset-top: rgba(255,255,255,0.06);
  --inset-bottom: rgba(0,0,0,0.2);
  --radius: 10px;
  --radius-lg: 14px;
}

.light {
  --bg-base: #edf1f8;
  --surface: #ffffff;
  --surface-hi: #f1f3f7;
  --surface-soft: #f1f3f7;
  --glass-border: #e4e7ec;
  --glass-border-hi: #d0d5dd;
  --text: #111827;
  --text-muted: #667085;
  --accent: #16a34a;
  --accent-hi: #22c55e;
  --accent-hover: #15803d;
  --accent-glow: transparent;
  --accent-soft: rgba(22,163,74,0.1);
  --accent-border: rgba(22,163,74,0.32);
  --header-bg: rgba(255,255,255,0.85);
  --inset-top: rgba(255,255,255,0.9);
  --inset-bottom: rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }

/* Arka plan: lime + cyan yumuşak geçiş (görsel yok, saf CSS) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 540px at 6% -12%, rgba(163, 230, 53, 0.15) 0%, transparent 62%),
    radial-gradient(820px 580px at 96% 112%, rgba(34, 211, 238, 0.15) 0%, transparent 62%);
}

.light body::before {
  background:
    radial-gradient(900px 540px at 6% -12%, rgba(132, 204, 22, 0.18) 0%, transparent 62%),
    radial-gradient(820px 580px at 96% 112%, rgba(6, 182, 212, 0.16) 0%, transparent 62%);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
  min-height: 100vh;
  background: var(--bg-base);
  transition: background 0.4s, color 0.4s;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

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

.emoji {
  -webkit-text-fill-color: initial;
  -webkit-background-clip: initial;
  background-clip: initial;
  background: none;
  font-family: 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif;
  display: inline-block;
}

/* ========== BUHAR CANVAS ========== */
#steamCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 9999;
  pointer-events: none;
  transform: translateZ(0);
}

/* ========== ÜST ÇUBUK ========== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 18px;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.logo img { border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }

.nav-links {
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1;
  min-width: 0;
  /* Sığmadığında ortalamak yerine baştan hizalar; ilk link kırpılmaz */
  justify-content: center;
  justify-content: safe center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 2px 0;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-links a {
  text-decoration: none;
  color: var(--text);
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: linear-gradient(135deg, var(--surface-hi) 0%, var(--surface-soft) 100%);
  font-size: 0.87rem;
  font-weight: 500;
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.nav-links a:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: none;
}

/* ========== CONTAINER ========== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ========== HERO ========== */
.tikla-hero {
  text-align: center;
  padding: 50px 20px;
  margin-bottom: 40px;
}

.tikla-hero h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
  letter-spacing: -0.03em;
}

.tikla-hero h1 .emoji {
  display: inline-block;
  font-size: 2.2rem;
  vertical-align: middle;
  margin: 0 4px;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  color: initial;
  filter: none;
}

.tikla-hero p {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 28px;
  font-size: 1rem;
  line-height: 1.6;
}

/* ========== BUTONLAR ========== */
.download-btn,
.virus-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: -0.01em;
}

.download-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  color: white;
  box-shadow:
    0 15px 35px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.3),
    inset 0 -2px 4px rgba(0,0,0,0.15);
}

.download-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.25) 0%, transparent 100%);
  pointer-events: none;
}

.download-btn:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow:
    0 25px 50px var(--accent-glow),
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -2px 4px rgba(0,0,0,0.15);
}

.virus-btn {
  background: linear-gradient(135deg, var(--surface-hi) 0%, var(--surface-soft) 100%);
  color: var(--text);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.virus-btn:hover {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hi) 100%);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: none;
}

/* ========== QUICK CARDS ========== */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 40px;
}

.quick-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text);
  display: block;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

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

.quick-card i {
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid var(--glass-border);
}

.quick-card:hover i { transform: scale(1.06); }

.quick-card h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.quick-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ========== FEATURE ITEM ========== */
.feature-item {
  padding: 20px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: border-color 0.18s, background 0.18s;
}

.feature-item:hover {
  border-color: var(--glass-border-hi);
  background: var(--surface-hi);
}

.feature-item i {
  color: var(--accent);
  font-size: 1.4rem;
  margin-right: 12px;
  transition: transform 0.3s;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.feature-item:hover i {
  transform: scale(1.15) translateY(-3px);
}

.feature-item strong {
  font-size: 1.02rem;
  font-weight: 600;
  display: inline-block;
  letter-spacing: -0.015em;
}

.feature-item p {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* Geniş ekranda "Neden ...?" maddeleri 1800px boyunca tek sütun hâlinde
   uzamasın: kart gibi üç kolona yayılsınlar. Başlık, buton ve görsel gibi
   feature-item olmayan öğeler tüm satırı kaplar. */
@media (min-width: 1024px) {
  .tikla-section:has(> .feature-item) {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: start;
  }
  .tikla-section:has(> .feature-item) > :not(.feature-item) {
    grid-column: 1 / -1;
  }
  .tikla-section:has(> .feature-item) > h2 { margin-bottom: 0 !important; }
  .tikla-section:has(> .feature-item) > .feature-item { margin-bottom: 0; }
}

/* ========== GALERİ ========== */
.gallery-container {
  text-align: center;
  margin: 30px 0;
}

.gallery-container img {
  max-width: 100%;
  border-radius: 14px;
  border: 1px solid var(--glass-border);
  transition: opacity 0.4s ease, transform 0.3s;
  box-shadow:
    0 20px 50px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.05);
}

.gallery-container:hover img { transform: scale(1.01); }

.gallery-thumbs {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.thumb {
  width: 82px; height: 62px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.55;
  border: 2px solid transparent;
  transition: opacity 0.2s, transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.thumb:hover {
  opacity: 1;
  transform: scale(1.06);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.thumb.active {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: none;
}

.gallery-fallback {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, var(--surface-hi) 0%, var(--surface-soft) 100%);
  border: 1px dashed var(--glass-border-hi);
  border-radius: 16px;
  margin: 0 auto;
  max-width: 600px;
}

.gallery-fallback .fallback-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 12px var(--accent-glow));
  line-height: 1;
}

.gallery-fallback .fallback-title {
  color: var(--accent-hi);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.gallery-fallback .fallback-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ========== SSS ========== */
.faq-item {
  background: linear-gradient(135deg, var(--surface-hi) 0%, var(--surface) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-shadow:
    0 8px 24px rgba(0,0,0,0.12),
    inset 0 1px 0 var(--inset-top);
}

.faq-question {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.faq-question:hover { background: var(--surface-hi); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  transition: max-height 0.4s ease, padding 0.4s ease;
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.7;
}

.faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 22px 18px;
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow:
    0 15px 40px rgba(0,0,0,0.2),
    0 0 25px var(--accent-glow),
    inset 0 1px 0 var(--glass-border-hi);
}

/* ========== TEMA BUTONU ========== */
.theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  font-size: 1rem;
  z-index: 9998;
  font-family: inherit;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--glass-border-hi);
  background: var(--surface-hi);
}

/* ========== SAYFA GEÇİŞ ANİMASYONU ========== */
.tikla-section,
.tikla-hero,
.quick-card,
.feature-item,
.gallery-container,
.faq-item {
  animation: fadeInUp 0.45s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.quick-card:nth-child(1) { animation-delay: 0.04s; }
.quick-card:nth-child(2) { animation-delay: 0.08s; }
.quick-card:nth-child(3) { animation-delay: 0.12s; }
.quick-card:nth-child(4) { animation-delay: 0.16s; }

.feature-item:nth-child(1) { animation-delay: 0.04s; }
.feature-item:nth-child(2) { animation-delay: 0.07s; }
.feature-item:nth-child(3) { animation-delay: 0.1s; }
.feature-item:nth-child(4) { animation-delay: 0.13s; }
.feature-item:nth-child(5) { animation-delay: 0.16s; }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .navbar { padding: 10px 14px; }
  .nav-links a { padding: 7px 12px; font-size: 0.8rem; }
  .tikla-hero h1 { font-size: 1.8rem; }
  .tikla-hero h1 .emoji { font-size: 1.6rem; }
  .theme-toggle { width: 38px; height: 38px; font-size: 0.95rem; }
  .quick-grid { gap: 14px; }
}

/* ========== ERİŞİLEBİLİRLİK ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  #steamCanvas { display: none; }
}

/* ========== 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 */
/* ========== 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;
}


.light body {
  background-color: #ffffff;
  background-image: url('../img/aydinlikmod.svg');
}
