/* ============================================================
   GÜNEFIT v1 — Konsolide arayüz düzeltme katmanı
   En son yüklenen stil (index.html'de mobile-v2.css'ten SONRA).
   Amaç: 8 ayrı CSS katmanının çelişmesinden doğan düzensizliği,
   okunamayan küçük yazıları ve tutarsız buton ölçülerini tek bir
   deterministik katmanla normalize etmek. İşletim mantığına dokunmaz.
   ============================================================ */

:root {
  --v1fix-ink: #102a3e;
  --v1fix-muted: #5b7183;
  --v1fix-line: rgba(16, 42, 62, .10);
  --v1fix-touch: 52px;
  --v1fix-radius: 18px;
}

/* ── 1) Geniş ekranda sağdaki boşluk / taşma görünümünü düzelt ──────
   Cep/mobil tam genişlik kalsın; tablet-desktop okunabilir genişlikte
   ortalanmış sütun görünsün. */
@media (min-width: 1000px) {
  #app,
  .app-container {
    max-width: 820px;
    margin: 0 auto;
  }
  .bottom-nav {
    left: 50% !important;
    transform: translateX(-50%);
    width: min(820px, calc(100% - 28px)) !important;
    max-width: 780px;
    right: auto !important;
  }
}

/* ── 2) Butonlar: tutarlı geniş dokunma alanı ───────────────────────
   `.btn` taban sınıfındaki tüm butonlar (modal ve içerik dahil)
   asgari dokunma yüksekliğine sabitlenir; sm varyantı hariç. */
.btn:not(.btn-sm) {
  min-height: var(--v1fix-touch);
  align-items: center;
  justify-content: center;
  border-radius: var(--v1fix-radius);
  font-size: .86rem;
  font-weight: 750;
  padding-inline: 20px;
}

.workspace-page button:not(.chip):not(.close-btn):not(.mobile-icon-button):not([class*="stepper"]):not(.pain-item):not(.muscle-zone):not(.manual-exercise-card):not(.icon-btn) {
  min-height: var(--v1fix-touch);
  align-items: center;
  justify-content: center;
  border-radius: var(--v1fix-radius);
  font-size: .86rem;
  font-weight: 750;
  padding-inline: 20px;
}

/* Chip / seçim butonları da asgari dokunma alanına sahip olsun */
.workspace-page .chip,
.pt-compact-choice,
.chip-sm {
  min-height: 46px;
  padding-inline: 16px;
  border-radius: 999px;
  font-size: .8rem;
}

/* Hızlı program oluşturucu ana CTA'ları */
.home-today-command button,
.program-create-cta,
.pt-create-button {
  min-height: 58px !important;
  font-weight: 800;
  border-radius: var(--v1fix-radius);
}

/* ── 3) Oluşturucu büyük seçim kartları tutarlı iç boşluk ─────────── */
.program-choice-card {
  min-height: 118px;
  padding: 18px;
  border-radius: var(--v1fix-radius);
}
.program-choice-card-primary {
  min-height: 138px;
}
.program-choice-copy strong { font-size: 1rem; }
.program-choice-copy small { font-size: .78rem; }

/* ── 4) Küçük / okunamayan yazıları yükselt ────────────────────────── */
.nav-item {
  font-size: .72rem;
  letter-spacing: .02em;
  font-weight: 800;
}
.nav-item i { font-size: 1.35rem; }

.workspace-heading span,
.program-hub-kicker {
  font-size: .74rem;
  letter-spacing: .12em;
}
.workspace-heading h2,
.program-hub-heading h2 { font-size: 1.5rem; }
.workspace-heading p,
.program-hub-heading p { font-size: .88rem; line-height: 1.5; }

.mobile-brand-copy strong { font-size: 1.12rem; }
.mobile-brand-copy .app-version { font-size: .7rem; }

/* Öneri / alt açıklama satırları */
.program-choice-card small,
.day-ex-item small,
.exercise-info .badge,
.metric-strip small,
.tile small,
.recommendation-preview { font-size: .78rem; line-height: 1.45; }

/* ── 5) Kart padding/kenarlık tutarlılığı ──────────────────────────── */
.workspace-tile,
.card,
.program-choice-card,
.program-location-card,
.location-preset-card,
.muscle-map-card {
  border-radius: var(--v1fix-radius);
  box-shadow: 0 10px 26px rgba(16, 42, 62, .07);
}

/* ── 6) Mobilde en alt oluşturucu butonunun alt gezinti tarafından
       gizlenmemesi için boşluk bırak ──────────────────────────────── */
.pt-create-button {
  position: static;
  margin-top: 10px;
}

/* ── 7) RTL/lang destekli yazı yığınları için satır yüksekliği ─────── */
p, label, small, li, td { line-height: 1.5; }
