/* ============================================================
   360 Perspektif — Temel stil / tipografi / ortak bileşenler
   ============================================================ */

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

* { margin: 0; }

html {
  background: var(--ink);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ivory);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img,
svg,
video,
canvas { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; }

ul,
ol { padding: 0; list-style: none; }

button,
input,
select,
textarea { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

::selection {
  background: var(--orange);
  color: var(--on-orange);
}

/* Kaydırma çubuğu */
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-track { background: var(--ink-2); }
body::-webkit-scrollbar-thumb { background: rgba(242, 240, 232, 0.22); border-radius: 99px; }
body::-webkit-scrollbar-thumb:hover { background: var(--orange); }

/* ---------- Başlıklar ---------- */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-hero);
  line-height: 1.04;
}

h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-md); }

strong { font-weight: 600; color: var(--ivory); }
em { font-style: normal; color: var(--orange); }

/* ---------- Düzen ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section[id],
[id="gizlilik"],
[id="kvkk"],
[id="kosullar"] { scroll-margin-top: calc(var(--header-h) + 10px); }

.skip-link {
  position: fixed;
  top: -120px;
  left: 16px;
  z-index: 300;
  background: var(--orange);
  color: var(--on-orange);
  padding: 11px 20px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: top 0.25s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- Etiket / annotation ---------- */
.annotation {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.annotation--light { color: rgba(242, 240, 232, 0.72); }

/* ---------- Bölüm başlıkları ---------- */
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

.section-head > .annotation { margin-bottom: clamp(20px, 3vw, 36px); }

.section-head__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.section-title { font-size: var(--fs-xl); }

.section-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  line-height: 1.75;
}

/* ---------- Butonlar ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 15px 30px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.btn--solid {
  background: var(--orange);
  color: var(--on-orange);
}
.btn--solid:hover {
  background: var(--orange-2);
  transform: translateY(-2px);
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--ivory);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  transform: translateY(-2px);
}

.btn--small { padding: 10px 20px; font-size: 0.85rem; }
.btn--wide { width: 100%; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.85s var(--ease-out),
    transform 0.85s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Form alanları ---------- */
.field { display: grid; gap: 8px; }

.field label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field label span { color: var(--orange); }

.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 1rem;
  color: var(--ivory);
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 16px;
  transition: border-color 0.25s, background 0.25s;
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A6A498' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.field select option {
  background: var(--ink-3);
  color: var(--ivory);
}

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-2); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--ink-4);
}

.field input.is-invalid,
.field select.is-invalid,
.field textarea.is-invalid { border-color: #E0604F; }

.field__error {
  font-size: 0.8rem;
  color: #F0917F;
}

.field--check {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
}
.field--check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--orange);
}
.field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
}
.field--check .field__error { grid-column: 2; }

/* ---------- Durum rozetleri (ürün maketi) ---------- */
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.chip--new { background: rgba(225, 102, 58, 0.14); color: #A6471F; }
.chip--done { background: rgba(46, 120, 80, 0.14); color: #276645; }
.chip--wait { background: rgba(27, 28, 25, 0.08); color: #5F5F55; }

/* ---------- Duyarlı hareket ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Küçük ekran ortak ayarlar ---------- */
@media (max-width: 900px) {
  .section-head__grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }
}
