/* ═══════════════════════════════════════════════════════════
   SEOGUM Base — v2.0
   Reset, typography foundations, global element styles.
   NO component styles here — only element-level defaults.
   ═══════════════════════════════════════════════════════════ */

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

/* ─── Body ────────────────────────────────────────────── */
html {
  position: relative;
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sg-font-family);
  font-size: var(--sg-font-body);
  font-weight: var(--sg-weight-regular);
  line-height: var(--sg-leading-normal);
  color: var(--sg-neutral-800);
  background-color: var(--sg-neutral-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

/* ─── Typography ──────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: var(--sg-weight-semibold);
  line-height: var(--sg-leading-tight);
  color: var(--sg-neutral-900);
}

p {
  margin-top: 0;
  margin-bottom: var(--sg-space-4);
}

small {
  font-size: var(--sg-font-caption);
}

strong, b {
  font-weight: var(--sg-weight-semibold);
}

/* ─── Links ───────────────────────────────────────────── */
a {
  color: var(--sg-neutral-500);
  text-decoration: none;
  transition: color var(--sg-transition-fast);
}

a:hover,
a:focus {
  color: var(--sg-neutral-700);
}

/* ─── Buttons & Inputs Inherit ────────────────────────── */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button {
  cursor: pointer;
}

/* ─── Focus ───────────────────────────────────────────── */
*:focus {
  outline: none;
}

*:focus-visible {
  outline: none;
  box-shadow: var(--sg-shadow-focus);
}

/* sg-* bileşenleri kendi focus stillerini tanımlar,
   bu genel kural sadece Bootstrap elementlerinde
   temiz bir focus deneyimi sağlar */

/* ─── Selection ───────────────────────────────────────── */
::selection {
  background-color: var(--sg-primary-100);
  color: var(--sg-primary-700);
}

/* ─── Images & SVG ────────────────────────────────────── */
img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

svg {
  overflow: visible;
  flex-shrink: 0;
}

/* ─── Lists ───────────────────────────────────────────── */
ul, ol {
  padding-left: var(--sg-space-5);
}

/* ─── Horizontal Rule ─────────────────────────────────── */
hr {
  border: 0;
  border-top: 1px solid var(--sg-neutral-200);
  margin: var(--sg-space-6) 0;
}

/* ─── Code ────────────────────────────────────────────── */
code {
  font-size: var(--sg-font-caption);
  padding: 2px 6px;
  background: var(--sg-neutral-100);
  border-radius: var(--sg-radius-sm);
  color: var(--sg-neutral-700);
}

/* ─── Textarea ────────────────────────────────────────── */
textarea {
  resize: vertical;
}

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