/* ============================================================
   Birlikte İyilik Akademi — Base CSS
   Reset, design tokens, typography
   ============================================================ */

:root {
  /* ── Marka Renkleri ── */
  --color-primary:       #E20439;
  --color-primary-hover:  #B00030;
  --color-primary-light:  #FCE8EE;
  --color-bg:            #F8F8F8;
  --color-bg-white:      #FFFFFF;
  --color-text:          #111111;
  --color-text-secondary: #555555;
  --color-text-muted:    #888888;
  --color-border:        #E6E6E6;
  --color-border-light:  #F0F0F0;

  /* ── Tipografi ── */
  --font-serif:  'Playfair Display', Georgia, serif;
  --font-sans:   'Inter', system-ui, -apple-system, sans-serif;

  /* ── Spacing (4px base) ── */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  /* ── Shadows ── */
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 24px rgba(226,4,57,0.08);
  --shadow-lg:  0 12px 48px rgba(226,4,57,0.12);
  --shadow-card: 0 2px 12px rgba(0,0,0,0.06);

  /* ── Radius ── */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 100px;

  /* ── Transitions ── */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: all 0.3s var(--ease);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary-hover); }

ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-text);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: var(--s-6); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); margin-bottom: var(--s-4); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: var(--s-3); }
h4 { font-size: 1.125rem; margin-bottom: var(--s-2); }

p { margin-bottom: var(--s-4); color: var(--color-text-secondary); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; color: var(--color-text); }

/* ── Selection ── */
::selection { background: var(--color-primary-light); color: var(--color-primary-hover); }

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ── Skip Link ── */
.skip-link {
  position: absolute; top: -100%; left: var(--s-4);
  background: var(--color-primary); color: white;
  padding: var(--s-2) var(--s-4); border-radius: var(--radius-sm);
  z-index: 9999; font-size: 14px; font-weight: 500;
}
.skip-link:focus { top: var(--s-2); }

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