/* ==========================================================================
   COMPONENTS.CSS — Component Library (Bölüm 15 envanterine göre)
   Kural: hiçbir bileşen kendi rengini/spacing'ini icat etmez, sadece
   tokens.css değişkenlerine referans verir.
   ========================================================================== */

/* ---------------------------------------------------------------------
   1. BUTONLAR
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  height: 40px;
  padding: 0 var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--font-size-body);
  font-weight: var(--font-weight-body-strong);
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--duration-press) var(--ease-out),
              border-color var(--duration-press) var(--ease-out);
}
.btn:disabled { cursor: default; opacity: 0.5; }

.btn-sm { height: 32px; padding: 0 var(--space-3); font-size: var(--font-size-caption1); }

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}
.btn-primary:hover:not(:disabled) { background: var(--color-primary-hover); }
.btn-primary:active:not(:disabled) { background: var(--color-primary-pressed); }

.btn-secondary {
  background: transparent;
  color: var(--color-text-primary);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover:not(:disabled) { background: var(--color-hover-bg); }
.btn-secondary:active:not(:disabled) { background: var(--color-pressed-bg); }

.btn-outlined {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outlined:hover:not(:disabled) { background: var(--color-selection-bg); }

.btn-text {
  background: transparent;
  color: var(--color-primary);
  padding: 0 var(--space-2);
  font-weight: var(--font-weight-subtitle);
}
.btn-text:hover:not(:disabled) { text-decoration: underline; }

.btn-danger {
  background: var(--color-danger);
  color: #FFFFFF;
}
.btn-danger:hover:not(:disabled) { filter: brightness(0.92); }

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  border: none;
  background: transparent;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background-color var(--duration-hover) var(--ease-out);
}
.btn-icon:hover { background: var(--color-hover-bg); color: var(--color-text-primary); }
.btn-icon:active { background: var(--color-pressed-bg); }
.btn-icon.is-active { color: var(--color-primary); }

/* ---------------------------------------------------------------------
   2. ETİKETLEME — Tag / Badge / StatusBadge / PriorityBadge / Chip
   --------------------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--color-hover-bg);
  color: var(--color-text-secondary);
  font-size: var(--font-size-badge);
  font-weight: var(--font-weight-badge);
  letter-spacing: var(--letter-spacing-badge);
}

.badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--radius-pill);
  background: var(--color-danger);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* Pill-shape: border-radius 4px — keskin köşe, tam yuvarlak DEĞİL (Fluent karakteristik) */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-badge);
  font-weight: var(--font-weight-badge);
  letter-spacing: var(--letter-spacing-badge);
  white-space: nowrap;
}
.status-new         { color: var(--status-new);        background: var(--status-new-bg); }
.status-open        { color: var(--status-open);       background: var(--status-open-bg); }
.status-inprogress  { color: var(--status-inprogress); background: var(--status-inprogress-bg); }
.status-pending     { color: var(--status-pending);    background: var(--status-pending-bg); }
.status-resolved    { color: var(--status-resolved);   background: var(--status-resolved-bg); }
.status-closed      { color: var(--status-closed);     background: var(--status-closed-bg); }
.status-cancelled   { color: var(--status-cancelled);  background: var(--status-cancelled-bg); }

.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-badge);
  font-weight: var(--font-weight-badge);
}
.priority-critical { color: var(--priority-critical); }
.priority-high      { color: var(--priority-high); }
.priority-medium    { color: var(--priority-medium); }
.priority-low        { color: var(--priority-low); }
.priority-badge .priority-icon { width: 14px; height: 14px; }

/* Öncelik şeridi — liste satırı solunda 3px dikey renkli çubuk (Bölüm 6.2) */
.priority-stripe { width: 3px; align-self: stretch; flex: 0 0 auto; border-radius: 2px; }
.priority-stripe.priority-critical { background: var(--priority-critical); }
.priority-stripe.priority-high      { background: var(--priority-high); }
.priority-stripe.priority-medium    { background: var(--priority-medium); }
.priority-stripe.priority-low        { background: var(--priority-low); }

.attachment-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--color-text-tertiary);
  font-size: var(--font-size-caption2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  height: 28px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: transparent;
  color: var(--color-text-primary);
  font-size: var(--font-size-caption1);
  cursor: pointer;
  transition: background-color var(--duration-hover) var(--ease-out);
}
.chip:hover { background: var(--color-hover-bg); }
.chip.is-active {
  background: var(--color-selection-bg);
  border-color: transparent;
  color: var(--color-primary);
  font-weight: var(--font-weight-subtitle);
}
.chip .chip-close { display: inline-flex; opacity: 0.7; }
.chip .chip-close:hover { opacity: 1; }

/* ---------------------------------------------------------------------
   3. KİMLİK — Avatar (24 / 32 / 40)
   --------------------------------------------------------------------- */
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  color: #FFFFFF;
  font-weight: var(--font-weight-body-strong);
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--color-secondary);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-24 { width: 24px; height: 24px; font-size: 10px; }
.avatar-32 { width: 32px; height: 32px; font-size: 12px; }
.avatar-40 { width: 40px; height: 40px; font-size: 14px; }

/* Baş harf hash renk paleti — her kullanıcı için tutarlı */
.avatar-hue-1 { background: #0F6CBD; }
.avatar-hue-2 { background: #CA5010; }
.avatar-hue-3 { background: #0F7B0F; }
.avatar-hue-4 { background: #8764B8; }
.avatar-hue-5 { background: #C42B1C; }
.avatar-hue-6 { background: #005E50; }

/* ---------------------------------------------------------------------
   4. KARTLAR
   --------------------------------------------------------------------- */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-1);
  transition: box-shadow var(--duration-transition) var(--ease-out);
}

/* 7.1 Dashboard İstatistik Kartı */
.stat-card {
  position: relative;
  min-width: 220px;
  min-height: 96px;
  padding: var(--space-4);
  overflow: hidden;
}
.stat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-card-accent);
}
.stat-card.is-clickable { cursor: pointer; }
.stat-card.is-clickable:hover { box-shadow: var(--elevation-2); }
.stat-card .stat-label { color: var(--color-text-tertiary); }
.stat-card .stat-value { margin-top: var(--space-2); }
.stat-card .stat-trend { margin-top: var(--space-2); display: flex; align-items: center; gap: var(--space-1); }
.stat-card .stat-trend.trend-up { color: var(--color-success); }
.stat-card .stat-trend.trend-down { color: var(--color-danger); }

/* 7.2 Bilgi Kartı (detay ekranı bölüm kartı) */
.info-card { padding: var(--space-4); }
.info-card .info-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-3);
}
.info-card .detail-row + .detail-row { margin-top: var(--space-3); }

/* 7.3 Alert Kartı / InfoBox */
.alert-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  border-left: 4px solid transparent;
}
.alert-info    { background: var(--color-info-bg);    border-left-color: var(--color-info); }
.alert-warning { background: var(--color-warning-bg); border-left-color: var(--color-warning); }
.alert-danger  { background: var(--color-danger-bg);  border-left-color: var(--color-danger); }
.alert-success { background: var(--color-success-bg); border-left-color: var(--color-success); }
.alert-card .alert-icon { flex: 0 0 auto; width: 16px; height: 16px; margin-top: 2px; }
.alert-card .alert-body { flex: 1 1 auto; min-width: 0; }
.alert-card .alert-close { flex: 0 0 auto; cursor: pointer; opacity: 0.6; }
.alert-card .alert-close:hover { opacity: 1; }

/* 7.4 Detay Kartı (Ticket Detayı üst özet) — tekil kart, liste yoğunluk kuralına tabi değil */
.detail-card { padding: var(--space-5); }
.detail-card .detail-card-title { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.detail-card .detail-card-meta { margin-top: var(--space-2); display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* DashboardCard / ContentCard genel amaçlı */
.content-card { padding: var(--space-4); }

/* ---------------------------------------------------------------------
   5. LİSTE AİLELERİ (Bölüm 6 — projenin kalbi)
   --------------------------------------------------------------------- */
.list { background: var(--color-card); }
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--row-padding-y-compact) var(--space-3);
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
  min-height: 32px; /* tek satır: 6+20+6 satır yüksekliği */
  transition: background-color var(--duration-hover) var(--ease-out);
  position: relative;
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--color-hover-bg); }
.list-item:active { background: var(--color-pressed-bg); }

.list-item.is-selected {
  background: var(--color-selection-bg);
}
.list-item.is-selected::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--color-primary);
}
.list-item.is-multiselected { background: var(--color-selection-bg); }
.list-item.is-disabled { color: var(--color-disabled-text); cursor: default; }
.list-item.is-disabled:hover { background: transparent; }

/* Seçim checkbox — varsayılan gizli, hover'da / çoklu seçim modunda görünür */
.list-item .row-checkbox {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  opacity: 0;
  transition: opacity var(--duration-hover) var(--ease-out);
}
.list-item:hover .row-checkbox,
.list-item.is-multiselect-mode .row-checkbox,
.list-item.is-multiselected .row-checkbox { opacity: 1; }

.list-item .row-priority-icon { flex: 0 0 auto; width: 16px; height: 16px; }

.list-item .row-title {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-item .row-meta {
  flex: 0 0 auto;
  color: var(--color-text-secondary);
}

.list-item .row-avatar { flex: 0 0 auto; }

.list-item .row-date {
  flex: 0 0 auto;
  width: 72px;
  text-align: right;
  color: var(--color-text-tertiary);
}

.list-item .row-overflow {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  border-radius: var(--radius-sm);
  transition: opacity var(--duration-hover) var(--ease-out);
}
.list-item:hover .row-overflow { opacity: 1; }
.list-item .row-overflow:hover { background: var(--color-pressed-bg); }

/* İki satırlı liste (Mesajlar / Çalışma Kayıtları / Onaylar) — toplam 52px */
.list-item.list-item-2line {
  align-items: flex-start;
  min-height: 52px;
  padding-top: var(--row-padding-y-two-line);
  padding-bottom: var(--row-padding-y-two-line);
  gap: var(--space-3);
}
.list-item-2line .row-body { flex: 1 1 auto; min-width: 0; }
.list-item-2line .row-top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.list-item-2line .row-summary { margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item-2line .unread-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--color-primary);
  flex: 0 0 auto;
  margin-top: 7px;
}
.list-item-2line.is-unread .row-title { font-weight: var(--font-weight-body-strong); color: var(--color-text-primary); }

/* DetailRow — label + value çifti, detay ekranları */
.detail-row { display: flex; gap: var(--space-4); align-items: flex-start; }
.detail-row .detail-label { flex: 0 0 128px; color: var(--color-text-tertiary); }
.detail-row .detail-value { flex: 1 1 auto; min-width: 0; }

/* TimelineItem — dikey çizgi + nokta + içerik */
.timeline { position: relative; }
.timeline-item { position: relative; display: flex; gap: var(--space-3); padding-bottom: var(--space-4); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: 5px; top: 16px; bottom: 0;
  width: 1px;
  background: var(--color-divider);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  flex: 0 0 auto;
  width: 11px; height: 11px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--color-card);
  border: 2px solid var(--color-primary);
}
.timeline-body { flex: 1 1 auto; min-width: 0; }

/* ActivityItem — Mesajlar/aktivite akışı: avatar + metin + tarih */
.activity-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; }
.activity-item .activity-body { flex: 1 1 auto; min-width: 0; }
.activity-item .activity-meta { color: var(--color-text-tertiary); margin-top: 2px; }

/* ---------------------------------------------------------------------
   6. ARAMA / FİLTRE (Bölüm 8)
   --------------------------------------------------------------------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  width: 240px;
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-strong);
  background: var(--color-card);
}
.search-bar.compact { width: auto; height: 32px; }
.search-bar input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  min-width: 0;
}
.search-bar .search-icon { flex: 0 0 auto; color: var(--color-text-tertiary); width: 16px; height: 16px; }
.search-bar .search-clear { flex: 0 0 auto; cursor: pointer; color: var(--color-text-tertiary); display: none; }
.search-bar.has-value .search-clear { display: inline-flex; }
.search-bar:focus-within { border-color: var(--color-primary); }

.filter-panel { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; }

/* ---------------------------------------------------------------------
   7. FORM (Bölüm 9) — 40px yükseklik standardı, hiza bozulmaz
   --------------------------------------------------------------------- */
.form-field { display: flex; flex-direction: column; gap: var(--space-1); }
.form-label { color: var(--color-text-secondary); font-size: var(--font-size-subtitle); font-weight: var(--font-weight-subtitle); }

.form-control {
  height: 40px;
  padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-strong);
  background: var(--color-card);
  color: var(--color-text-primary);
  outline: none;
  transition: border-color var(--duration-hover) var(--ease-out);
}
.form-control:focus { border-color: var(--color-primary); border-width: 1px; box-shadow: 0 0 0 1px var(--color-primary) inset; }
.form-control::placeholder { color: var(--color-text-tertiary); }
.form-control:disabled { background: var(--color-disabled-bg); color: var(--color-disabled-text); cursor: not-allowed; }
.form-control.is-readonly { background: transparent; border-color: transparent; padding-left: 0; }

textarea.form-control { height: auto; min-height: 96px; padding-top: var(--space-2); padding-bottom: var(--space-2); resize: vertical; }

.form-control.has-error { border-color: var(--color-danger); }
.form-control.has-warning { border-color: var(--color-warning); }

.form-hint { font-size: var(--font-size-caption1); color: var(--color-text-tertiary); }
.form-hint.error-text { color: var(--color-danger); display: flex; align-items: center; gap: 4px; }
.form-hint.warning-text { color: var(--color-warning); }

/* CheckBox */
.checkbox { width: 20px; height: 20px; border-radius: 4px; border: 1px solid var(--color-border-strong); accent-color: var(--color-primary); cursor: pointer; }
.checkbox:disabled { opacity: 0.5; cursor: not-allowed; }

/* Radio */
.radio { width: 20px; height: 20px; accent-color: var(--color-primary); cursor: pointer; }

/* Switch */
.switch { position: relative; display: inline-block; width: 36px; height: 20px; flex: 0 0 auto; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .switch-track {
  position: absolute; inset: 0; cursor: pointer;
  background: transparent;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  transition: background-color var(--duration-hover) var(--ease-out);
}
.switch .switch-track::before {
  content: "";
  position: absolute;
  height: 14px; width: 14px;
  left: 2px; top: 2px;
  background: var(--color-secondary);
  border-radius: 50%;
  transition: transform var(--duration-hover) var(--ease-out), background-color var(--duration-hover) var(--ease-out);
}
.switch input:checked + .switch-track { background: var(--color-primary); border-color: var(--color-primary); }
.switch input:checked + .switch-track::before { transform: translateX(16px); background: #FFFFFF; }
.switch input:disabled + .switch-track { opacity: 0.4; cursor: not-allowed; }

/* ---------------------------------------------------------------------
   8. DIALOG SİSTEMİ (Bölüm 10)
   --------------------------------------------------------------------- */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.32);
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  z-index: 1000;
}
.overlay[hidden] { display: none; }

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--elevation-4);
  overflow: hidden;
}
.modal.modal-confirm { max-width: 400px; }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-divider);
}
.modal-body { padding: var(--space-5); overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-4); }
.modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--color-divider);
}

/* Bottom Sheet (mobil) */
.bottom-sheet-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.32);
  display: flex; align-items: flex-end; justify-content: center;
  z-index: 1000;
}
.bottom-sheet-overlay[hidden] { display: none; }
.bottom-sheet {
  width: 100%; max-width: 560px; max-height: 90vh;
  background: var(--color-card);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: var(--elevation-4);
  padding: var(--space-3) var(--space-4) var(--space-5);
  overflow-y: auto;
}
.bottom-sheet .sheet-handle {
  width: 36px; height: 4px; border-radius: var(--radius-pill);
  background: var(--color-border-strong);
  margin: 0 auto var(--space-4);
}

/* Popover / Flyout */
.popover {
  position: absolute;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--elevation-3);
  padding: var(--space-3);
  z-index: 900;
  min-width: 220px;
}
.popover[hidden] { display: none; }

/* Toast / Snackbar */
.toast-region {
  position: fixed; left: 50%; bottom: var(--space-6); transform: translateX(-50%);
  display: flex; flex-direction: column; gap: var(--space-2);
  z-index: 1100;
  width: min(400px, calc(100vw - var(--space-6)));
}
.toast {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  background: var(--color-text-primary);
  color: var(--color-surface);
  box-shadow: var(--elevation-3);
}
[data-theme="dark"] .toast { background: var(--color-card); border: 1px solid var(--color-border); }
.toast .toast-message { flex: 1 1 auto; }
.toast .toast-action { color: var(--color-primary-hover); font-weight: var(--font-weight-body-strong); cursor: pointer; flex: 0 0 auto; }
[data-theme="dark"] .toast .toast-action { color: var(--color-primary); }

/* Progress (determinate) */
.progress-bar { height: 4px; background: var(--color-hover-bg); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar .progress-fill { height: 100%; background: var(--color-primary); transition: width var(--duration-transition) var(--ease-out); }

/* ---------------------------------------------------------------------
   9. NAVİGASYON (Bölüm 11)
   --------------------------------------------------------------------- */
.drawer {
  width: var(--drawer-width);
  flex: 0 0 auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-surface-alt);
  border-right: 1px solid var(--color-divider);
  transition: width var(--duration-transition) var(--ease-out);
}
.drawer.is-collapsed { width: var(--drawer-collapsed-width); }
.drawer.is-collapsed .drawer-label { display: none; }
.drawer.is-collapsed .drawer-brand-text { display: none; }

.drawer-brand {
  height: var(--header-height);
  display: flex; align-items: center; gap: var(--space-2);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--color-divider);
  flex: 0 0 auto;
}
.drawer-brand-mark {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  background: var(--color-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; flex: 0 0 auto;
}

.drawer-nav { flex: 1 1 auto; overflow-y: auto; padding: var(--space-2); display: flex; flex-direction: column; gap: 2px; }
.drawer-item {
  display: flex; align-items: center; gap: var(--space-3);
  height: 36px;
  padding: 0 var(--space-2);
  border-radius: var(--radius-sm);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background-color var(--duration-hover) var(--ease-out);
}
.drawer-item svg { flex: 0 0 auto; width: 20px; height: 20px; }
.drawer-item:hover { background: var(--color-hover-bg); color: var(--color-text-primary); }
.drawer-item.is-active { background: var(--color-selection-bg); color: var(--color-primary); font-weight: var(--font-weight-subtitle); }

.drawer-footer { flex: 0 0 auto; padding: var(--space-2); border-top: 1px solid var(--color-divider); }

/* Breadcrumb */
.breadcrumb { display: flex; align-items: center; gap: var(--space-1); color: var(--color-text-tertiary); }
.breadcrumb a { color: var(--color-text-secondary); }
.breadcrumb .crumb-active { color: var(--color-text-primary); }

/* Bottom Navigation (Compact) */
.bottom-nav {
  display: none;
  height: 56px;
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-alt);
  align-items: stretch;
  flex: 0 0 auto;
}
@media (max-width: 904px) {
  .bottom-nav { display: flex; }
}
.bottom-nav-item {
  flex: 1 1 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  color: var(--color-text-tertiary);
  cursor: pointer;
}
.bottom-nav-item svg { width: 20px; height: 20px; }
.bottom-nav-item.is-active { color: var(--color-primary); }

/* FAB — sadece Compact genişlikte (Bölüm 5.7) */
.fab {
  display: none;
  position: fixed;
  right: var(--space-4);
  bottom: calc(56px + var(--space-4));
  width: var(--fab-size); height: var(--fab-size);
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  align-items: center; justify-content: center;
  border: none; cursor: pointer;
  box-shadow: var(--elevation-3);
  z-index: 500;
}
@media (max-width: 904px) {
  .fab { display: flex; }
}

/* ---------------------------------------------------------------------
   10. DURUM GÖRÜNÜMLERİ — Empty / Error / Offline / Skeleton (Bölüm 5.8 / 13.1)
   --------------------------------------------------------------------- */
.state-view {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  gap: var(--space-2);
  padding: var(--space-7) var(--space-4);
}
.state-view .state-icon {
  width: 128px; height: 128px;
  border-radius: 50%;
  background: var(--gradient-empty-state);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-2);
}
.state-view .state-icon svg { width: 48px; height: 48px; }
.state-view.state-error .state-title { color: var(--color-danger); }

.offline-banner {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  padding: var(--space-2) var(--space-4);
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--font-size-caption1);
}

/* Skeleton — gerçek DataTemplate ile aynı boyut, shimmer (spinner değil) */
.skeleton {
  background: var(--color-hover-bg);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: skeleton-shimmer 1.4s infinite;
}
[data-theme="dark"] .skeleton::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
}
@keyframes skeleton-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.skeleton-row { height: 32px; margin-bottom: 1px; }
.skeleton-text { height: 12px; border-radius: 3px; }

/* ---------------------------------------------------------------------
   11. TABS
   --------------------------------------------------------------------- */
.tabs { display: flex; gap: var(--space-4); border-bottom: 1px solid var(--color-divider); }
.tab {
  padding: var(--space-2) 0;
  color: var(--color-text-secondary);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-weight: var(--font-weight-subtitle);
}
.tab:hover { color: var(--color-text-primary); }
.tab.is-active { color: var(--color-primary); border-bottom-color: var(--color-primary); }

/* ---------------------------------------------------------------------
   12. UTILITY LAYOUT
   --------------------------------------------------------------------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); } .gap-2 { gap: var(--space-2); } .gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); } .gap-5 { gap: var(--space-5); } .gap-6 { gap: var(--space-6); }
.mt-1{margin-top:var(--space-1)} .mt-2{margin-top:var(--space-2)} .mt-3{margin-top:var(--space-3)}
.mt-4{margin-top:var(--space-4)} .mt-5{margin-top:var(--space-5)} .mt-6{margin-top:var(--space-6)}
.w-full { width: 100%; }
