/* ============================================================
   NAZILLI ÖZEL EĞİTİM — TEMEL STİLLER v2.0
   Reset · Tipografi · Global · Animasyonlar
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&display=swap');

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

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

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--fw-regular);
  line-height: var(--lh-normal);
  color: var(--txt-primary);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.has-mobile-nav { padding-bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom)); }
body.menu-open { overflow: hidden; height: 100dvh; }

/* ===== TİPOGRAFİ ===== */

h1, h2, h3, h4, h5, h6 {
  line-height: var(--lh-tight);
  font-weight: var(--fw-bold);
  color: var(--txt-heading);
  letter-spacing: -0.02em;
}

.display-title, h1, .section-title {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

h1 { font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl)); }
h2 { font-size: clamp(var(--text-2xl), 3.5vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  line-height: var(--lh-relaxed);
  color: var(--txt-secondary);
}

p + p { margin-top: var(--space-4); }

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

a:hover { color: var(--clr-primary-700); }

strong { font-weight: var(--fw-semibold); color: var(--txt-primary); }
small { font-size: var(--text-sm); }

/* ===== LİSTELER ===== */
ul, ol { padding-left: var(--space-5); }
li { line-height: var(--lh-relaxed); color: var(--txt-secondary); }
li + li { margin-top: var(--space-2); }
ul.list-none { list-style: none; padding-left: 0; }
ul.list-none li + li { margin-top: 0; }

/* ===== MEDYA ===== */
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }

/* ===== FORM GLOBAL ===== */
input, textarea, select, button { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }
input:focus, textarea:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--clr-primary-500);
  outline-offset: 2px;
}

/* ===== YARDIMCI ===== */
.text-primary-clr  { color: var(--clr-primary-500); }
.text-accent       { color: var(--clr-accent-500); }
.text-brand        { color: var(--clr-brand-500); }
.text-muted        { color: var(--txt-tertiary); }
.text-secondary    { color: var(--txt-secondary); }
.text-inverse      { color: var(--txt-inverse); }

.text-xs    { font-size: var(--text-xs); }
.text-sm    { font-size: var(--text-sm); }
.text-base  { font-size: var(--text-base); }
.text-md    { font-size: var(--text-md); }
.text-lg    { font-size: var(--text-lg); }
.text-xl    { font-size: var(--text-xl); }
.text-2xl   { font-size: var(--text-2xl); }
.text-3xl   { font-size: var(--text-3xl); }

.fw-regular  { font-weight: var(--fw-regular); }
.fw-medium   { font-weight: var(--fw-medium); }
.fw-semibold { font-weight: var(--fw-semibold); }
.fw-bold     { font-weight: var(--fw-bold); }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.font-display { font-family: var(--font-display); }

/* Section eyebrow — premium küçük etiket */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-primary-600);
  margin-bottom: var(--space-5);
}

.section-eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--clr-accent-400);
  border-radius: 1px;
}

.section-eyebrow.light {
  color: var(--clr-primary-300);
}

.section-eyebrow.light::before {
  background: var(--clr-accent-400);
}

/* Ayraçlar */
hr {
  border: none;
  border-top: 1px solid var(--border-default);
  margin: var(--space-8) 0;
}

/* Seçim */
::selection {
  background: var(--clr-primary-100);
  color: var(--clr-primary-800);
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--clr-gray-100); }
::-webkit-scrollbar-thumb { background: var(--clr-gray-300); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--clr-gray-400); }

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

.skip-link {
  position: absolute; top: -100px; left: var(--space-4);
  background: var(--clr-primary-500); color: white;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: var(--fw-semibold);
  z-index: var(--z-toast);
  transition: top var(--dur-fast);
}
.skip-link:focus { top: var(--space-4); color: white; }

/* ===== ANİMASYONLAR ===== */

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%      { transform: translateY(-10px); }
}

@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.05); opacity: 0.8; }
}

.animate-fade-up   { animation: fadeInUp var(--dur-slow) var(--ease-out) both; }
.animate-fade-in   { animation: fadeIn var(--dur-slow) var(--ease-out) both; }
.animate-scale-in  { animation: scaleIn var(--dur-slow) var(--ease-out) both; }

.delay-100 { animation-delay: 100ms; }
.delay-150 { animation-delay: 150ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur-xslow) var(--ease-out),
              transform var(--dur-xslow) var(--ease-out);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal.revealed.delay-100 { transition-delay: 100ms; }
.reveal.revealed.delay-200 { transition-delay: 200ms; }
.reveal.revealed.delay-300 { transition-delay: 300ms; }
.reveal.revealed.delay-400 { transition-delay: 400ms; }

@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--header-shell-height-mobile) + 24px);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--clr-gray-100) 25%, var(--clr-gray-200) 50%, var(--clr-gray-100) 75%);
  background-size: 400px 100%;
  animation: shimmer 1.4s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

/* Print */
@media print {
  .no-print { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
}
