/**
 * WebP Dönüştürücü — temel katman
 *
 * Reset, token'lar (koyu + açık tema), arka plan orb'ları, container.
 *
 * Yükleme sırası index.html'de sabittir; style.css en sonda yüklenir
 * (responsive geçersiz kılmaları cascade'de sonda kalmalı).
 */

/* ===== RESET & BASE ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-base:       #080e14;
  --bg-surface:    #0d1822;
  --bg-card:       #111f2e;
  --bg-card-hover: #162638;
  --border:        rgba(0, 200, 200, 0.12);
  --border-hover:  rgba(0, 220, 220, 0.35);

  --accent:        #00c8c8;
  --accent-dim:    rgba(0, 200, 200, 0.15);
  --accent-glow:   rgba(0, 200, 200, 0.35);
  --accent2:       #0ea5e9;
  --accent2-dim:   rgba(14, 165, 233, 0.15);

  --success:       #22d3a0;
  --success-dim:   rgba(34, 211, 160, 0.15);
  --warning:       #f59e0b;
  --error:         #f43f5e;

  --text-primary:  #e2f0f0;
  --text-secondary:#7fb8c0;
  --text-muted:    #3d6470;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 30px rgba(0, 200, 200, 0.15);

  --orb-opacity: 0.18;
  /* Yüzey üstü katmanlar — açık temada koyulaşır, koyu temada beyazlaşır. */
  --overlay-soft:   rgba(255,255,255,0.05);
  --overlay-medium: rgba(255,255,255,0.08);
  --overlay-strong: rgba(255,255,255,0.15);
  color-scheme: dark;
}

/* ===== AÇIK TEMA =====
   Aynı değişken sözleşmesi; yalnızca değerler değişir. Sistem tercihi
   varsayılandır, [data-theme] niteliği onu geçersiz kılar. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg-base:       #f4f8fa;
    --bg-surface:    #ffffff;
    --bg-card:       #ffffff;
    --bg-card-hover: #eef5f8;
    --border:        rgba(0, 130, 140, 0.18);
    --border-hover:  rgba(0, 150, 160, 0.45);

    --accent:        #008a8f;
    --accent-dim:    rgba(0, 138, 143, 0.12);
    --accent-glow:   rgba(0, 138, 143, 0.22);
    --accent2:       #0369a1;
    --accent2-dim:   rgba(3, 105, 161, 0.12);

    --success:       #0d8a62;
    --success-dim:   rgba(13, 138, 98, 0.12);
    --warning:       #a85c00;
    --error:         #c81e3c;

    --text-primary:  #0c2430;
    --text-secondary:#3f6b76;
    --text-muted:    #6a8d97;

    --shadow-card: 0 4px 20px rgba(12, 36, 48, 0.1), 0 1px 3px rgba(12, 36, 48, 0.06);
    --shadow-glow: 0 0 24px rgba(0, 138, 143, 0.14);

    --orb-opacity: 0.12;
    color-scheme: light;
  }
}

:root[data-theme="light"] {
  --bg-base:       #f4f8fa;
  --bg-surface:    #ffffff;
  --bg-card:       #ffffff;
  --bg-card-hover: #eef5f8;
  --border:        rgba(0, 130, 140, 0.18);
  --border-hover:  rgba(0, 150, 160, 0.45);

  --accent:        #008a8f;
  --accent-dim:    rgba(0, 138, 143, 0.12);
  --accent-glow:   rgba(0, 138, 143, 0.22);
  --accent2:       #0369a1;
  --accent2-dim:   rgba(3, 105, 161, 0.12);

  --success:       #0d8a62;
  --success-dim:   rgba(13, 138, 98, 0.12);
  --warning:       #a85c00;
  --error:         #c81e3c;

  --text-primary:  #0c2430;
  --text-secondary:#3f6b76;
  --text-muted:    #6a8d97;

  --shadow-card: 0 4px 20px rgba(12, 36, 48, 0.1), 0 1px 3px rgba(12, 36, 48, 0.06);
  --shadow-glow: 0 0 24px rgba(0, 138, 143, 0.14);

  --orb-opacity: 0.12;
  color-scheme: light;
}

/*
 * scroll-behavior:smooth KALDIRILDI. Sayfada çapa bağlantısı (href="#...")
 * ve scrollIntoView çağrısı yok, yani hiçbir işe yaramıyordu; buna karşılık
 * her tıklamada kaydırma animasyonu başlatıp öğeleri hareket hâlinde
 * tutuyordu (WebKit'te anahtarlar bu yüzden tıklanamıyordu).
 */

/*
 * Hareket azaltma tercihi (WCAG 2.3.3): animasyon ve geçişler kapatılır.
 */
@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===== BACKGROUND ORBS ===== */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: var(--orb-opacity, 0.18);
  animation: orbFloat 12s ease-in-out infinite;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #00c8c8, transparent 70%);
  top: -150px; left: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #0ea5e9, transparent 70%);
  bottom: -100px; right: -80px;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, #22d3a0, transparent 70%);
  top: 50%; left: 55%;
  animation-delay: -8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.95); }
}

/* ===== CONTAINER ===== */
.container {
  position: relative;
  z-index: 1;
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}
