/* Çağla & Yusuf - temel katman: reset, tipografi ve paylaşılan kontroller */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/*
 * `hidden` özniteliği her zaman kazanmalı: tarayıcının [hidden] kuralı sınıf
 * seçicilerinden zayıf olduğu için `display` veren her bileşen onu sessizce
 * ezerdi (ör. .guest-code'un flex'i kodu gereksiz yere görünür yapıyordu).
 */
[hidden] {
  display: none !important;
}

a {
  color: var(--color-link);
  text-decoration: none;
  transition: color var(--duration-fast) ease;
}

a:hover {
  color: var(--color-accent-strong);
}

::placeholder {
  color: var(--color-placeholder);
  opacity: 1;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Başlıklar -------------------------------------------------------- */

.section-heading {
  margin: 0 0 var(--space-cluster);
  font-size: var(--text-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-accent-strong);
  text-wrap: balance;
}

/* Harfleri açılmış, versal başlık - "DÜĞÜN" bandı için. */
.section-heading--wide {
  font-size: var(--text-heading-wide);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  /* Harf aralığı sona da eklendiği için metin sola kayar; dengeliyoruz. */
  text-indent: var(--tracking-wide);
}

.script-line {
  margin: 0;
  font-family: var(--font-script);
  font-size: var(--text-script-md);
  line-height: 1.3;
  color: var(--color-accent);
}

.eyebrow {
  margin: 0;
  font-size: var(--text-eyebrow);
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.lede {
  margin: 0 auto;
  max-width: 35rem;
  font-size: var(--text-lede);
  line-height: var(--leading-prose);
  color: var(--color-accent);
  text-wrap: pretty;
}

.prose {
  margin: 0 auto;
  max-width: 32.5rem;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--color-text-body);
  text-wrap: pretty;
}

/* --- Form alanları ---------------------------------------------------- */

.field {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: var(--text-field);
  color: var(--color-text);
  text-align: center;
  transition:
    border-color var(--duration-fast) ease,
    background var(--duration-fast) ease;
}

.field:hover {
  border-color: var(--color-accent-soft);
}

.field--soft {
  background: var(--color-surface-soft);
}

.field--area {
  border-radius: var(--radius-tile);
  padding: 16px 20px;
  line-height: var(--leading-body);
  text-align: left;
  resize: vertical;
}

/* --- Düğmeler --------------------------------------------------------- */

.button {
  width: 100%;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-text);
  padding: 17px 30px;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background var(--duration-fast) ease,
    color var(--duration-fast) ease,
    transform var(--duration-fast) var(--ease-out-soft);
}

.button:hover:not(:disabled) {
  background: var(--color-accent);
  color: var(--color-on-dark);
}

.button:active:not(:disabled) {
  transform: scale(0.98);
}

.button:disabled {
  opacity: 0.55;
  cursor: progress;
}

.link-button {
  border: 0;
  background: transparent;
  padding: 4px;
  font-family: var(--font-body);
  font-size: var(--text-tiny);
  color: var(--color-text-faint);
  cursor: pointer;
  transition: color var(--duration-fast) ease;
}

.link-button:hover {
  color: var(--color-accent-strong);
}

/* --- Paneller --------------------------------------------------------- */

.panel {
  margin: 16px 0 0;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-panel);
  background: var(--color-surface-soft);
  padding: 24px 18px;
  text-align: center;
}

.panel__title {
  margin: 0 0 16px;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--color-accent-strong);
}

.panel__hint {
  margin: 8px 0 0;
  font-size: var(--text-tiny);
  line-height: var(--leading-body);
  color: var(--color-text-body);
}

.panel--soft {
  border-color: transparent;
  background: linear-gradient(180deg, var(--color-surface-tint-soft), var(--color-surface-tint));
  padding: 30px 22px;
}

.panel--soft .panel__title {
  margin: 0;
  font-family: var(--font-script);
  font-size: var(--text-script-md);
  font-weight: 400;
  color: var(--color-accent);
}

.panel--error {
  border-color: rgba(192, 38, 74, 0.28);
  background: #fff2f4;
  color: var(--color-danger);
  font-size: var(--text-tiny);
  line-height: var(--leading-body);
  padding: 16px 18px;
}

/* --- İlerleme çubuğu -------------------------------------------------- */

.progress {
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-tint);
  overflow: hidden;
}

.progress__fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--color-accent);
  transition: width var(--duration-normal) var(--ease-out-soft);
}

@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;
  }
}
