/*
  Temel stiller
  Sayfanın genel yazı düzeni, butonlar ve tekrar kullanılan küçük parçalar.
*/

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

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--color-warm-white);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p {
  margin: 0;
}

/* "hidden" ile gizlenen öğeler, başka stiller ne derse desin gizli kalır */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 650;
  text-wrap: balance;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--color-forest);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Ortak kapsayıcı */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: var(--section-space) 0;
}

.section--tight {
  padding: clamp(40px, 6vw, 72px) 0;
}

/* Hafif yeşil tonlu bölüm zemini */
.section--tinted {
  background: linear-gradient(180deg, var(--color-warm-white) 0%, #F1F6F3 100%);
}

/* Klavye kullanıcıları için "İçeriğe geç" bağlantısı */
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-deep);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* Metin içi bağlantı */
.link {
  color: var(--color-forest);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(31, 107, 79, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s ease;
}

.link:hover {
  text-decoration-color: currentColor;
}

.link--arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
}

.link--arrow::after {
  content: "→";
  transition: transform 0.2s ease;
}

.link--arrow:hover::after {
  transform: translateX(3px);
}

/* Küçük durum etiketi (ör. "Planlanıyor", "Örnek") */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-warm-white);
  color: var(--color-text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}

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

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--color-forest);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(30px, 4vw, 44px);
}

.section-lead {
  margin-top: 16px;
  color: var(--color-text-secondary);
  font-size: clamp(17px, 1.6vw, 19px);
}

/* Butonlar */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: var(--color-forest);
  color: #fff;
}

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

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

.btn--outline:hover {
  border-color: var(--color-sage);
  background: var(--color-mint);
}

/* Koyu zemin üzerinde açık buton */
.btn--light {
  background: #fff;
  color: var(--color-deep);
}

.btn--light:hover {
  background: var(--color-mint);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Küçük bilgi mesajı (toast) */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--color-deep);
  color: #fff;
  font-size: 15px;
  box-shadow: var(--shadow-raised);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Ekranda görünmeyen ama ekran okuyucuların okuduğu metin */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
