/* ============================================================
   main.css - Global Stiller & Tasarım Sistemi
   40 Günlük Hacim Kampı
   ============================================================ */

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

/* ── CSS Değişkenleri ─────────────────────────────────────── */
:root {
  /* Renkler - Light Tema */
  --bg-primary:    #F5F5F7;
  --bg-secondary:  #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-elevated:   #EFEFEF;
  --bg-input:      #E8E8ED;

  --accent-orange: #FF6B00;
  --accent-orange-dim: rgba(255, 107, 0, 0.12);
  --accent-orange-glow: rgba(255, 107, 0, 0.25);

  --accent-green:  #00C853;
  --accent-green-dim: rgba(0, 200, 83, 0.1);
  --accent-green-glow: rgba(0, 200, 83, 0.25);

  --accent-yellow: #FF8F00;
  --accent-blue:   #2979FF;
  --accent-red:    #F44336;
  --accent-purple: #AB47BC;

  --text-primary:   #1A1A1A;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --text-disabled:  #BBBBBB;

  --border-color:   rgba(0,0,0,0.08);
  --border-accent:  rgba(255, 107, 0, 0.25);

  /* Tipografi */
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Roboto', sans-serif;

  /* Boyutlar */
  --nav-height:    64px;
  --header-height: 60px;
  --border-radius: 16px;
  --border-radius-sm: 10px;
  --border-radius-lg: 24px;

  /* Gölgeler */
  --shadow-card: 0 2px 16px rgba(0,0,0,0.07);
  --shadow-glow-orange: 0 0 16px rgba(255, 107, 0, 0.2);
  --shadow-glow-green:  0 0 16px rgba(0, 200, 83, 0.2);

  /* Geçişler */
  --transition-fast:   0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow:   0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Boşluklar */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-body);
  color: inherit;
}

input, textarea {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px 16px;
  font-size: 1rem;
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast);
}

input:focus {
  border-color: var(--accent-orange);
}

/* ── Layout ───────────────────────────────────────────────── */
.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.page-content {
  flex: 1;
  padding: var(--space-md);
  padding-bottom: calc(var(--nav-height) + var(--space-lg));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}

/* ── App Header ───────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-md);
}

.app-header__title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.app-header__title span {
  color: var(--accent-orange);
}

.app-header__back {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  font-size: 1.2rem;
  transition: background var(--transition-fast);
}

.app-header__back:active {
  background: var(--bg-input);
}

.app-header__action {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  font-size: 1.1rem;
}

/* ── Bottom Navigation ────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 200;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 20px;
  border-radius: var(--border-radius-sm);
  transition: all var(--transition-fast);
  flex: 1;
}

.nav-item__icon {
  font-size: 1.4rem;
  line-height: 1;
}

.nav-item__label {
  font-size: 0.65rem;
  font-weight: 600;
  font-family: var(--font-heading);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition-fast);
}

.nav-item.active .nav-item__label {
  color: var(--accent-orange);
}

.nav-item.active .nav-item__icon {
  filter: drop-shadow(0 0 6px var(--accent-orange));
}

/* ── Kartlar ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  padding: var(--space-md);
  box-shadow: var(--shadow-card);
}

.card--elevated {
  background: var(--bg-elevated);
}

.card--accent {
  border-color: var(--border-accent);
  background: linear-gradient(135deg, var(--bg-card) 0%, rgba(255,107,0,0.04) 100%);
}

.card--glow {
  box-shadow: var(--shadow-card), var(--shadow-glow-orange);
}

/* ── İlerleme Çubuğu ──────────────────────────────────────── */
.progress-bar-wrapper {
  background: var(--bg-elevated);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-orange), #FF8C00);
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: #FF8C00;
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-orange);
}

/* ── Ring Chart (Halka Grafik) ────────────────────────────── */
.ring-chart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ring-chart svg {
  transform: rotate(-90deg);
}

.ring-chart__circle-bg {
  fill: none;
  stroke: var(--bg-elevated);
}

.ring-chart__circle {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ring-chart__center {
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ring-chart__value {
  font-family: var(--font-heading);
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.ring-chart__label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* ── Badge ────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: 0.3px;
}

.badge--orange {
  background: var(--accent-orange-dim);
  color: var(--accent-orange);
  border: 1px solid rgba(255,107,0,0.2);
}

.badge--green {
  background: var(--accent-green-dim);
  color: var(--accent-green);
  border: 1px solid rgba(0,230,118,0.2);
}

.badge--yellow {
  background: rgba(255,214,0,0.12);
  color: var(--accent-yellow);
  border: 1px solid rgba(255,214,0,0.2);
}

.badge--gray {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.badge--red {
  background: rgba(255,82,82,0.12);
  color: var(--accent-red);
}

/* ── Butonlar ─────────────────────────────────────────────── */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--border-radius);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  min-height: 52px;
}

.btn--primary {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 4px 20px rgba(255,107,0,0.35);
}

.btn--primary:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(255,107,0,0.25);
}

.btn--secondary {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn--secondary:active {
  background: var(--bg-input);
}

.btn--success {
  background: var(--accent-green);
  color: #000;
  box-shadow: 0 4px 20px rgba(0,230,118,0.3);
}

.btn--full {
  width: 100%;
}

.btn--sm {
  padding: 8px 16px;
  min-height: 38px;
  font-size: 0.82rem;
  border-radius: var(--border-radius-sm);
}

/* ── Checkbox (özel) ──────────────────────────────────────── */
.check-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  flex-shrink: 0;
  font-size: 1rem;
}

.check-btn.checked {
  background: var(--accent-green);
  border-color: var(--accent-green);
  box-shadow: 0 0 12px rgba(0,230,118,0.4);
}

.check-btn.checked::after {
  content: '✓';
  color: #000;
  font-weight: 900;
  font-size: 1rem;
}

/* ── Tab Bar ──────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  background: var(--bg-elevated);
  border-radius: var(--border-radius);
  padding: 4px;
  gap: 4px;
  margin-bottom: var(--space-md);
}

.tab-btn {
  flex: 1;
  padding: 11px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  text-align: center;
}

.tab-btn.active {
  background: var(--accent-orange);
  color: #fff;
  box-shadow: 0 2px 12px rgba(255,107,0,0.3);
}

/* ── Accordion ────────────────────────────────────────────── */
.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.accordion-header:active {
  background: var(--bg-elevated);
}

.accordion-arrow {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: transform var(--transition-normal);
}

.accordion-header.open .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body.open {
  max-height: 800px;
}

/* ── Su Takibi ────────────────────────────────────────────── */
.water-tracker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: var(--space-sm) 0;
}

.water-glass {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.water-glass.filled {
  background: rgba(68, 138, 255, 0.15);
  border-color: var(--accent-blue);
  box-shadow: 0 0 8px rgba(68,138,255,0.25);
}

.water-glass.filled::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: rgba(68,138,255,0.2);
  border-radius: 0 0 6px 6px;
}

/* ── Streak Göstergesi ────────────────────────────────────── */
.streak-display {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.streak-number {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  color: var(--accent-orange);
  text-shadow: var(--shadow-glow-orange);
}

.streak-fire {
  font-size: 1.8rem;
  animation: fireFlicker 1.5s ease-in-out infinite alternate;
}

/* ── Motivasyon Kartı ─────────────────────────────────────── */
.quote-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(255,107,0,0.05));
  border: 1px solid var(--border-accent);
  border-radius: var(--border-radius);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
}

.quote-card::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 10px;
  font-size: 5rem;
  font-family: var(--font-heading);
  color: var(--accent-orange);
  opacity: 0.15;
  line-height: 1;
}

.quote-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* ── Makro Bar ────────────────────────────────────────────── */
.macro-bar-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.macro-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.macro-label {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-heading);
  width: 30px;
  color: var(--text-secondary);
}

.macro-track {
  flex: 1;
  height: 8px;
  background: var(--bg-elevated);
  border-radius: 999px;
  overflow: hidden;
}

.macro-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}

.macro-fill--protein { background: var(--accent-orange); }
.macro-fill--carb    { background: var(--accent-blue); }
.macro-fill--fat     { background: var(--accent-yellow); }

.macro-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 55px;
  text-align: right;
}

/* ── Rest Timer ───────────────────────────────────────────── */
.rest-timer {
  background: var(--bg-elevated);
  border-radius: var(--border-radius);
  padding: var(--space-lg);
  text-align: center;
  border: 1px solid var(--border-color);
}

.rest-timer__display {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 3.5rem;
  color: var(--accent-orange);
  text-shadow: var(--shadow-glow-orange);
  letter-spacing: 2px;
  line-height: 1;
}

.rest-timer__display.danger {
  color: var(--accent-red);
  text-shadow: 0 0 20px rgba(255,82,82,0.4);
  animation: timerPulse 0.5s ease infinite alternate;
}

.rest-timer__controls {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  margin-top: var(--space-md);
}

/* ── Gün Kart (Grid) ──────────────────────────────────────── */
.day-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.day-cell {
  aspect-ratio: 1;
  border-radius: var(--border-radius-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.day-cell:active {
  transform: scale(0.93);
}

.day-cell.completed {
  background: var(--accent-green-dim);
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 10px rgba(0,230,118,0.2);
}

.day-cell.completed::after {
  content: '✓';
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 0.55rem;
  color: var(--accent-green);
}

.day-cell.active {
  background: var(--accent-orange);
  border-color: var(--accent-orange);
  color: #fff;
  box-shadow: var(--shadow-glow-orange);
  transform: scale(1.05);
}

.day-cell.future {
  opacity: 0.35;
  cursor: default;
}

.day-cell.rest {
  background: rgba(224,64,251,0.08);
  border-color: rgba(224,64,251,0.25);
  color: var(--accent-purple);
}

.day-cell.rest.completed {
  background: var(--accent-green-dim);
  border-color: var(--accent-green);
  color: var(--accent-green);
}

/* ── Egzersiz Satırı ──────────────────────────────────────── */
.exercise-row {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--border-radius-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  margin-bottom: 8px;
}

.exercise-row.done {
  opacity: 0.55;
  background: var(--accent-green-dim);
  border-color: rgba(0,230,118,0.15);
}

.exercise-info {
  flex: 1;
  min-width: 0;
}

.exercise-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.exercise-meta {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.exercise-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
}

.exercise-tag.sets  { background: var(--accent-orange-dim); color: var(--accent-orange); }
.exercise-tag.reps  { background: rgba(68,138,255,0.12);    color: var(--accent-blue); }
.exercise-tag.timer { background: rgba(255,214,0,0.12);     color: var(--accent-yellow); }

/* ── Besin Satırı ─────────────────────────────────────────── */
.food-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 10px var(--space-md);
  transition: opacity var(--transition-fast);
}

.food-item.eaten {
  opacity: 0.5;
}

.food-item.eaten .food-name {
  text-decoration: line-through;
  color: var(--text-muted);
}

.food-info {
  flex: 1;
  min-width: 0;
}

.food-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
}

.food-amount {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.food-kcal {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent-orange);
  white-space: nowrap;
}

/* ── Modal / Overlay ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-sheet {
  width: 100%;
  max-width: 480px;
  background: var(--bg-secondary);
  border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  padding: var(--space-lg);
  padding-bottom: calc(var(--space-lg) + env(safe-area-inset-bottom, 0));
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.modal-overlay.open .modal-sheet {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: var(--bg-input);
  border-radius: 2px;
  margin: 0 auto var(--space-lg);
}

/* ── Confetti Overlay ─────────────────────────────────────── */
#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
}

/* ── Toast Bildirimi ──────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-height) + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-primary);
  white-space: nowrap;
  z-index: 900;
  opacity: 0;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  border-color: var(--accent-green);
  color: var(--accent-green);
  background: var(--accent-green-dim);
}

.toast.error {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

/* ── Stat Kartları ────────────────────────────────────────── */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-md);
  background: var(--bg-card);
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  text-align: center;
  gap: 4px;
}

.stat-value {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--text-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ── Haftalık Özet ────────────────────────────────────────── */
.week-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.week-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1.5px solid var(--border-color);
  transition: all var(--transition-normal);
}

.week-dot.done   { background: var(--accent-green); border-color: var(--accent-green); }
.week-dot.rest   { background: var(--accent-purple); border-color: var(--accent-purple); opacity: 0.7; }
.week-dot.active { background: var(--accent-orange); border-color: var(--accent-orange); }

/* ── Section Title ────────────────────────────────────────── */
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--space-sm);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

/* ── Divider ──────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border-color);
  margin: var(--space-sm) 0;
}

/* ── Boş Durum ────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  color: var(--text-muted);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
}

.empty-state__text {
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Scroll Yardımcıları ──────────────────────────────────── */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.scroll-x::-webkit-scrollbar { display: none; }

/* ── Yardımcı Sınıflar ────────────────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.gap-xs       { gap: var(--space-xs); }
.gap-sm       { gap: var(--space-sm); }
.gap-md       { gap: var(--space-md); }
.gap-lg       { gap: var(--space-lg); }
.mt-sm        { margin-top: var(--space-sm); }
.mt-md        { margin-top: var(--space-md); }
.mt-lg        { margin-top: var(--space-lg); }
.mb-sm        { margin-bottom: var(--space-sm); }
.mb-md        { margin-bottom: var(--space-md); }
.mb-lg        { margin-bottom: var(--space-lg); }
.text-center  { text-align: center; }
.text-sm      { font-size: 0.82rem; }
.text-xs      { font-size: 0.72rem; }
.text-orange  { color: var(--accent-orange); }
.text-green   { color: var(--accent-green); }
.text-muted   { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.font-heading { font-family: var(--font-heading); }
.font-bold    { font-weight: 700; }
.font-black   { font-weight: 900; }
.w-full       { width: 100%; }
.hidden       { display: none !important; }

/* ── Responsive: Geniş Ekranlar ───────────────────────────── */
@media (min-width: 480px) {
  .page-content {
    padding: var(--space-lg);
    padding-bottom: calc(var(--nav-height) + var(--space-xl));
  }
  .bottom-nav {
    left: 50%;
    transform: translateX(-50%);
    width: 480px;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
  }
}
