/* ============================================================
   saykoloji.com.tr — main.css
   Mobile-First | CSS Variables | Core Web Vitals Uyumlu
   ============================================================ */

/* ── Google Fonts ────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap');

/* ── DESIGN TOKENS (CSS Variables) ──────────────────────── */
:root {
  /* Renkler */
  --clr-brand:        #6c4fe0;
  --clr-brand-light:  #8b6fee;
  --clr-brand-dark:   #4c35b0;
  --clr-accent:       #f06292;
  --clr-accent-warm:  #ffb347;

  --clr-bg:           #f6f4fd;
  --clr-surface:      #ffffff;
  --clr-surface-2:    #f0edfa;
  --clr-border:       rgba(108,79,224,0.14);

  --clr-text:         #1e1a2e;
  --clr-text-muted:   #6b6880;
  --clr-text-light:   #9794a8;

  --clr-success:      #22c55e;
  --clr-warning:      #f59e0b;
  --clr-danger:       #ef4444;

  /* Gradyanlar */
  --grad-brand:  linear-gradient(135deg, #6c4fe0 0%, #a855f7 100%);
  --grad-warm:   linear-gradient(135deg, #f06292 0%, #ffb347 100%);
  --grad-hero:   linear-gradient(160deg, #f6f4fd 0%, #ede8ff 50%, #fce7f3 100%);

  /* Tipografi */
  --ff-base:     'Inter', ui-sans-serif, system-ui, sans-serif;
  --ff-display:  'Nunito', 'Inter', sans-serif;

  --fs-xs:   0.75rem;   /* 12px */
  --fs-sm:   0.875rem;  /* 14px */
  --fs-base: 1rem;      /* 16px */
  --fs-md:   1.125rem;  /* 18px */
  --fs-lg:   1.25rem;   /* 20px */
  --fs-xl:   1.5rem;    /* 24px */
  --fs-2xl:  1.875rem;  /* 30px */
  --fs-3xl:  2.25rem;   /* 36px */
  --fs-4xl:  3rem;      /* 48px */

  --fw-normal:   400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-extrabold:800;

  --lh-tight:  1.15;
  --lh-snug:   1.35;
  --lh-base:   1.6;
  --lh-loose:  1.8;

  /* Aralıklar */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* Border radius */
  --r-sm:   6px;
  --r-md:   12px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 9999px;

  /* Gölgeler */
  --shadow-sm:  0 1px 3px rgba(30,26,46,0.08);
  --shadow-md:  0 4px 16px rgba(30,26,46,0.1);
  --shadow-lg:  0 12px 40px rgba(30,26,46,0.12);
  --shadow-xl:  0 24px 64px rgba(30,26,46,0.15);
  --shadow-brand: 0 8px 32px rgba(108,79,224,0.25);

  /* Geçişler */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;

  /* Touch target */
  --touch-min: 48px;

  /* Layout */
  --container-sm:  540px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1280px;
  --container-pad: var(--space-4);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--ff-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-normal);
  line-height: var(--lh-base);
  color: var(--clr-text);
  background: var(--clr-bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--clr-brand);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--clr-brand-dark); }

button, [role="button"] {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, select, textarea, button {
  font-family: inherit;
  font-size: inherit;
}

ul, ol { list-style: none; }

/* ── LAYOUT ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

.container--sm { max-width: var(--container-sm); }
.container--md { max-width: var(--container-md); }
.container--lg { max-width: var(--container-lg); }

/* ── HEADER / NAV ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--clr-border);
  padding-block: var(--space-3);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.logo {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.03em;
  min-height: var(--touch-min);
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-menu a {
  display: flex;
  align-items: center;
  height: var(--touch-min);
  padding-inline: var(--space-3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--clr-text-muted);
  transition: all var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--clr-brand);
  background: var(--clr-surface-2);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  height: var(--touch-min);
  padding-inline: var(--space-5);
  background: var(--grad-brand);
  color: #fff !important;
  border-radius: var(--r-full);
  font-weight: var(--fw-semibold) !important;
  font-size: var(--fs-sm) !important;
  box-shadow: var(--shadow-brand);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast) !important;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 40px rgba(108,79,224,0.35) !important;
}

#nav-toggle {
  display: none;
}

@media (max-width: 767px) {
  #nav-toggle {
    display: inline-flex !important;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--clr-surface);
    border-bottom: 1px solid var(--clr-border);
    box-shadow: var(--shadow-lg);
    z-index: 110;
  }
  .nav-menu.nav-menu--open {
    display: flex;
  }
  .nav-menu a {
    width: 100%;
    justify-content: flex-start;
  }
  .nav-menu a.nav-cta,
  .nav-menu a.nav-login {
    justify-content: center;
    text-align: center;
  }
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--grad-hero);
  padding-block: var(--space-16) var(--space-12);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(108,79,224,0.12) 0, transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(240,98,146,0.1)  0, transparent 40%);
  pointer-events: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(108,79,224,0.1);
  border: 1px solid rgba(108,79,224,0.2);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: var(--clr-brand);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-2xl), 8vw, var(--fs-4xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-5);
}

.hero__title span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero__desc {
  font-size: clamp(var(--fs-base), 3vw, var(--fs-md));
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--r-full);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-base);
  transition: transform var(--transition-fast),
              box-shadow var(--transition-fast),
              background var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition-fast);
}
.btn:hover::after { background: rgba(255,255,255,0.1); }
.btn:disabled, .btn.is-Muted {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn--primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(108,79,224,0.35);
  color: #fff;
}

.btn--secondary {
  background: var(--clr-surface);
  color: var(--clr-brand);
  border: 2px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
}
.btn--secondary:hover {
  transform: translateY(-2px);
  border-color: var(--clr-brand);
  box-shadow: var(--shadow-md);
  color: var(--clr-brand);
}

.btn--outline {
  background: transparent;
  color: var(--clr-brand);
  border: 2px solid currentColor;
}
.btn--outline:hover {
  background: var(--clr-brand);
  color: #fff;
}

.btn--sm {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: var(--fs-sm);
}

.btn--lg {
  min-height: 56px;
  padding: var(--space-4) var(--space-8);
  font-size: var(--fs-md);
}

/* ── SECTION ─────────────────────────────────────────────── */
.section {
  padding-block: var(--space-16);
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-brand);
  margin-bottom: var(--space-3);
}

.section__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-xl), 4vw, var(--fs-3xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-snug);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.section__desc {
  font-size: var(--fs-md);
  color: var(--clr-text-muted);
  max-width: 56ch;
  margin-inline: auto;
  line-height: var(--lh-loose);
}

/* ── KART GRİDİ ──────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

/* ── TEST KARTI ──────────────────────────────────────────── */
.test-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.test-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.test-card__banner {
  height: 6px;
  background: var(--grad-brand);
}

.test-card__body {
  padding: var(--space-6);
}

.test-card__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--clr-surface-2);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--clr-brand);
  margin-bottom: var(--space-4);
}

.test-card__title {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-3);
}

.test-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-base);
  margin-bottom: var(--space-5);
}

.test-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--clr-text-light);
  margin-bottom: var(--space-5);
}

.test-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ── İNTERAKTİF TEST (QUIZ) ──────────────────────────────── */
.quiz-widget {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.quiz-widget__header {
  background: var(--grad-brand);
  padding: var(--space-6);
  color: #fff;
  position: relative;
}

.quiz-widget__title {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: var(--space-2);
}

.quiz-widget__subtitle {
  font-size: var(--fs-sm);
  opacity: 0.85;
}

.quiz-progress {
  margin-top: var(--space-4);
}

.quiz-progress__bar-bg {
  height: 6px;
  background: rgba(255,255,255,0.25);
  border-radius: var(--r-full);
  overflow: hidden;
}

.quiz-progress__bar {
  height: 100%;
  background: #fff;
  border-radius: var(--r-full);
  transition: width var(--transition-slow);
  width: 0%;
}

.quiz-progress__label {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  margin-bottom: var(--space-2);
  opacity: 0.85;
}

.quiz-widget__body {
  padding: var(--space-6);
}

.quiz-question {
  display: none;
  animation: fadeSlideIn var(--transition-base) ease both;
}
.quiz-question.active { display: block; }

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

.quiz-question__text {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-5);
  color: var(--clr-text);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--touch-min);
  padding: var(--space-3) var(--space-4);
  background: var(--clr-bg);
  border: 2px solid transparent;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--clr-text);
  position: relative;
  overflow: hidden;
}

.quiz-option::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.quiz-option:hover {
  border-color: var(--clr-brand-light);
  background: var(--clr-surface-2);
}

.quiz-option.selected {
  border-color: var(--clr-brand);
  background: rgba(108,79,224,0.06);
  color: var(--clr-brand);
}

.quiz-option.correct {
  border-color: var(--clr-success);
  background: rgba(34,197,94,0.08);
  color: #166534;
}

.quiz-option.incorrect {
  border-color: var(--clr-danger);
  background: rgba(239,68,68,0.08);
  color: #991b1b;
}

.quiz-option__letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.quiz-option.selected .quiz-option__letter {
  background: var(--clr-brand);
  border-color: var(--clr-brand);
  color: #fff;
}

.quiz-option__text { flex: 1; }

.quiz-widget__footer {
  padding: var(--space-4) var(--space-6) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ── SONUÇ EKRANI ────────────────────────────────────────── */
.quiz-result {
  display: none;
  padding: var(--space-8) var(--space-6);
  text-align: center;
  animation: fadeSlideIn var(--transition-base) ease both;
}
.quiz-result.active { display: block; }

.quiz-result__emoji {
  font-size: 64px;
  margin-bottom: var(--space-4);
  animation: bounceIn 0.6s cubic-bezier(0.34,1.56,0.64,1) both;
}

@keyframes bounceIn {
  from { opacity: 0; transform: scale(0.3); }
  to   { opacity: 1; transform: scale(1);   }
}

.quiz-result__score {
  font-family: var(--ff-display);
  font-size: var(--fs-4xl);
  font-weight: var(--fw-extrabold);
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: var(--space-2);
}

.quiz-result__label {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-3);
}

.quiz-result__desc {
  color: var(--clr-text-muted);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  margin-bottom: var(--space-8);
  max-width: 36ch;
  margin-inline: auto;
}

/* ── FEATURES SECTION ────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.feature-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--space-6);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-4);
}

.feature-card__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-2);
}

.feature-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-base);
}

/* ── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background: var(--grad-brand);
  padding-block: var(--space-10);
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  text-align: center;
}

.stat__number {
  font-family: var(--ff-display);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat__label {
  font-size: var(--fs-sm);
  opacity: 0.85;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  background: #13102a;
  color: rgba(255,255,255,0.7);
  padding-block: var(--space-12) var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6) var(--space-4);
  margin-bottom: var(--space-8);
}

.footer-brand {
  grid-column: 1 / -1;
  text-align: center;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo {
  font-size: var(--fs-lg);
  margin-bottom: var(--space-2);
  justify-content: center;
}

.footer-brand__desc {
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  max-width: 38ch;
  margin-inline: auto;
}

.footer-col {
  text-align: center;
}

.footer-col:last-child {
  grid-column: 1 / -1;
}

.footer-col:last-child .footer-links {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-4);
}

.footer-col__title {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  color: #fff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}

.footer-links a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,0.65);
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}
.footer-links a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
  font-size: var(--fs-xs);
}

/* ── YARDIMCI SINIFLAR ───────────────────────────────────── */
.text-center  { text-align: center; }
.text-brand   { color: var(--clr-brand); }
.text-muted   { color: var(--clr-text-muted); }
.font-display { font-family: var(--ff-display); }
.fw-bold      { font-weight: var(--fw-bold); }

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

/* ── TABLET (≥ 640px) ────────────────────────────────────── */
@media (min-width: 640px) {
  :root { --container-pad: var(--space-6); }

  .card-grid         { grid-template-columns: repeat(2, 1fr); }
  .features-grid     { grid-template-columns: repeat(2, 1fr); }
  .stats-grid        { grid-template-columns: repeat(4, 1fr); }
  .footer-grid       { grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
  .footer-brand      { text-align: left; border-bottom: none; padding-bottom: 0; }
  .footer-brand .logo{ justify-content: flex-start; }
  .footer-brand__desc{ margin-inline: 0; }
  .footer-col        { text-align: left; }
  .footer-col:last-child { grid-column: auto; }
  .footer-col:last-child .footer-links { flex-direction: column; justify-content: flex-start; gap: var(--space-2); }
  .footer-links      { align-items: flex-start; gap: var(--space-2); }
  .footer-links a    { justify-content: flex-start; min-height: 40px; }
}

/* ── DESKTOP (≥ 1024px) ──────────────────────────────────── */
@media (min-width: 1024px) {
  :root { --container-pad: var(--space-8); }

  .card-grid         { grid-template-columns: repeat(3, 1fr); }
  .features-grid     { grid-template-columns: repeat(4, 1fr); }
  .footer-grid       { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-bottom     { flex-direction: row; justify-content: space-between; }
}

/* ── DARK MODE (sistem tercihi) ──────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --clr-bg:       #0f0c1f;
    --clr-surface:  #1a1630;
    --clr-surface-2:#241e3a;
    --clr-border:   rgba(108,79,224,0.2);
    --clr-text:     #f0eeff;
    --clr-text-muted:#a09bbf;
    --clr-text-light:#6b6880;
    --grad-hero:    linear-gradient(160deg, #0f0c1f 0%, #1a1433 50%, #200d2a 100%);
  }
  .site-header {
    background: rgba(15,12,31,0.92);
  }
}

/* ── MOTİON AZALTMA ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── GİRİŞ / ÜYELİK (auth) ───────────────────────────────── */
.nav-menu a.nav-login {
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  padding-inline: var(--space-4);
  color: var(--clr-brand);
  font-weight: var(--fw-semibold);
}
.nav-menu a.nav-login:hover { border-color: var(--clr-brand); background: var(--clr-surface-2); }
.nav-menu a.nav-login--on { background: var(--clr-surface-2); border-color: var(--clr-brand-light); }

.auth { padding-block: var(--space-10, 2.5rem) var(--space-16, 4rem); }
.auth-title { font-family: var(--ff-display); font-size: var(--fs-2xl); font-weight: var(--fw-extrabold); line-height: var(--lh-tight); margin: 0 0 var(--space-2, .5rem); }
.auth-h2 { font-family: var(--ff-display); font-size: var(--fs-lg); font-weight: var(--fw-bold); margin: 0 0 var(--space-4, 1rem); }
.auth-sub { color: var(--clr-text-muted); margin: 0 0 var(--space-6, 1.5rem); }
.auth-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg, 16px);
  padding: var(--space-6, 1.5rem);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-5, 1.25rem);
}
.auth-form { display: grid; gap: var(--space-4, 1rem); }
.auth-field label { display: block; font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-bottom: 6px; }
.auth-field input {
  width: 100%;
  min-height: var(--touch-min, 44px);
  padding: 10px 14px;
  font: inherit;
  color: var(--clr-text);
  background: var(--clr-bg);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.auth-field input:focus { outline: none; border-color: var(--clr-brand); box-shadow: 0 0 0 3px rgba(108,79,224,.18); }
.auth-field input:disabled { opacity: .65; cursor: not-allowed; }
.auth-field small, .auth-note { display: block; color: var(--clr-text-light); font-size: var(--fs-xs); margin-top: 6px; }
.auth-check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-sm); color: var(--clr-text-muted); cursor: pointer; }
.auth-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--clr-brand); flex: none; }
.auth-submit { width: 100%; justify-content: center; }
.auth-alt { text-align: center; color: var(--clr-text-muted); margin: var(--space-5, 1.25rem) 0 0; font-size: var(--fs-sm); }
.auth-alt a { color: var(--clr-brand); font-weight: var(--fw-semibold); }
.auth-alert { padding: 12px 16px; border-radius: var(--r-md); margin-bottom: var(--space-4, 1rem); font-size: var(--fs-sm); border: 1px solid; }
.auth-alert ul { margin: 0; padding-left: 18px; }
.auth-alert--err  { background: rgba(239,68,68,.08);  border-color: rgba(239,68,68,.35);  color: #991b1b; }
.auth-alert--ok   { background: rgba(34,197,94,.09);  border-color: rgba(34,197,94,.4);   color: #166534; }
.auth-alert--warn { background: rgba(245,158,11,.1);  border-color: rgba(245,158,11,.4);  color: #92400e; }
.auth-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.auth-empty { color: var(--clr-text-muted); margin: 0 0 var(--space-4, 1rem); }
.auth-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.auth-results li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: var(--clr-bg); border-radius: var(--r-md); }
.auth-results__title { flex: 1; font-weight: var(--fw-semibold); }
.auth-results__pct { font-weight: var(--fw-extrabold); color: var(--clr-brand); }
.auth-results time { color: var(--clr-text-light); font-size: var(--fs-xs); }
.auth-logout { text-align: center; margin-top: var(--space-6, 1.5rem); }
@media (min-width: 640px) { .auth-card { padding: var(--space-8, 2rem); } }

/* ── TEST SAYFALARI (/testler, /test/slug) ───────────────── */
[hidden] { display: none !important; }

.section--tight { padding-block: var(--space-10) var(--space-12); }
.section--alt   { background: var(--clr-surface-2); }

.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--grad-hero);
  padding-block: var(--space-10) var(--space-12);
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(108,79,224,0.12) 0, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(240,98,146,0.10) 0, transparent 40%);
  pointer-events: none;
}
.page-hero > .container { position: relative; z-index: 1; }
.page-hero__glow {
  position: absolute;
  top: -140px; left: 50%;
  width: 520px; height: 320px;
  transform: translateX(-50%);
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.28;
  pointer-events: none;
  animation: heroGlow 9s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  from { transform: translateX(-58%) scale(1); }
  to   { transform: translateX(-42%) scale(1.12); }
}
.page-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(var(--fs-2xl), 7vw, var(--fs-4xl));
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: -0.04em;
  margin-bottom: var(--space-4);
}
.page-hero__title span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-hero__desc {
  font-size: clamp(var(--fs-base), 3vw, var(--fs-md));
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
  max-width: 56ch;
  margin-inline: auto;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-sm);
  color: var(--clr-text-light);
  margin-bottom: var(--space-6);
}
.breadcrumb a { color: var(--clr-text-muted); font-weight: var(--fw-medium); }
.breadcrumb a:hover { color: var(--clr-brand); }
.breadcrumb [aria-current] {
  color: var(--clr-text);
  font-weight: var(--fw-semibold);
  max-width: 28ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.test-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}
.test-facts li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: color-mix(in srgb, var(--clr-surface) 75%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  box-shadow: var(--shadow-sm);
}

.filter-chips {
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  padding-bottom: var(--space-2);
  margin-bottom: var(--space-6);
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  background: var(--clr-surface);
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-full);
  color: var(--clr-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  transition: background var(--transition-fast), color var(--transition-fast),
              border-color var(--transition-fast), transform var(--transition-fast);
}
.chip:hover { border-color: var(--clr-brand-light); color: var(--clr-brand); transform: translateY(-1px); }
.chip:focus-visible { outline: 3px solid rgba(108,79,224,0.35); outline-offset: 2px; }
.chip.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; box-shadow: var(--shadow-brand); }
.chip__count {
  min-width: 22px;
  padding: 0 6px;
  border-radius: var(--r-full);
  background: var(--clr-surface-2);
  color: var(--clr-brand);
  font-size: var(--fs-xs);
  text-align: center;
}
.chip.is-active .chip__count { background: rgba(255,255,255,0.22); color: #fff; }

.card-grid__item { display: flex; animation: cardIn 0.4s ease both; }
.card-grid__item > * { flex: 1; }
.card-grid__item:nth-child(2) { animation-delay: 60ms; }
.card-grid__item:nth-child(3) { animation-delay: 120ms; }
.card-grid__item:nth-child(n+4) { animation-delay: 180ms; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

.test-intro {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-left: 4px solid var(--clr-brand);
  border-radius: var(--r-md);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-6);
  color: var(--clr-text-muted);
  line-height: var(--lh-loose);
}
.test-quiz { margin-bottom: var(--space-6); scroll-margin-top: 90px; }

.test-disclaimer {
  display: block;
  margin-top: var(--space-8);
  padding: var(--space-4) var(--space-5);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--clr-text-muted);
  line-height: var(--lh-base);
}
.test-disclaimer strong { color: var(--clr-text); }

.empty-state {
  text-align: center;
  padding: var(--space-12) var(--space-4);
  color: var(--clr-text-muted);
}
.empty-state__icon { font-size: 3rem; margin-bottom: var(--space-4); }

@media (min-width: 640px) {
  .page-hero { padding-block: var(--space-12) var(--space-16); }
  .filter-chips { flex-wrap: wrap; justify-content: center; overflow: visible; }
}

/* ── KURUMSAL & YASAL METİN KARTI (prose-card) ───────────── */
.prose-card {
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg, 16px);
  padding: var(--space-6, 1.5rem);
  box-shadow: var(--shadow-md);
  line-height: var(--lh-loose, 1.75);
  color: var(--clr-text);
}
.prose-card h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  margin: var(--space-6, 1.5rem) 0 var(--space-3, 0.75rem);
  color: var(--clr-text);
}
.prose-card h2:first-child { margin-top: 0; }
.prose-card p {
  margin: 0 0 var(--space-4, 1rem);
  color: var(--clr-text-muted);
}
.prose-card ul {
  margin: 0 0 var(--space-4, 1rem);
  padding-left: 1.25rem;
  color: var(--clr-text-muted);
  display: grid;
  gap: var(--space-2, 0.5rem);
}
.prose-card li strong { color: var(--clr-text); }
.prose-card a:not(.btn) {
  color: var(--clr-brand);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-underline-offset: 2px;
}
@media (min-width: 640px) {
  .prose-card { padding: var(--space-8, 2rem) var(--space-10, 2.5rem); }
}

/* ── TEST REHBERİ, PUAN DÜZEYLERİ & SSS (E-E-A-T SEO) ────── */
.test-guide {
  margin-top: var(--space-8, 2rem);
}
.band-list {
  display: grid;
  gap: var(--space-3, 0.75rem);
  margin: var(--space-4, 1rem) 0 var(--space-6, 1.5rem);
}
.band-item {
  padding: var(--space-4, 1rem);
  border-radius: var(--r-md, 12px);
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
}
.band-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2, 0.5rem);
  margin-bottom: var(--space-2, 0.5rem);
}
.band-item__label {
  color: var(--clr-text);
  font-size: var(--fs-base);
}
.band-item__range {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(108, 79, 224, 0.12);
  color: var(--clr-brand);
}
.prose-card .band-item__desc {
  margin: 0;
  font-size: var(--fs-sm);
}

.faq-list {
  display: grid;
  gap: var(--space-3, 0.75rem);
  margin-top: var(--space-4, 1rem);
}
.faq-item {
  border: 1px solid var(--clr-border);
  border-radius: var(--r-md, 12px);
  background: var(--clr-bg);
  overflow: hidden;
}
.faq-item__q {
  padding: var(--space-4, 1rem) var(--space-5, 1.25rem);
  font-weight: var(--fw-semibold);
  color: var(--clr-text);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3, 0.75rem);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--clr-brand);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-item__q::after {
  content: '−';
}
.faq-item__a {
  padding: 0 var(--space-5, 1.25rem) var(--space-4, 1rem);
  border-top: 1px solid var(--clr-border);
  padding-top: var(--space-3, 0.75rem);
}
.prose-card .faq-item__a p {
  margin: 0;
  font-size: var(--fs-sm);
}
