/* ==========================================================================
   Vitrin — tasarım sistemi
   --------------------------------------------------------------------------
   Referans: referans/stitch_ai_web_builder_wizard/lumina_ai/DESIGN.md

   Referans Tailwind CDN ile çizilmişti. Biz jetonları CSS değişkeni olarak
   taşıyoruz: dış bir betiğe bağımlı kalmıyoruz (CSP'yi sıkı tutabiliyoruz),
   sınıf isimleri anlamlarını taşıyor ve tema değişkeni tek yerden dönüyor.

   ÖNEMLİ: Bu dosya ÜRÜNÜN KENDİ arayüzü içindir. Müşteri sitelerinin stili
   Vitrin.Rendering içindeki BaseStylesheet'tedir ve buradan bağımsızdır.
   ========================================================================== */

:root {
  /* ── Renk ─────────────────────────────────────────────────────────────── */
  --surface: #fcf9f8;
  --surface-alt: #f5f5f7;
  --canvas: #ffffff;
  --container-low: #f6f3f2;
  --container: #f0edec;
  --container-high: #ebe7e7;
  --container-highest: #e5e2e1;
  --surface-variant: #e5e2e1;
  --surface-dim: #dcd9d9;

  --on-surface: #1c1b1b;
  --on-surface-variant: #474555;
  --outline: #787587;
  --outline-variant: #c8c4d8;

  --primary: #5341e2;
  --primary-container: #6d5efc;
  --secondary: #4b41e1;
  --accent: #8b5cf6;
  --on-primary: #ffffff;
  --primary-fixed: #e3dfff;

  --glow: rgba(109, 94, 252, 0.15);
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --success: #10b981;

  /* ── Ölçü ─────────────────────────────────────────────────────────────── */
  --gutter: 24px;
  --margin-desktop: 40px;
  --container-max: 1280px;

  /* ── Yükselti ─────────────────────────────────────────────────────────── */
  --shadow-1: 0 4px 20px rgba(0, 0, 0, 0.04);
  --shadow-2: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-3: 0 24px 64px rgba(0, 0, 0, 0.12);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Temel ──────────────────────────────────────────────────────────────── */

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

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

h1,
h2,
h3,
h4 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

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

/* ── Tipografi ölçeği ───────────────────────────────────────────────────── */

.display {
  font-size: 64px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.headline-xl {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  font-weight: 700;
}

.headline-lg {
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
}

.headline-md {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 20px;
  line-height: 1.4;
  font-weight: 600;
}

.body-lg {
  font-size: 18px;
  line-height: 1.6;
}

.label-md {
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  font-weight: 500;
}

.label-sm {
  font-size: 12px;
  line-height: 1.2;
  font-weight: 600;
}

.muted {
  color: var(--on-surface-variant);
}

.dim {
  color: var(--outline);
}

/* Başlığın ikinci satırı mor degrade — referansın imzası. */
.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 768px) {
  .display {
    font-size: 40px;
    line-height: 1.2;
  }

  .headline-xl {
    font-size: 28px;
  }
}

/* ── Düzen ──────────────────────────────────────────────────────────────── */

.kap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

@media (min-width: 1024px) {
  .kap {
    padding: 0 var(--margin-desktop);
  }
}

/* Arka plandaki mor bulutlar. Tek bir düz zemin yerine derinlik veriyor;
   pointer-events yok, hiçbir tıklamayı yemiyor. */
.aura {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.aura::before,
.aura::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  mix-blend-mode: multiply;
}

.aura::before {
  top: -10%;
  left: 15%;
  width: 520px;
  height: 520px;
  background: rgba(83, 65, 226, 0.1);
  filter: blur(100px);
}

.aura::after {
  top: 8%;
  right: 8%;
  width: 420px;
  height: 420px;
  background: rgba(139, 92, 246, 0.1);
  filter: blur(80px);
}

/* ── Butonlar ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  background: var(--container);
  color: var(--on-surface);
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}

.btn:hover {
  background: var(--container-high);
}

/* Birincil eylem gradyanlı. Sayfada tek olmalı — iki tane varsa hangisinin
   asıl eylem olduğu kaybolur. */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  color: var(--on-primary);
  box-shadow: 0 8px 24px var(--glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-container), var(--secondary));
  box-shadow: 0 12px 32px var(--glow);
  transform: translateY(-1px);
}

.btn-ghost {
  background: var(--canvas);
  border: 1px solid var(--container-highest);
  box-shadow: var(--shadow-1);
}

.btn-ghost:hover {
  background: var(--container-low);
  box-shadow: var(--shadow-2);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 15px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn .ikon {
  width: 18px;
  height: 18px;
}

/* Yuvarlak simge butonu. */
.ikon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--on-surface-variant);
  transition: background 0.2s, color 0.2s;
}

.ikon-btn:hover {
  background: var(--container);
  color: var(--on-surface);
}

.ikon-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Simge ölçüleri öznitelikle veriliyor. Satır içi `style` kullanamıyoruz:
   içerik güvenlik politikası onu engelliyor ve engellemesi doğru. */
.ikon[data-boyut="12"] { width: 12px; height: 12px; }
.ikon[data-boyut="13"] { width: 13px; height: 13px; }
.ikon[data-boyut="14"] { width: 14px; height: 14px; }
.ikon[data-boyut="16"] { width: 16px; height: 16px; }
.ikon[data-boyut="17"] { width: 17px; height: 17px; }
.ikon[data-boyut="18"] { width: 18px; height: 18px; }
.ikon[data-boyut="20"] { width: 20px; height: 20px; }
.ikon[data-boyut="24"] { width: 24px; height: 24px; }
.ikon[data-boyut="30"] { width: 30px; height: 30px; }
.ikon[data-boyut="34"] { width: 34px; height: 34px; }

.ikon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ── Rozet ──────────────────────────────────────────────────────────────── */

.rozet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--container-high);
  box-shadow: var(--shadow-1);
  font-size: 13px;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.nokta {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  animation: nabiz 2s ease-in-out infinite;
}

.nokta-yesil {
  background: var(--success);
  width: 6px;
  height: 6px;
}

@keyframes nabiz {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ── Üst çubuk ──────────────────────────────────────────────────────────── */

.ust {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 249, 248, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 226, 225, 0.6);
}

.ust-ic {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.marka {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.marka-kare {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary-container), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 12px var(--glow);
}

.marka-kare .ikon {
  width: 18px;
  height: 18px;
}

.menu {
  display: flex;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-surface-variant);
}

.menu a:hover {
  color: var(--on-surface);
}

.menu a.aktif {
  color: var(--primary);
  font-weight: 600;
}

.ust-eylem {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
}

@media (max-width: 900px) {
  .menu,
  .ust-eylem .gizle-mobil {
    display: none;
  }
}

/* ── Kart ───────────────────────────────────────────────────────────────── */

.kart {
  background: var(--canvas);
  border-radius: 20px;
  box-shadow: var(--shadow-1);
  border: 1px solid rgba(229, 226, 225, 0.7);
  padding: 32px;
}

.kart-vurgu {
  box-shadow: var(--shadow-2);
}

/* ── Tarayıcı çerçevesi ─────────────────────────────────────────────────── */

.tarayici {
  background: var(--canvas);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  border: 1px solid var(--container-high);
  display: flex;
  flex-direction: column;
}

.tarayici-bar {
  height: 44px;
  background: var(--container-low);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 16px;
  flex: none;
}

.lambalar {
  display: flex;
  gap: 8px;
}

.lambalar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.lambalar i:nth-child(1) { background: #ff5f56; }
.lambalar i:nth-child(2) { background: #ffbd2e; }
.lambalar i:nth-child(3) { background: #27c93f; }

.adres {
  flex: 1;
  max-width: 420px;
  margin: 0 auto;
  height: 26px;
  border-radius: 7px;
  background: var(--canvas);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: var(--outline);
}

.adres .ikon {
  width: 12px;
  height: 12px;
}

/* ── Form alanları ──────────────────────────────────────────────────────── */

.alan {
  margin-bottom: 20px;
}

/* Alanın kendi etiketi. `.secenek` de bir <label> ve `.alan`ın doğrudan
   çocuğu; dışarıda bırakılmazsa bu kural onun display:flex'ini eziyor. */
.alan > label:not(.secenek) {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 8px;
}

.girdi {
  width: 100%;
  padding: 16px 20px;
  border-radius: 12px;
  border: 1px solid var(--container-highest);
  background: var(--canvas);
  box-shadow: var(--shadow-1);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.girdi::placeholder {
  color: var(--outline-variant);
}

.girdi:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--glow);
}

textarea.girdi {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Seçenek kartı — radyo düğmesinin görünür hâli. */
.secenek {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid var(--container-highest);
  background: var(--canvas);
  margin-bottom: 10px;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.secenek:hover {
  border-color: var(--outline-variant);
  box-shadow: var(--shadow-1);
}

.secenek input {
  margin: 3px 0 0;
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
  flex: none;
}

.secenek b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.secenek em {
  font-style: normal;
  font-size: 13px;
  color: var(--on-surface-variant);
}

.secenek:has(input:checked) {
  border-color: var(--primary);
  background: rgba(109, 94, 252, 0.04);
  box-shadow: 0 0 0 3px var(--glow);
}

/* ── Yardımcılar ────────────────────────────────────────────────────────── */

.satir {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bosluk {
  flex: 1;
}

[hidden] {
  display: none !important;
}

.ince-kaydirma::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.ince-kaydirma::-webkit-scrollbar-track {
  background: transparent;
}

.ince-kaydirma::-webkit-scrollbar-thumb {
  background: var(--surface-dim);
  border-radius: 4px;
}

@keyframes yukari {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.giris {
  animation: yukari 0.5s var(--ease) both;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
