/* ============================================================
   Components — Plise Perde Fiyatları
   Mobil uygulama hissi: kompakt, sticky, dokunmatik
   ============================================================ */

/* ---- Header ---- */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--c-neutral-200);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  contain: layout style;
}
.app-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.app-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-md);
  font-weight: var(--fw-bold);
  color: var(--c-secondary);
  letter-spacing: -0.01em;
}
.app-logo__mark {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-700));
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700;
  box-shadow: var(--shadow-primary);
}
.app-nav {
  display: none;
  align-items: center;
  gap: var(--sp-1);
}
.app-nav a {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-neutral-600);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.app-nav a:hover { color: var(--c-secondary); background: var(--c-neutral-100); }
.app-nav a.is-active { color: var(--c-primary-700); background: var(--c-primary-50); }
.app-header__cta { display: inline-flex; }
@media (min-width: 768px) {
  .app-nav { display: inline-flex; }
}

/* ---- Bottom Nav (mobil uygulama hissi) ---- */
.app-bottombar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--bottombar-h);
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--c-neutral-200);
  z-index: var(--z-bottombar);
  display: flex;
  align-items: stretch;
  padding-bottom: env(safe-area-inset-bottom, 0);
  contain: layout style;
}
.app-bottombar__inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.app-bottombar__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--c-neutral-500);
  font-size: 10px;
  font-weight: var(--fw-medium);
  transition: color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  position: relative;
}
.app-bottombar__item svg { width: 22px; height: 22px; }
.app-bottombar__item.is-active { color: var(--c-primary-700); }
.app-bottombar__item.is-active::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  border-radius: var(--r-full);
  background: var(--c-primary);
}
.app-bottombar__item--whatsapp { color: #25d366; }
.app-bottombar__item--whatsapp svg { width: 20px; height: 20px; }
.app-bottombar__item--whatsapp:active { background: rgba(37, 211, 102, 0.12); }
@media (min-width: 768px) {
  .app-bottombar { display: none; }
}

/* ---- Section ---- */
.section { padding: var(--sp-12) 0; contain: content; }
.section--tight { padding: var(--sp-8) 0; }
.section--alt { background: var(--c-neutral-100); }
.section--secondary { background: var(--c-secondary); color: var(--c-neutral-0); }
.section__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-primary-700);
  background: var(--c-primary-50);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.section__title {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  color: var(--c-secondary-700);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin-top: var(--sp-3);
}
.section__subtitle {
  font-size: var(--fs-md);
  color: var(--c-neutral-600);
  line-height: var(--lh-relaxed);
  margin-top: var(--sp-2);
  max-width: 60ch;
}
@media (min-width: 768px) {
  .section { padding: var(--sp-16) 0; }
  .section__title { font-size: var(--fs-3xl); }
}

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid transparent;
  -webkit-user-select: none;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 16px; height: 16px; }
.btn--primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: var(--shadow-primary);
}
.btn--primary:hover { background: var(--c-primary-600); }
.btn--secondary {
  background: var(--c-secondary);
  color: #fff;
}
.btn--secondary:hover { background: var(--c-secondary-600); }
.btn--outline {
  background: transparent;
  border-color: var(--c-neutral-300);
  color: var(--c-neutral-700);
}
.btn--outline:hover { border-color: var(--c-primary); color: var(--c-primary-700); background: var(--c-primary-50); }
.btn--ghost {
  background: transparent;
  color: var(--c-neutral-700);
}
.btn--ghost:hover { background: var(--c-neutral-100); }
.btn--lg { padding: var(--sp-3) var(--sp-5); font-size: var(--fs-md); }
.btn--sm { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-xs); }
.btn--block { width: 100%; }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--whatsapp:hover { background: #1fb855; }
.btn:disabled, .btn.is-disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }

/* ---- Card ---- */
.card {
  background: var(--c-neutral-0);
  border: 1px solid var(--c-neutral-200);
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  transition: all var(--t-base);
}
.card--hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--c-primary-100); }
.card--flat { border: none; box-shadow: var(--shadow-md); }
.card__title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--c-secondary-700);
}
.card__body { font-size: var(--fs-sm); color: var(--c-neutral-600); margin-top: var(--sp-2); line-height: var(--lh-relaxed); }

/* ---- Badge / Chip ---- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  border-radius: var(--r-full);
  background: var(--c-neutral-100);
  color: var(--c-neutral-700);
}
.chip--primary { background: var(--c-primary-50); color: var(--c-primary-700); }
.chip--secondary { background: var(--c-secondary-50); color: var(--c-secondary-700); }
.chip--success { background: #dcfce7; color: #15803d; }

/* ---- Form ---- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-neutral-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.field__hint { font-size: var(--fs-xs); color: var(--c-neutral-500); }
.input, .select, .textarea {
  width: 100%;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-md);
  color: var(--c-neutral-900);
  background: var(--c-neutral-0);
  border: 1px solid var(--c-neutral-300);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
  -webkit-appearance: none;
  appearance: none;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(131, 189, 129, 0.18);
}
.textarea { min-height: 96px; resize: vertical; }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-8);
}

/* Number stepper — mobil uygulama hissi */
.stepper {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--c-neutral-300);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--c-neutral-0);
}
.stepper__btn {
  width: 40px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c-neutral-50);
  color: var(--c-secondary);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  transition: background var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.stepper__btn:active { background: var(--c-primary-100); }
.stepper__input {
  flex: 1;
  border: none;
  text-align: center;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--c-neutral-900);
  background: transparent;
  min-width: 0;
}
.stepper__input:focus { outline: none; }
.stepper__unit {
  display: flex; align-items: center;
  padding: 0 var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-neutral-500);
  background: var(--c-neutral-50);
  border-left: 1px solid var(--c-neutral-200);
}

/* ---- Segmented control (mobil uygulama hissi) ---- */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--c-neutral-100);
  border: 1px solid var(--c-neutral-200);
  border-radius: var(--r-md);
  padding: 3px;
  gap: 2px;
}
.segmented__item {
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-neutral-600);
  border-radius: calc(var(--r-md) - 3px);
  text-align: center;
  transition: all var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.segmented__item.is-active {
  background: var(--c-neutral-0);
  color: var(--c-primary-700);
  box-shadow: var(--shadow-sm);
  font-weight: var(--fw-semibold);
}

/* ---- Table (gelişmiş) ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--c-neutral-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.table {
  width: 100%;
  font-size: var(--fs-sm);
  border-collapse: collapse;
  min-width: 480px;
}
.table thead th {
  background: linear-gradient(180deg, var(--c-secondary-50), var(--c-secondary-100));
  color: var(--c-secondary-700);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  border-bottom: 2px solid var(--c-secondary-200);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}
.table thead th.is-sortable { cursor: pointer; -webkit-user-select: none; user-select: none; }
.table thead th.is-sortable:hover { background: var(--c-secondary-100); }
.table tbody td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--c-neutral-100);
  color: var(--c-neutral-700);
  white-space: nowrap;
  transition: background-color var(--t-fast);
}
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--c-primary-50); }
.table tbody tr:nth-child(even) { background: var(--c-neutral-50); }
.table tbody tr:nth-child(even):hover { background: var(--c-primary-50); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: var(--fw-medium); }
.table .price { color: var(--c-primary-700); font-weight: var(--fw-bold); font-size: var(--fs-md); }
.table .price--highlight {
  background: var(--c-primary-50);
  border-radius: var(--r-md);
  padding: var(--sp-1) var(--sp-2);
}

/* ---- Tooltip (tablo başlık ve hücre açıklamaları) ---- */
.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px; height: 16px;
  margin-left: var(--sp-1);
  background: var(--c-neutral-300);
  color: #fff;
  border-radius: var(--r-full);
  cursor: help;
  vertical-align: middle;
  flex: none;
}
.tooltip:hover, .tooltip:focus { background: var(--c-secondary); }
.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-neutral-900);
  color: #fff;
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  white-space: normal;
  width: max-content;
  max-width: 280px;
  min-width: 180px;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-fast);
  z-index: var(--z-tooltip, 1000);
  box-shadow: var(--shadow-lg);
  text-transform: none;
  letter-spacing: normal;
}
.tooltip::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--c-neutral-900);
  opacity: 0;
  transition: opacity var(--t-fast);
  z-index: var(--z-tooltip, 1000);
}
.tooltip:hover::after, .tooltip:hover::before,
.tooltip:focus::after, .tooltip:focus::before { opacity: 1; }
/* Mobilde tooltip dokunmatik */
@media (max-width: 767px) {
  .tooltip::after {
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 300px;
    width: 90vw;
  }
  .tooltip::before { display: none; }
  .tooltip.is-touch-open::after { opacity: 1; }
}

/* ---- Badge / chip gelişmiş ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: 2px var(--sp-2);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}
.badge--success { background: #dcfce7; color: #15803d; }
.badge--warning { background: #fef3c7; color: #92400e; }
.badge--danger  { background: #fee2e2; color: #991b1b; }
.badge--info    { background: #dbeafe; color: #1e40af; }
.badge--neutral { background: var(--c-neutral-100); color: var(--c-neutral-600); }
.badge--primary { background: var(--c-primary-50); color: var(--c-primary-700); }
.badge--premium { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #78350f; }

/* ---- Tablo açıklama satırı (foot) ---- */
.table tfoot td {
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-neutral-50);
  color: var(--c-neutral-600);
  font-size: var(--fs-xs);
  border-top: 2px solid var(--c-neutral-200);
  white-space: normal;
  line-height: var(--lh-relaxed);
}

/* ---- Tablo bölüm başlığı (grup) ---- */
.table tbody tr.table-group td {
  background: linear-gradient(90deg, var(--c-primary-50), transparent);
  color: var(--c-primary-700);
  font-weight: var(--fw-bold);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--c-primary-100);
}

/* ---- E-E-A-T bilgi kutusu ---- */
.eeat-box {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: linear-gradient(135deg, var(--c-secondary-50), var(--c-neutral-50));
  border: 1px solid var(--c-secondary-100);
  border-radius: var(--r-md);
}
.eeat-box__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-weight: var(--fw-bold);
  color: var(--c-secondary-700);
  font-size: var(--fs-sm);
}
.eeat-box__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  list-style: none;
  padding: 0;
  font-size: var(--fs-xs);
  color: var(--c-neutral-700);
  line-height: var(--lh-relaxed);
}
.eeat-box__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
}
.eeat-box__list li::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  flex: none;
  margin-top: 1px;
  background-color: var(--c-primary-700);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ---- Tablo üst bilgi barı ---- */
.table-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: var(--c-neutral-50);
  border: 1px solid var(--c-neutral-200);
  border-bottom: none;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  font-size: var(--fs-xs);
  color: var(--c-neutral-600);
}
.table-bar + .table-wrap { border-radius: 0 0 var(--r-lg) var(--r-lg); border-top: none; }
.table-bar__title { font-weight: var(--fw-semibold); color: var(--c-secondary-700); }
.table-bar__meta { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }

/* ---- Tablo: vurgulanan kolon ---- */
.table__col--highlight {
  background: var(--c-primary-50) !important;
  color: var(--c-primary-700) !important;
  border-bottom-color: var(--c-primary-200) !important;
}
.table tbody td:nth-child(2) {
  background: var(--c-primary-50);
}
.table tbody tr:hover td:nth-child(2) {
  background: var(--c-primary-100);
}

/* ---- Price summary ---- */
.price-summary {
  background: linear-gradient(135deg, var(--c-secondary), var(--c-secondary-700));
  color: var(--c-neutral-0);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  box-shadow: var(--shadow-lg);
}
.price-summary__label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-primary-100);
  font-weight: var(--fw-semibold);
}
.price-summary__value {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-top: var(--sp-2);
  font-variant-numeric: tabular-nums;
}
.price-summary__unit { font-size: var(--fs-md); font-weight: var(--fw-regular); color: var(--c-neutral-300); }
.price-summary__row {
  display: flex; justify-content: space-between; align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: var(--fs-sm);
}
.price-summary__row:last-of-type { border-bottom: none; }
.price-summary__row span:first-child { color: var(--c-neutral-300); }
.price-summary__row span:last-child { font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }

/* ---- Accordion (SSS) ---- */
.accordion {
  border: 1px solid var(--c-neutral-200);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--c-neutral-0);
}
.accordion__item { border-bottom: 1px solid var(--c-neutral-100); }
.accordion__item:last-child { border-bottom: none; }
.accordion__trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-4);
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--c-secondary-700);
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.accordion__icon {
  width: 20px; height: 20px;
  flex: none;
  color: var(--c-primary-700);
  transition: transform var(--t-base);
}
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}
.accordion__panel-inner {
  padding: 0 var(--sp-4) var(--sp-4);
  font-size: var(--fs-sm);
  color: var(--c-neutral-600);
  line-height: var(--lh-relaxed);
}

/* ---- Toast ---- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottombar-h) + var(--sp-4));
  transform: translateX(-50%) translateY(20px);
  background: var(--c-neutral-900);
  color: #fff;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-xl);
  z-index: var(--z-toast);
  opacity: 0;
  pointer-events: none;
  transition: all var(--t-spring);
  max-width: 90vw;
  white-space: nowrap;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) {
  .toast { bottom: var(--sp-6); }
}

/* ---- Skeleton (loading) ---- */
.skeleton {
  background: linear-gradient(90deg, var(--c-neutral-100) 25%, var(--c-neutral-200) 37%, var(--c-neutral-100) 63%);
  background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: var(--r-sm);
}
@keyframes skeleton {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---- Reveal animation ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--t-slow), transform var(--t-slow);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Pull / scroll hint ---- */
.scroll-hint {
  position: absolute;
  bottom: var(--sp-4);
  left: 50%;
  transform: translateX(-50%);
  color: var(--c-neutral-500);
  animation: bobble 1.8s ease-in-out infinite;
}
@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ---- Body padding for fixed bars ---- */
body { padding-top: var(--header-h); padding-bottom: var(--bottombar-h); }
@media (min-width: 768px) {
  body { padding-bottom: 0; }
}

/* Smooth scroll */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ============================================================
   MOBİL UYGULAMA DAVRANIŞI
   - Hybrid tab views (mobilde SPA, desktop'ta scroll)
   - Slide transitions
   - Bottom sheet modal
   - Pull-to-refresh
   - Dynamic header title
   - Skeleton loading
   ============================================================ */

/* ---- Mobil tab view (SPA) ---- */
.app-view {
  display: block;
}
@media (max-width: 767px) {
  .app-view {
    display: none;
    animation: viewSlideIn var(--t-slow) cubic-bezier(0.4, 0, 0.2, 1);
  }
  .app-view.is-active {
    display: block;
  }
  .app-view.is-entering-right { animation: viewSlideInRight var(--t-slow) cubic-bezier(0.4, 0, 0.2, 1); }
  .app-view.is-entering-left { animation: viewSlideInLeft var(--t-slow) cubic-bezier(0.4, 0, 0.2, 1); }
}
@keyframes viewSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes viewSlideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes viewSlideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Dynamic header title (mobil) ---- */
.app-header__title {
  display: none;
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--c-secondary-700);
  letter-spacing: -0.01em;
  flex: 1;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 767px) {
  .app-header__title { display: block; }
  .app-logo > span:not(.app-logo__mark) { display: none; }
}

/* ---- Bottom Sheet Modal ---- */
.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}
.sheet-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.sheet {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--c-neutral-0);
  border-radius: var(--r-2xl) var(--r-2xl) 0 0;
  box-shadow: var(--shadow-xl);
  z-index: calc(var(--z-modal) + 1);
  transform: translateY(100%);
  transition: transform var(--t-slow) cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 85vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.sheet.is-visible { transform: translateY(0); }
.sheet__handle {
  width: 40px; height: 4px;
  background: var(--c-neutral-300);
  border-radius: var(--r-full);
  margin: var(--sp-2) auto var(--sp-3);
  flex: none;
}
.sheet__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--sp-4) var(--sp-3);
  border-bottom: 1px solid var(--c-neutral-100);
}
.sheet__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--c-secondary-700);
}
.sheet__close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  color: var(--c-neutral-500);
  background: var(--c-neutral-100);
  transition: all var(--t-fast);
}
.sheet__close:active { transform: scale(0.9); background: var(--c-neutral-200); }
.sheet__body { padding: var(--sp-4); }
.sheet__footer {
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--c-neutral-100);
  display: flex; flex-direction: column; gap: var(--sp-2);
  position: sticky; bottom: 0; background: var(--c-neutral-0);
}

/* ---- Pull-to-refresh ---- */
.ptr {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  height: 0;
  display: flex; align-items: flex-end; justify-content: center;
  overflow: visible;
  z-index: var(--z-sticky);
  pointer-events: none;
  transition: height var(--t-base);
}
.ptr__indicator {
  width: 36px; height: 36px;
  background: var(--c-neutral-0);
  border-radius: var(--r-full);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--c-primary-700);
  margin-bottom: -50px;
  opacity: 0;
  transition: all var(--t-base);
}
.ptr.is-pulling { height: var(--ptr-h, 0px); }
.ptr.is-pulling .ptr__indicator {
  margin-bottom: 8px;
  opacity: 1;
  transform: rotate(var(--ptr-rot, 0deg));
}
.ptr.is-refreshing { height: 50px; }
.ptr.is-refreshing .ptr__indicator {
  margin-bottom: 8px;
  opacity: 1;
  animation: ptrSpin 0.8s linear infinite;
}
@keyframes ptrSpin {
  to { transform: rotate(360deg); }
}

/* ---- Skeleton block ---- */
.skel-line {
  height: 12px;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-2);
}
.skel-line--w30 { width: 30%; }
.skel-line--w50 { width: 50%; }
.skel-line--w70 { width: 70%; }
.skel-line--w90 { width: 90%; }
.skel-line--lg { height: 20px; }
.skel-card {
  border-radius: var(--r-lg);
  padding: var(--sp-4);
  border: 1px solid var(--c-neutral-100);
}
.skel-grid {
  display: grid;
  gap: var(--sp-3);
}

/* ---- Haptic ripple (buton tıklama görsel geri bildirim) ---- */
.ripple {
  position: relative;
  overflow: hidden;
}
.ripple::after {
  content: "";
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.3s;
  pointer-events: none;
}
.ripple.is-pressed::after { opacity: 0.12; transition: opacity 0.05s; }

/* ---- Swipe hint (mobil) ---- */
.swipe-hint {
  position: fixed;
  bottom: calc(var(--bottombar-h) + var(--sp-2));
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-neutral-900);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
  white-space: nowrap;
}
.swipe-hint.is-visible { opacity: 1; }
@media (min-width: 768px) {
  .swipe-hint, .ptr { display: none; }
}

/* ---- Mobilde section padding azalt ---- */
@media (max-width: 767px) {
  .section { padding: var(--sp-6) 0; }
  .section__title { font-size: var(--fs-2xl); }
}

/* ---- App state: loading ---- */
.app-loading { overflow: hidden; }
.app-loading .app-view { opacity: 0.3; pointer-events: none; }

/* ---- Text link (inline SEO link) ---- */
.text-link {
  color: var(--c-primary-700);
  font-weight: var(--fw-semibold);
  text-decoration: underline;
  text-decoration-color: var(--c-primary-200);
  text-underline-offset: 2px;
  transition: text-decoration-color var(--t-fast);
}
.text-link:hover { text-decoration-color: var(--c-primary-700); }

/* ===================== Yardımcı class'lar ===================== */
.relaxed { line-height: var(--lh-relaxed); }

/* ---- Hero ---- */
.section--hero {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.92) 100%),
    url("../img/hero-bg.webp") center/cover no-repeat;
}
.section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(248,250,252,0.6) 0%, rgba(248,250,252,0.85) 100%);
  z-index: 0;
}
.section--hero > * { position: relative; z-index: 1; }
.hero__title    { font-size: var(--fs-3xl); max-width: 18ch; }
.hero__subtitle { margin-left: auto; margin-right: auto; }
.hero__trust    { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--c-neutral-600); }
.hero__trust-item { display: flex; align-items: center; gap: var(--sp-1); }
.hero__chips    { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin-top: var(--sp-4); }

/* ---- Galeri ---- */
.gallery { gap: var(--sp-3); }
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--c-neutral-100);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--t-fast), transform var(--t-fast);
}
.gallery__item:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.gallery__link { display: block; width: 100%; height: 100%; }
.gallery__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-base, 0.3s);
}
.gallery__item:hover .gallery__img { transform: scale(1.04); }
.gallery__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--sp-3) var(--sp-2) var(--sp-2);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: #fff;
  font-size: var(--fs-sm);
  text-align: center;
  opacity: 0;
  transition: opacity var(--t-fast);
}
.gallery__item:hover .gallery__caption,
.gallery__item:focus-within .gallery__caption { opacity: 1; }
.gallery__caption-title { font-weight: var(--fw-semibold); }
@media (max-width: 767px) {
  .gallery__caption { opacity: 1; }
  .gallery__item:hover .gallery__img { transform: none; }
}

/* ---- Icon badge ---- */
.icon-badge { display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-md); flex: none; }
.icon-badge--primary   { background: var(--c-primary-50); color: var(--c-primary-700); }
.icon-badge--secondary { background: var(--c-secondary-50); color: var(--c-secondary-700); }
.icon-badge--lg        { width: 40px; height: 40px; }
.icon-badge:not(.icon-badge--lg) { width: 32px; height: 32px; background: var(--c-primary); color: #fff; }
.icon-badge--secondary:not(.icon-badge--lg) { background: var(--c-secondary); }

/* ---- Card varyasyonları ---- */
.card--info    { background: var(--c-primary-50); border-color: var(--c-primary-100); }
.card--formula { background: var(--c-secondary-50); border-color: var(--c-secondary-100); }
.card--warning { background: rgba(217, 119, 6, 0.08); border-color: rgba(217, 119, 6, 0.25); }
.card--muted   { background: var(--c-neutral-50); }
.card__icon    { flex: none; margin-top: 2px; }

/* ---- Fabric option (hesaplama kumaş kartı) ---- */
.fabric-option {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-3); border: 1px solid var(--c-neutral-200); border-radius: var(--r-md);
  cursor: pointer; transition: background-color var(--t-fast), border-color var(--t-fast);
}

/* ---- Color option ---- */
.color-option {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: var(--sp-2); border: 1px solid var(--c-neutral-200); border-radius: var(--r-md);
  transition: border-color var(--t-fast); cursor: pointer;
}
.color-swatch {
  width: 18px; height: 18px; border-radius: var(--r-full);
  border: 1px solid var(--c-neutral-300); display: inline-block;
  background: var(--swatch-color, var(--c-neutral-200));
}

/* ---- Progress bar (modeller) ---- */
.progress {
  height: 6px; background: var(--c-neutral-200);
  border-radius: var(--r-full); overflow: hidden;
}
.progress__bar {
  height: 100%; background: linear-gradient(90deg, var(--c-primary), var(--c-primary-700));
}

/* ---- Pros list (modeller avantajlar) ---- */
.pros-list { display: flex; flex-direction: column; gap: var(--sp-1); list-style: none; padding: 0; font-size: var(--fs-xs); color: var(--c-neutral-600); }
.pros-list__icon { margin-top: 3px; flex: none; }

/* ---- Step badge (rehber) ---- */
.step-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--r-md); font-weight: 700; color: #fff;
}
.step-badge--primary   { background: var(--c-primary); }
.step-badge--secondary { background: var(--c-secondary); }

/* ---- Step list (rehber ölçü adımları) ---- */
.step-list { display: flex; flex-direction: column; gap: var(--sp-3); list-style: none; padding: 0; font-size: var(--fs-sm); color: var(--c-neutral-700); line-height: var(--lh-relaxed); }
.step-list__item { display: flex; align-items: flex-start; gap: var(--sp-2); flex-wrap: wrap; }
.step-list__example {
  display: block;
  width: 100%;
  padding: var(--sp-1) var(--sp-2);
  background: var(--c-primary-50);
  border-radius: var(--r-sm);
  font-style: italic;
  margin-left: var(--sp-4);
}

/* ---- Card expert note (neden.php) ---- */
.card__expert-note {
  border-top: 1px dashed var(--c-primary-100);
}

/* ---- Mount type (rehber montaj tipleri) ---- */
.mount-type {
  display: flex; align-items: flex-start; gap: var(--sp-2);
  padding: var(--sp-3); border: 1px solid var(--c-neutral-200); border-radius: var(--r-md);
}
.mount-type__icon { flex: none; margin-top: 2px; }

/* ---- Contact card ---- */
.contact-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--r-md); flex: none; }
.contact-card__icon--primary   { background: var(--c-primary-50); color: var(--c-primary-700); }
.contact-card__icon--secondary { background: var(--c-secondary-50); color: var(--c-secondary-700); }
.contact-card__icon--whatsapp  { background: #dcfce7; color: #15803d; }
.contact-card__icon--neutral   { background: var(--c-neutral-100); color: var(--c-neutral-700); }

/* ---- Calc notes (hesaplama öncesi) ---- */
.calc-notes { display: flex; flex-direction: column; gap: var(--sp-1); list-style: disc; padding-left: 1.25rem; font-size: var(--fs-xs); color: var(--c-neutral-600); }

/* ---- Footer ---- */
.app-footer { padding: var(--sp-8) 0; }
.app-footer__copy { color: var(--c-neutral-300); }

/* ---- Map embed ---- */
.map-embed {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-neutral-200);
  box-shadow: var(--shadow-sm);
}
.map-embed iframe { display: block; width: 100%; height: 450px; }

/* ---- Expert badge (E-E-A-T) ---- */
.expert-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: linear-gradient(135deg, var(--c-primary-50), var(--c-neutral-50));
  border: 1px solid var(--c-primary-100);
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  color: var(--c-neutral-700);
  margin-top: var(--sp-4);
}
.expert-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--c-primary);
  color: #fff;
  border-radius: var(--r-full);
  flex: none;
}
.expert-badge__text { font-weight: var(--fw-medium); }
.expert-badge time { color: var(--c-primary-700); font-weight: var(--fw-semibold); }

/* ---- AI summary (gizli, AI botlar için) ---- */
.ai-summary { display: none !important; }
