/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: var(--text-xs);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
  min-height: 44px;
}
.btn:active { transform: scale(0.97); }
.btn.primary {
  background: linear-gradient(135deg, var(--color-brand-yellow), var(--color-brand-orange));
  color: var(--color-ink);
  box-shadow: var(--shadow-sm);
}
.btn.primary:hover { box-shadow: var(--shadow-md); }
.btn.ghost {
  background: transparent;
  border-color: var(--color-border-strong);
  color: var(--color-ink);
}
.btn.ghost:hover { background: var(--color-surface-alt); }
.btn.on-dark { color: var(--color-on-navy); border-color: rgba(253,246,227,.35); }
.btn.on-dark:hover { background: rgba(253,246,227,.1); }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: var(--space-3);
  z-index: 100;
  margin: var(--space-3) auto 0;
  max-width: var(--container-max);
  padding: 0 var(--space-5);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  background: var(--color-nav-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: var(--space-3) var(--space-2) var(--space-3) var(--space-5);
  box-shadow: var(--shadow-sm);
  max-width: 100%;
}
/* Logo, dil/tema butonları, CTA ve hamburger asla küçülmez (flex-shrink:0) —
   dar alanlarda esneyen tek şey nav-links, gerekirse içeride yatay scroll olur. */
.site-nav-brand { display: flex; align-items: center; font-weight: 800; font-family: var(--font-display); flex-shrink: 0; }
.site-nav-brand img { height: 72px; width: auto; flex-shrink: 0; display: block; }
.site-nav-links {
  display: flex; align-items: center; justify-content: center; gap: var(--space-1); list-style: none; margin: 0; padding: 0;
  flex: 1 1 auto; min-width: 0;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
}
.site-nav-links::-webkit-scrollbar { display: none; }
.site-nav-links a {
  display: inline-block;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ink-soft);
  white-space: nowrap;
  min-height: 44px;
  line-height: 24px;
  flex-shrink: 0;
}
.site-nav-links a:hover { background: var(--color-surface-alt); color: var(--color-ink); }
.site-nav-links a[aria-current="page"] { background: var(--color-chip-active-bg); color: var(--color-chip-active-text); }
.site-nav-cta { flex-shrink: 0; margin-left: var(--space-2); }
.nav-toggle {
  display: none;
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .site-nav-brand img { height: 52px; }
  .site-nav-links { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-3); box-shadow: var(--shadow-md); overflow-x: visible; }
  .site-nav-links.open { display: flex; }
  .site-nav-links a { text-align: center; }
  .nav-toggle { display: inline-flex; }
  .site-nav-cta { display: none; }
}

/* ---------- Cards / Panels ---------- */
.panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card .icon {
  --icon-accent: 254,192,26;
  position: relative;
  width: 56px; height: 56px;
  border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--color-brand-yellow), var(--color-brand-orange));
  color: var(--color-ink);
  margin-bottom: var(--space-3);
  box-shadow: 0 10px 22px -8px rgba(var(--icon-accent),.55), var(--shadow-sm);
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.feature-card:hover .icon { transform: scale(1.08) rotate(-4deg); box-shadow: 0 14px 30px -8px rgba(var(--icon-accent),.7), var(--shadow-md); }
.feature-card .icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2; }
/* Hover'da halka (halo) pulse — eski sitedeki dönen ışık halkası hissini yansıtır */
.feature-card .icon::after {
  content: ""; position: absolute; inset: -6px; border-radius: inherit;
  border: 2px solid rgba(var(--icon-accent),.9);
  opacity: 0; transform: scale(.82);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  pointer-events: none;
}
.feature-card:hover .icon::after { opacity: .55; transform: scale(1.18); }
/* Kart gruplarında ikon rengi 3'lü döngüyle değişir — eski sitedeki çok renkli node hissi */
.card-grid .feature-card:nth-child(3n+2) .icon { --icon-accent: 252,176,63; background: linear-gradient(135deg, var(--color-brand-orange), var(--color-brand-coral)); }
.card-grid .feature-card:nth-child(3n+3) .icon { --icon-accent: 255,122,69; background: linear-gradient(135deg, var(--color-brand-coral), var(--color-brand-yellow)); }
.feature-card h3 { margin-bottom: var(--space-2); }
.feature-card p { color: var(--color-ink-soft); margin: 0; font-size: var(--text-xs); }

/* ---------- Badge / Chip ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: var(--color-surface-alt);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-ink-soft);
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-brand-coral); }

/* ---------- Live stock badge ---------- */
.stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-height: 30px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #08722f 0%, var(--color-success) 55%, #68c43f 100%);
  box-shadow: 0 8px 22px rgba(47, 158, 68, .32), inset 0 1px 0 rgba(255, 255, 255, .28);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .065em;
  text-transform: uppercase;
  white-space: nowrap;
}
.stock-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 50%;
  background: #baff78;
  box-shadow: 0 0 0 0 rgba(186, 255, 120, .62);
  animation: stock-pulse 2s ease-out infinite;
}
.stock-badge[hidden] { display: none; }
@keyframes stock-pulse {
  0%, 45% { box-shadow: 0 0 0 0 rgba(186, 255, 120, .62); }
  75%, 100% { box-shadow: 0 0 0 7px rgba(186, 255, 120, 0); }
}

.chip {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: inline-block;
  border: 1px solid rgba(36,22,6,.12);
  box-shadow: var(--shadow-sm);
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}
.tab {
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  font-weight: 700;
  font-size: var(--text-xs);
  cursor: pointer;
  min-height: 44px;
}
.tab.active {
  background: var(--color-chip-active-bg);
  color: var(--color-chip-active-text);
  border-color: var(--color-chip-active-bg);
}

/* ---------- Model cards ---------- */
.model-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.model-card .model-img { position: relative; aspect-ratio: 4/3; background: var(--color-surface-alt); overflow: hidden; }
.model-card .model-img img { width: 100%; height: 100%; object-fit: cover; }
.model-card .model-body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); flex: 1; }
.model-card .stats { display: flex; gap: var(--space-4); }
.model-card .stat b { display: block; font-size: var(--text-md); font-variant-numeric: tabular-nums; }
.model-card .stat small { color: var(--color-ink-faint); font-size: 12px; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; }
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}
.table th, .table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  font-variant-numeric: tabular-nums;
}
.table th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-ink-faint);
  font-weight: 700;
}
.table tr:hover td { background: var(--color-surface-alt); }
.table tr.is-in-stock td:first-child { box-shadow: inset 3px 0 0 var(--color-success); }
.model-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
  .stock-badge::before { animation: none; }
}

/* ---------- Compare slider (before/after) ---------- */
.compare-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  --pos: 55%;
}
.compare-wrap img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.compare-wrap .after-img { clip-path: inset(0 0 0 var(--pos)); }
.compare-wrap .compare-divider {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 3px; background: var(--color-surface); transform: translateX(-50%);
  box-shadow: var(--shadow-md);
}
.compare-wrap .compare-label {
  position: absolute; top: 12px; padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 800; letter-spacing: .05em;
  background: rgba(36,22,6,.65); color: var(--color-on-navy);
}
.compare-wrap .compare-label.before { left: 12px; }
.compare-wrap .compare-label.after { right: 12px; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
}
.config-dev-notice { display: none; }
.compare-wrap.is-dev .after-img,
.compare-wrap.is-dev .compare-label,
.compare-wrap.is-dev .compare-divider,
.compare-wrap.is-dev .compare-range { display: none; }
.compare-wrap.is-dev {
  display: block;
  background: radial-gradient(circle at 50% 45%, #fff 0%, var(--color-surface-alt) 76%);
  border: 1px solid var(--color-border);
}
.compare-wrap.is-dev::after {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 52%, rgba(5, 20, 43, .58) 100%);
  pointer-events: none;
}
.compare-wrap.is-dev .before-img {
  display: block;
  object-fit: contain;
  object-position: 50% 50%;
}
.compare-wrap.is-dev .config-dev-notice {
  display: block;
  position: absolute; left: 50%; bottom: 20px; z-index: 2;
  transform: translateX(-50%);
  padding: 9px 18px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: var(--radius-pill);
  background: rgba(5, 20, 43, .78);
  box-shadow: var(--shadow-md);
  color: var(--color-on-navy);
  font-size: 12px; font-weight: 900; letter-spacing: .14em;
  line-height: 1; text-align: center; text-transform: uppercase;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

/* ---------- Carousel (references) ---------- */
.carousel-track-wrap { overflow: hidden; position: relative; }
/* js/drag-carousel.js ile kullanılır: fare/dokunuşla sürüklenebilir carousel'ler için. */
.draggable-carousel { cursor: grab; touch-action: pan-y; user-select: none; }
.draggable-carousel.is-dragging { cursor: grabbing; }
.draggable-carousel .carousel-track { animation: none; }
.draggable-carousel img { -webkit-user-drag: none; }
.carousel-track {
  display: flex;
  gap: var(--space-5);
  width: max-content;
  animation: carousel-scroll 60s linear infinite;
}
.carousel-track:hover { animation-play-state: paused; }
@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.ref-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
  width: 140px; flex-shrink: 0;
  padding: var(--space-4);
  background: var(--color-logo-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}
.ref-card img { height: 40px; width: auto; object-fit: contain; }
.ref-card span { font-size: 12px; text-align: center; color: var(--color-ink-soft); }

/* ---------- Footer ----------
   Sayfa yüzeyiyle aynı semantic token'ları kullanır (--color-surface-alt / --color-ink*)
   böylece gece/gündüz temasına göre gerçekten renk değiştirir (eskiden sabit lacivertti). */
.site-footer {
  background: var(--color-surface-alt);
  color: var(--color-ink);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-7);
  padding: var(--space-6) 0 var(--space-4);
}
.site-footer h4 { color: var(--color-ink); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--space-2); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-5); align-items: end; }
.footer-list { display: flex; flex-direction: column; gap: var(--space-2); }
.footer-list a, .contact-line { color: var(--color-ink-soft); font-size: var(--text-xs); display: inline-flex; align-items: center; gap: var(--space-2); }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.contact-icon svg { width: 100%; height: 100%; display: block; }
.footer-list a:hover { color: var(--color-ink); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); padding-top: var(--space-3); border-top: 1px solid var(--color-border); font-size: 12px; color: var(--color-ink-faint); }
.map-box { border-radius: var(--radius-md); overflow: hidden; margin-top: var(--space-3); }
.map-box iframe { width: 100%; height: 120px; border: 0; }
.footer-brand { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-2); }
.footer-brand img { height: 42px; width: auto; display: block; }
/* Knotix logosu sabit koyu lacivert+cam göbeği renginde — footer koyu temada da
   okunaklı kalsın diye her zaman açık bir rozet zemini üzerinde durur. */
.knotix-badge { background: #fff; border-radius: var(--radius-sm); padding: 5px 12px; display: inline-block; height: 32px; }
/* Tanıtım metni İletişim listesiyle aynı boy/renk — footer içinde tutarlı hiyerarşi. */
.footer-card-brand p { font-size: var(--text-xs); color: var(--color-ink-soft); margin: 0; }
/* QR her zaman beyaz zemin üzerinde durur (taranabilirlik teması ne olursa olsun sabit kalmalı). */
.footer-qr { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.footer-qr img { width: 56px; height: 56px; background: #fff; border-radius: var(--radius-sm); padding: 4px; flex-shrink: 0; }
.footer-qr span { font-size: var(--text-xs); color: var(--color-ink-soft); max-width: 22ch; }
/* Footer marka kartı: logo+tanıtım solda, harita sağda, dikey ortalı (simetrik) —
   footer'ı dikey değil yatay büyütür, toplam footer yüksekliği kısalır. */
.footer-card-split { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.footer-card-brand { flex: 1 1 170px; min-width: 160px; }
.footer-card-map { flex: 0 0 220px; width: 220px; }
.footer-card-map .map-box { aspect-ratio: 1 / 1; margin-top: 0; }
.footer-card-map .map-box iframe { height: 100%; }
.footer-card-map .map-link { display: block; margin-top: var(--space-2); font-size: 11px; }
.map-link { display: inline-block; margin-top: var(--space-3); font-size: 12px; font-weight: 700; color: var(--color-brand-coral); }
.map-link:hover { text-decoration: underline; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-4); }
.field-label { display: flex; flex-direction: column; gap: var(--space-2); font-size: var(--text-xs); font-weight: 600; }
.field-label.full { grid-column: 1 / -1; }
.field-label input, .field-label select, .field-label textarea {
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--color-surface);
  min-height: 44px;
}
.field-label textarea { min-height: 120px; resize: vertical; }
.field-label input:focus, .field-label select:focus, .field-label textarea:focus {
  outline: 2px solid var(--color-brand-coral); outline-offset: 1px;
}
.field-hint { font-size: 12px; color: var(--color-ink-faint); font-weight: 400; }

/* ---------- Kid blob cluster ----------
   Küçük, organik (blob) maskeli çocuk fotoğraflarından oluşan dekoratif küme.
   Anasayfa hero'sunda ve franchise sayfasında kullanılır; salt dekor (aria-hidden),
   tıklamayı engellemez. */
.kid-blob-cluster {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.kid-blob {
  position: absolute;
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(15, 23, 42, .22);
  animation: kidBlobFloat var(--blob-dur, 7s) ease-in-out infinite;
}
.kid-blob img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kid-blob:nth-child(1) { border-radius: 62% 38% 55% 45% / 55% 45% 55% 45%; }
.kid-blob:nth-child(2) { border-radius: 45% 55% 40% 60% / 60% 40% 62% 38%; }
.kid-blob:nth-child(3) { border-radius: 58% 42% 62% 38% / 40% 62% 38% 60%; }
.kid-blob:nth-child(4) { border-radius: 40% 60% 45% 55% / 62% 38% 55% 45%; }
.kid-blob:nth-child(5) { border-radius: 55% 45% 58% 42% / 45% 58% 42% 55%; }

@keyframes kidBlobFloat {
  0%, 100% { transform: translateY(0) rotate(var(--blob-rot, 0deg)); }
  50% { transform: translateY(-10px) rotate(calc(var(--blob-rot, 0deg) * -1)); }
}

@media (prefers-reduced-motion: reduce) {
  .kid-blob { animation: none; }
}
@media (max-width: 900px) {
  .kid-blob-cluster { display: none; }
}
