/* ============================================================
   Onlipr Design System — Shared base tokens
   Marka-bağımsız: radius, shadow, easing, motion, spacing.
   Brand-spesifik renk ve font tokens için brands/*/tokens.css.
   ============================================================ */

:root {
  /* — Radius (Stripe scale 4 / 8 / 12) — */
  --radius-xs:   4px;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-pill: 999px;

  /* — Shadow (kırpık iki-katmanlı Stripe DNA) — */
  --shadow-sm: 0 1px 0 rgba(20,20,20,0.04), 0 1px 2px rgba(20,20,20,0.06);
  --shadow:    0 1px 0 rgba(20,20,20,0.04), 0 4px 12px -4px rgba(20,20,20,0.10);
  --shadow-lg: 0 16px 32px -16px rgba(20,20,20,0.22);

  /* — Motion — */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur-fast: 0.14s;
  --dur:      0.18s;
  --dur-slow: 0.45s;

  /* — Spacing scale (8px tabanlı) — */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;

  /* — Type scale (rem) — */
  --fs-microcopy:  0.66rem;   /* 10.5px — uppercase mono labels */
  --fs-label:      0.75rem;   /* 12px */
  --fs-body-sm:    0.82rem;   /* 13px */
  --fs-body:       0.875rem;  /* 14px — table cell, button */
  --fs-card-title: 0.95rem;   /* 15px */
  --fs-section:    1.05rem;   /* 17px */
  --fs-page:       1.5rem;    /* 24px */
  --fs-kpi:        1.7rem;    /* 27px — KPI metric value */
}

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

button { font: inherit; cursor: pointer; border: none; background: none; }

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

table { border-collapse: collapse; }

/* — Keyframes — */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}
@keyframes shimmer {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 0.9; }
}

/* — Reduced motion (erişilebilirlik) — */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* — sr-only utility — */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
