/* ============================================
   OtoKronikızı - Global Styles
   Light theme default, dark mode optional
   ============================================ */

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

/* ── Slate Premium Tema (Light Default) ── */
:root {
  /* Arka planlar — nötr slate tonları */
  --bg-primary: #f4f5f7;
  --bg-secondary: #eaecef;
  --bg-tertiary: #dde0e5;
  --bg-card: #ffffff;
  --bg-glass: rgba(15, 23, 42, 0.03);
  --bg-glass-hover: rgba(79, 70, 229, 0.06);
  --border-glass: #e3e6eb;
  --border-glass-hover: #c2c8d1;

  /* Metinler — slate */
  --text-primary: #1b2230;
  --text-secondary: #4a5363;
  --text-muted: #8b93a1;
  --text-inverse: #ffffff;

  /* Tek premium vurgu: indigo */
  --accent-primary: #4f46e5;
  --accent-secondary: #6366f1;
  --accent-navy: #4f46e5;
  --accent-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  --accent-glow: rgba(79, 70, 229, 0.18);

  /* Navbar rengi — derin grafit slate */
  --navbar-bg: #14171d;
  --navbar-text: #aab2c0;
  --navbar-text-hover: #ffffff;
  --navbar-border: rgba(255, 255, 255, 0.08);
  
  /* Risk renkleri */
  --risk-feci: #c0392b;
  --risk-feci-bg: rgba(192, 57, 43, 0.08);
  --risk-yuksek: #d35400;
  --risk-yuksek-bg: rgba(211, 84, 0, 0.08);
  --risk-orta: #d4a017;
  --risk-orta-bg: rgba(212, 160, 23, 0.10);
  --risk-dusuk: #27ae60;
  --risk-dusuk-bg: rgba(39, 174, 96, 0.08);
  
  --success: #27ae60;
  --error: #c0392b;
  --warning: #d4a017;
  --info: #2980b9;
  
  /* Border radius - daha keskin, sahibinden gibi */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.10);
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.14);
  --shadow-glow: 0 0 16px var(--accent-glow);
  
  --transition-fast: 0.12s ease;
  --transition-base: 0.22s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-height: 72px;
  --sidebar-width: 240px;
  --max-width: 1400px;
}

/* ── Dark Theme ── */
[data-theme="dark"] {
  --bg-primary: #0e1116;
  --bg-secondary: #151a21;
  --bg-tertiary: #1b212a;
  --bg-card: #161b22;
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-hover: rgba(129, 140, 248, 0.10);
  --border-glass: rgba(255, 255, 255, 0.10);
  --border-glass-hover: rgba(255, 255, 255, 0.20);

  --text-primary: #e6e9ef;
  --text-secondary: #9aa4b2;
  --text-muted: #6b7483;
  --text-inverse: #0e1116;

  --accent-primary: #818cf8;
  --accent-secondary: #a5b4fc;
  --accent-navy: #6366f1;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #818cf8 100%);
  --accent-glow: rgba(129, 140, 248, 0.25);

  --navbar-bg: #0c0f14;
  --navbar-text: #8b93a1;
  --navbar-text-hover: #e6e9ef;
  --navbar-border: rgba(255, 255, 255, 0.07);
  
  --risk-feci: #f87171;
  --risk-feci-bg: rgba(248, 113, 113, 0.12);
  --risk-yuksek: #fb923c;
  --risk-yuksek-bg: rgba(251, 146, 60, 0.12);
  --risk-orta: #fbbf24;
  --risk-orta-bg: rgba(251, 191, 36, 0.12);
  --risk-dusuk: #4ade80;
  --risk-dusuk-bg: rgba(74, 222, 128, 0.12);
  
  --success: #4ade80;
  --error: #f87171;
  --warning: #fbbf24;
  --info: #60a5fa;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden; /* Prevent horizontal overflow at root level */
}

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

body::before {
  content: none;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: var(--font-family);
  cursor: pointer;
  border: none;
  outline: none;
}

input, textarea, select {
  font-family: var(--font-family);
  outline: none;
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ── Header / Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background: color-mix(in srgb, var(--navbar-bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--navbar-border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 20px;
  transition: background var(--transition-base);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

[data-theme="dark"] .navbar {
  background: color-mix(in srgb, var(--navbar-bg) 85%, transparent);
  border-bottom-color: var(--navbar-border);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-brand .brand-logo {
  height: 58px;
  width: auto;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.navbar-nav a {
  color: var(--navbar-text);
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.navbar-nav a:hover,
.navbar-nav a.active {
  color: var(--navbar-text-hover);
  background: rgba(255, 255, 255, 0.08);
}

.navbar-nav a.active {
  color: var(--accent-secondary);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 0;
}

.nav-search {
  position: relative;
}

.nav-search input {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: var(--radius-sm);
  padding: 7px 14px 7px 34px;
  color: #ffffff;
  font-size: 0.84rem;
  width: clamp(130px, 15vw, 190px);
  transition: all var(--transition-base);
}

.nav-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.nav-search input:focus {
  width: clamp(160px, 20vw, 260px);
  border-color: var(--accent-secondary);
  background: rgba(255, 255, 255, 0.15);
  outline: none;
}

.nav-search .search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  padding: 8px;
  cursor: pointer;
}

/* ── Layout ── */
.app-container {
  padding-top: var(--header-height);
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
}

.page-wrapper.with-sidebar {
  display: grid;
  grid-template-columns: var(--sidebar-width) 1fr;
  gap: 24px;
}

/* ── Old Sidebar (kept for compatibility) ── */
.sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  height: fit-content;
  max-height: calc(100vh - var(--header-height) - 48px);
  overflow-y: auto;
}

.sidebar-section {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 10px;
  box-shadow: var(--shadow-sm);
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-glass);
}

.brand-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.brand-list li a:hover,
.brand-list li a.active {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.brand-list li a .brand-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.brand-list li a .brand-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* ── Sahibinden-Style Filter Sidebar ── */
.filter-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-self: start;
}

/* Active filter banner */
.filter-sidebar-clear {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(79, 70, 229, 0.08);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-md);
  padding: 8px 14px;
}

.filter-sidebar-active-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-primary);
}

.filter-clear-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: opacity var(--transition-fast);
}

.filter-clear-btn:hover { opacity: 0.7; }

/* Each filter panel box */
.filter-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-glass);
  background: var(--bg-glass);
}

.filter-panel-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-secondary);
}

.filter-panel-reset {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.filter-panel-reset:hover { opacity: 1; }

.filter-panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

/* Individual filter item */
.filter-panel-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast);
  border-bottom: 1px solid var(--border-glass);
  position: relative;
}

.filter-panel-list li:last-child .filter-panel-item {
  border-bottom: none;
}

.filter-panel-item:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.filter-panel-item.active {
  background: rgba(79, 70, 229, 0.06);
  color: var(--accent-primary);
  font-weight: 600;
}

.filter-panel-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent-primary);
  border-radius: 0 2px 2px 0;
}

/* Colored dots */
.fp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fp-risk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}

.fp-label {
  flex: 1;
  line-height: 1.3;
}

.fp-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: var(--bg-glass);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  min-width: 24px;
  text-align: center;
}

/* Marka görseli (logo SVG / harf) */
.fp-mark {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fp-mark svg {
  width: 16px;
  height: 16px;
}

.filter-panel-item.active .fp-mark {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
}

.fp-all-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
}

/* Risk seviyesi checkbox */
.fp-check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--risk, var(--border-glass-hover));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 900;
  color: #fff;
  transition: background var(--transition-fast);
}

.filter-check-item.active .fp-check {
  background: var(--risk);
}

.filter-check-item.active {
  background: transparent;
  color: var(--text-primary);
}

.filter-check-item.active::before {
  display: none;
}

/* ── Filter Bar (search + sort row) ── */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.search-box {
  position: relative;
  flex: 1;
  min-width: 180px;
}

.search-box .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.88rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

/* ── Sort Tabs ── */
.sort-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 3px;
  flex-shrink: 0;
}

.sort-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: calc(var(--radius-lg) - 3px);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
  white-space: nowrap;
  position: relative;
}

.sort-tab:hover {
  color: var(--text-primary);
}

.sort-tab.active {
  background: var(--bg-card);
  color: var(--accent-navy);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .sort-tab.active {
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .sort-tabs {
    justify-content: center;
    width: 100%;
  }
  .sort-tab {
    flex: 1;
    justify-content: center;
    font-size: 0.78rem;
    padding: 7px 8px;
  }
}

/* ── Results Count Bar ── */
.results-count {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 6px 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-count strong {
  color: var(--text-primary);
  font-weight: 700;
}

.results-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  background: rgba(79, 70, 229, 0.1);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.25);
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-md);
}

.card-clickable {
  cursor: pointer;
}

/* ── Fault Card (modern card) ── */
.fault-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 15px 18px 15px 22px;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.fault-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-glass-hover);
  transform: translateY(-2px);
}

/* sol risk şeridi */
.fault-card .ftr-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
}

/* marka görseli (gerçek logo SVG veya harf rozeti) */
.fc-brandmark {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-base), border-color var(--transition-base);
}

.fc-brandmark svg {
  width: 28px;
  height: 28px;
}

.fault-card:hover .fc-brandmark {
  border-color: var(--border-glass-hover);
}

.fc-body {
  flex: 1;
  min-width: 0;
}

.fc-title {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 8px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.fault-card:hover .fc-title { color: var(--accent-navy); }
[data-theme="dark"] .fault-card:hover .fc-title { color: var(--accent-primary); }

.fc-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.fc-meta-brand {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.fc-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass-hover);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.fc-cost {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
  padding-right: 2px;
}

.fc-cost-label {
  font-size: 0.64rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fc-cost-val {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--text-primary);
}

.fc-date {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 1px;
}

/* "Ben de Yaşadım" upvote butonu */
.fc-vote {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 66px;
  padding: 8px 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
  line-height: 1.1;
}

.fc-vote:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
}

.fc-vote-arrow {
  font-size: 0.7rem;
  transition: transform var(--transition-fast);
}

.fc-vote-count {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.fc-vote-text {
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 700;
  color: var(--text-muted);
  text-align: center;
}

.fc-vote.voted {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 2px 10px var(--accent-glow);
}

.fc-vote.voted .fc-vote-count,
.fc-vote.voted .fc-vote-text,
.fc-vote.voted .fc-vote-arrow { color: #fff; }

.fc-vote.voted .fc-vote-arrow { transform: translateY(-1px); }

.fc-vote.pop { animation: votePop 0.32s ease; }

@keyframes votePop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* ── Tags / Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* risk rozeti renkli noktası (emoji yerine) */
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.badge-risk-feci {
  background: var(--risk-feci-bg);
  color: var(--risk-feci);
  border: 1px solid rgba(255, 45, 85, 0.2);
}

.badge-risk-yuksek {
  background: var(--risk-yuksek-bg);
  color: var(--risk-yuksek);
  border: 1px solid rgba(255, 149, 0, 0.2);
}

.badge-risk-orta {
  background: var(--risk-orta-bg);
  color: var(--risk-orta);
  border: 1px solid rgba(255, 204, 0, 0.2);
}

.badge-risk-dusuk {
  background: var(--risk-dusuk-bg);
  color: var(--risk-dusuk);
  border: 1px solid rgba(52, 199, 89, 0.2);
}

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

.badge-category {
  background: rgba(90, 200, 250, 0.1);
  color: var(--info);
  border: 1px solid rgba(90, 200, 250, 0.2);
}

.badge-km {
  background: rgba(175, 130, 255, 0.1);
  color: #af82ff;
  border: 1px solid rgba(175, 130, 255, 0.2);
}

/* ── Model Grid Cards ── */
.models-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 20px;
}

.model-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  border: 1px solid var(--border-glass);
  background: var(--bg-card);
}

/* üstte ince marka vurgu çizgisi (renk katliamı yerine) */
.model-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.model-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-glass-hover);
}

.model-card:hover::before {
  opacity: 1;
}

.model-card .model-card-header {
  padding: 22px 22px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.model-card .model-card-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.model-card .model-card-logo svg {
  width: 32px;
  height: 32px;
}

.model-card .model-card-titles {
  min-width: 0;
}

.model-card .model-brand {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.model-card .model-name {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-primary);
}

.model-card .model-year {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 3px;
}

.model-card .model-card-body {
  padding: 14px 22px 18px;
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.model-card .model-card-body .model-faults {
  font-size: 0.85rem;
  color: var(--text-secondary);
  min-width: 0;
}

.model-card .model-card-body .model-faults strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.model-card .model-card-cta {
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-navy);
  color: #fff;
  border: 1px solid var(--accent-navy);
}

.btn-primary:hover {
  background: #233d63;
  box-shadow: var(--shadow-sm);
}

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

.btn-secondary:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-glass-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.btn-danger {
  background: rgba(192, 57, 43, 0.10);
  color: var(--error);
  border: 1px solid rgba(192, 57, 43, 0.20);
}

.btn-danger:hover {
  background: rgba(192, 57, 43, 0.18);
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-sm);
}

.btn-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Forms ── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--accent-primary);
  background: var(--bg-secondary);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%239898b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
}

.form-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Hero Sections ── */
.hero {
  padding: 48px 0 32px;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 24px;
  flex-wrap: wrap;           /* wrap on very small screens */
}

.hero-stat {
  text-align: center;
}

.hero-stat .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── Search & Filter Bar ── */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-bar .search-box {
  flex: 1;
  min-width: min(250px, 100%);
  position: relative;
}

.filter-bar .search-box input {
  width: 100%;
  padding: 10px 16px 10px 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
}

.filter-bar .search-box input:focus {
  border-color: var(--accent-primary);
}

.filter-bar .search-box .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.filter-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip:hover,
.filter-chip.active {
  background: rgba(79, 70, 229, 0.1);
  border-color: rgba(79, 70, 229, 0.3);
  color: var(--accent-primary);
}

/* ── Model Detail Page ── */
.model-hero {
  padding: 32px;
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  gap: 24px;
}

/* sol kenarda ince marka vurgu çizgisi */
.model-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-gradient);
}

.model-hero-logo {
  flex-shrink: 0;
  width: 84px;
  height: 84px;
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 800;
}

.model-hero-logo svg {
  width: 52px;
  height: 52px;
}

.model-hero-text { min-width: 0; }

.model-hero-crumb {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.model-hero-crumb a { color: var(--text-muted); }
.model-hero-crumb a:hover { color: var(--accent-primary); }

.model-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 6px;
  position: relative;
  color: var(--text-primary);
}

.model-hero .model-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  position: relative;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.spec-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.spec-item .spec-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-primary);
}

.spec-item .spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.blog-content {
  max-width: 800px;
}

.blog-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.blog-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-primary);
}

.blog-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
}

.blog-content ul, .blog-content ol {
  color: var(--text-secondary);
  margin: 0 0 16px 20px;
}

.blog-content li {
  margin-bottom: 6px;
}

.strengths-weaknesses {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}

.sw-card {
  border-radius: var(--radius-md);
  padding: 20px;
}

.sw-card.strengths {
  background: rgba(52, 199, 89, 0.08);
  border: 1px solid rgba(52, 199, 89, 0.15);
}

.sw-card.weaknesses {
  background: rgba(255, 59, 48, 0.08);
  border: 1px solid rgba(255, 59, 48, 0.15);
}

.sw-card h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sw-card.strengths h3 {
  color: var(--success);
}

.sw-card.weaknesses h3 {
  color: var(--error);
}

.sw-card ul {
  list-style: none;
}

.sw-card li {
  padding: 6px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sw-card li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.sw-card.strengths li::before {
  background: var(--success);
}

.sw-card.weaknesses li::before {
  background: var(--error);
}

/* ── Maintenance Timeline ── */
.maintenance-timeline {
  margin: 24px 0;
  position: relative;
  padding-left: 24px;
}

.maintenance-timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border-glass);
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
  padding-left: 24px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gradient);
  border: 3px solid var(--bg-primary);
}

/* ── Dark mode toggle button ── */
.theme-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--accent-secondary);
  border-color: rgba(255, 255, 255, 0.30);
}

.timeline-item .timeline-km {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 4px;
}

.timeline-item .timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.timeline-item.timeline-custom {
  background: rgba(79, 70, 229, 0.04);
  border: 1px solid rgba(79, 70, 229, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px 16px 12px 24px;
  margin-left: -4px;
}

.timeline-item.timeline-custom::before {
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow);
}

/* ── Arıza Detay ── */
.fault-detail-header {
  margin-bottom: 32px;
}

.fault-detail-header h1 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.fault-detail-header .fault-detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Collapsible Details Section */
.fault-details-accordion {
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  margin-bottom: 24px;
  overflow: hidden;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.fault-details-accordion:hover {
  border-color: var(--border-glass-hover);
  box-shadow: var(--shadow-sm);
}

.fault-details-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg-glass);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.fault-details-toggle:hover {
  background: var(--bg-glass-hover);
}

.fault-details-toggle .fdt-arrow {
  font-size: 1rem;
  transition: transform var(--transition-base);
  color: var(--text-muted);
}

.fault-details-toggle.open .fdt-arrow {
  transform: rotate(180deg);
}

.fault-details-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.fault-details-body.open {
  max-height: 1000px; /* High enough to contain children without scroll */
  border-top: 1px solid var(--border-glass);
  padding: 18px;
}

.fault-details-body .fault-info-grid {
  margin-top: 0;
}

.fault-details-body .cost-range {
  margin-bottom: 0;
}

.fault-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.fault-info-item {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 16px;
}

.fault-info-item .info-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.fault-info-item .info-value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cost-range {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
}

.cost-range .cost-min,
.cost-range .cost-max {
  font-size: 1.3rem;
  font-weight: 800;
}

.cost-range .cost-min {
  color: var(--success);
}

.cost-range .cost-max {
  color: var(--error);
}

.cost-range .cost-separator {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.cost-bar {
  flex: 1;
  height: 6px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--success), var(--warning), var(--error));
}

/* ── Comments / Forum ── */
.comments-section {
  margin-top: 32px;
}

.comments-section h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.comment-form {
  margin-bottom: 24px;
}

.comment-form textarea {
  width: 100%;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  resize: vertical;
  min-height: 80px;
}

.comment-form textarea:focus {
  border-color: var(--accent-primary);
}

.comment-form .comment-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
}

.comment .comment-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  flex-shrink: 0;
}

.comment .comment-body {
  flex: 1;
}

.comment .comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.comment .comment-author {
  font-weight: 600;
  font-size: 0.88rem;
}

.comment .comment-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.comment-delete-btn {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.85rem;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  opacity: 0;
  transition: all var(--transition-fast);
  line-height: 1;
}

.comment:hover .comment-delete-btn {
  opacity: 1;
}

.comment-delete-btn:hover {
  background: rgba(255, 59, 48, 0.12);
  color: var(--error);
}

/* Admin silme butonu: her zaman görünür, kırmızı tonda */
.comment-delete-btn-admin {
  opacity: 0.6 !important;
  color: var(--error) !important;
}

.comment:hover .comment-delete-btn-admin {
  opacity: 1 !important;
  background: rgba(255, 59, 48, 0.08);
}

.comment-delete-btn-admin:hover {
  background: rgba(255, 59, 48, 0.18) !important;
  color: var(--error) !important;
}

/* Admin yorum avatar'ı */
.comment-avatar-admin {
  background: var(--accent-gradient) !important;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* Admin rozeti */
.comment-admin-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  background: linear-gradient(135deg, rgba(79,70,229,0.15), rgba(79,70,229,0.08));
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent-primary);
}

.comment .comment-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── Articles ── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 20px;
}

.article-card {
  cursor: pointer;
}

.article-card .article-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-primary);
  margin-bottom: 8px;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card .article-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ── Auth Pages ── */
.auth-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - var(--header-height));
  padding: 40px 24px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  padding: 40px;
  backdrop-filter: blur(10px);
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 4px;
  text-align: center;
}

.auth-card .auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.auth-card .auth-divider {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 20px 0;
}

.auth-card .auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ── Admin Panel ── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--header-height));
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-glass);
  padding: 24px 0;
}

.admin-sidebar .admin-menu {
  list-style: none;
}

.admin-sidebar .admin-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.admin-sidebar .admin-menu li a:hover,
.admin-sidebar .admin-menu li a.active {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
  border-right: 2px solid var(--accent-primary);
}

.admin-main {
  padding: 24px 32px;
  overflow-y: auto;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.admin-header h1 {
  font-size: 1.5rem;
  font-weight: 800;
}

/* ── Admin Menu Divider ── */
.admin-menu-divider {
  padding: 16px 24px 6px !important;
  pointer-events: none;
}

.admin-menu-divider span {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0.7;
}

/* ── Workflow Stepper ── */
.workflow-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 20px 16px;
  margin-bottom: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.workflow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
}

.workflow-step:hover {
  background: var(--bg-glass-hover);
}

.step-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: all var(--transition-base);
  border: 2px solid var(--border-glass);
  background: var(--bg-glass);
  color: var(--text-muted);
}

.step-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.step-count {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.step-connector {
  display: flex;
  align-items: center;
  padding: 0 8px;
  flex-shrink: 0;
}

.step-line {
  width: 32px;
  height: 2px;
  background: var(--border-glass);
  border-radius: 1px;
  transition: background var(--transition-base);
}

/* Step States */
.step-active .step-circle {
  background: var(--accent-gradient);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 0 16px var(--accent-glow);
}

.step-active .step-label {
  color: var(--text-primary);
  font-weight: 700;
}

.step-active .step-count {
  color: var(--accent-primary);
  font-weight: 600;
}

.step-done .step-circle {
  background: rgba(22, 163, 74, 0.15);
  border-color: var(--success);
  color: var(--success);
}

.step-done .step-label {
  color: var(--text-primary);
}

.step-done .step-count {
  color: var(--success);
  font-weight: 600;
}

.step-done + .step-connector .step-line,
.step-active + .step-connector .step-line {
  background: var(--accent-primary);
}

@media (max-width: 768px) {
  .workflow-stepper {
    flex-direction: column;
    gap: 4px;
    padding: 16px;
  }
  
  .step-connector {
    transform: rotate(90deg);
    padding: 0;
  }
  
  .step-line {
    width: 20px;
  }
  
  .workflow-step {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 1024px) {
  .admin-menu-divider {
    display: none;
  }
}

/* ── Data Table (Sahibinden tarzı) ── */
.data-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border-bottom: 2px solid var(--border-glass);
  white-space: nowrap;
}

.data-table td {
  padding: 10px 14px;
  font-size: 0.87rem;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-glass);
  vertical-align: middle;
}

.data-table tr:hover td {
  background: rgba(26, 46, 74, 0.04);
}

[data-theme="dark"] .data-table tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

.data-table .td-actions {
  display: flex;
  gap: 4px;
}

/* ── CSV Import ── */
.csv-dropzone {
  border: 2px dashed var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  background: var(--bg-glass);
}

.csv-dropzone:hover,
.csv-dropzone.dragover {
  border-color: var(--accent-primary);
  background: rgba(79, 70, 229, 0.05);
}

.csv-dropzone .dropzone-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.csv-dropzone .dropzone-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.csv-dropzone .dropzone-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.csv-preview {
  margin-top: 20px;
}

.csv-preview .csv-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.csv-preview .csv-stat {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
}

.csv-preview .csv-stat.error {
  background: rgba(255, 59, 48, 0.1);
  color: var(--error);
}

.csv-preview .csv-stat.success {
  background: rgba(52, 199, 89, 0.1);
  color: var(--success);
}

.csv-row-error {
  background: rgba(255, 59, 48, 0.05) !important;
}

.csv-row-error td {
  color: var(--error) !important;
}

.csv-error-msg {
  font-size: 0.75rem;
  color: var(--error);
  max-width: 200px;
}

/* ── Inline Edit ── */
.inline-editable {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 3px;
  transition: background var(--transition-fast);
}

.inline-editable:hover {
  background: var(--bg-glass-hover);
}

.inline-edit-input {
  background: var(--bg-secondary);
  border: 1px solid var(--accent-primary);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--text-primary);
  font-size: inherit;
  font-weight: inherit;
  width: 100%;
}

/* ── Toast Notifications ── */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 16px);
  right: 16px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-lg);
  animation: toastSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  font-size: 0.88rem;
}

.toast.toast-success {
  border-left: 3px solid var(--success);
}

.toast.toast-error {
  border-left: 3px solid var(--error);
}

.toast.toast-warning {
  border-left: 3px solid var(--warning);
}

.toast.toast-info {
  border-left: 3px solid var(--info);
}

.toast.toast-exit {
  animation: toastSlideOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes toastSlideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ── Skeleton Loader ── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--bg-glass);
  border-radius: var(--radius-sm);
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

.skeleton-text {
  height: 14px;
  margin-bottom: 8px;
  width: 100%;
}

.skeleton-text:last-child {
  width: 60%;
}

.skeleton-title {
  height: 22px;
  width: 70%;
  margin-bottom: 12px;
}

.skeleton-card {
  height: 120px;
  margin-bottom: 8px;
  border-radius: var(--radius-lg);
}

.skeleton-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* ── Pagination ── */
.pagination {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 24px;
}

.pagination button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination button:hover {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

.pagination button.active {
  background: var(--accent-navy);
  border: none;
  color: #fff;
}

[data-theme="dark"] .pagination button.active {
  background: var(--accent-gradient);
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border-glass);
  padding: 32px 24px;
  margin-top: 64px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-inner .footer-text {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Modal ── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.modal-lg {
  max-width: 900px;
}

.modal.modal-xl {
  max-width: 1100px;
  max-height: 90vh;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-glass);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ── Tabs (Sahibinden tarzı) ── */
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border-glass);
  margin-bottom: 20px;
}

.tab {
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tab:hover {
  color: var(--text-primary);
}

.tab.active {
  color: var(--accent-navy);
  border-bottom-color: var(--accent-navy);
  font-weight: 600;
}

[data-theme="dark"] .tab.active {
  color: var(--accent-secondary);
  border-bottom-color: var(--accent-secondary);
}

/* ── Checkbox ── */
.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-glass);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.checkbox-wrapper input[type="checkbox"]:checked {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
  animation: fadeIn 0.2s ease;
}

/* ── Mobil-only elemanlar: masaüstünde gizle ── */
.bottom-nav,
.mobile-filter-bar,
.mobile-brand-chips,
.mobile-sort-sheet,
.mobile-sort-overlay {
  display: none;
}

.mobile-menu .mobile-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-menu .mobile-nav a {
  display: block;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
}

.mobile-menu .mobile-nav a:hover,
.mobile-menu .mobile-nav a.active {
  background: var(--bg-glass-hover);
  color: var(--text-primary);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .page-wrapper.with-sidebar {
    grid-template-columns: 1fr;
  }
  
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .filter-sidebar {
    position: static;
    max-height: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .admin-layout {
    grid-template-columns: 1fr;
  }
  
  .admin-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
  }
  
  .admin-sidebar .admin-menu {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding: 0 16px;
  }
  
  .admin-sidebar .admin-menu li a {
    white-space: nowrap;
    padding: 8px 16px;
    border-right: none;
    border-radius: var(--radius-sm);
  }
  
  .admin-sidebar .admin-menu li a.active {
    border-right: none;
    background: rgba(79, 70, 229, 0.1);
  }
}

/* ══════════════════════════════════════════
   MOBILE (≤ 768px) - Sahibinden.com Stili
   ══════════════════════════════════════════ */
@media (max-width: 768px) {

  /* ── Navbar ── */
  .navbar-nav { display: none; }
  .nav-search  { display: none; }
  .hamburger   { display: block; }

  /* Navbar sağ taraf: giriş butonu sığmalı */
  .navbar-right {
    gap: 4px;
    overflow: hidden;
  }

  .navbar-right > span {
    display: none; /* kullanıcı adını gizle */
  }

  .navbar-right .btn-ghost.btn-sm {
    font-size: 0.75rem;
    padding: 5px 8px;
  }

  .navbar-right .btn-secondary.btn-sm {
    font-size: 0.75rem;
    padding: 5px 10px;
    white-space: nowrap;
  }

  /* ── Navbar: tighter layout on small screens ── */
  .navbar {
    padding: 0 12px;
  }

  .navbar-inner {
    gap: 8px;
  }

  .navbar-brand .brand-logo {
    height: 48px;
  }

  /* ── Body padding for bottom nav ── */
  body {
    padding-bottom: 64px;
  }

  /* ── Hero: compact on mobile ── */
  .hero {
    padding: 16px 16px 12px;
    text-align: left;
  }

  .hero h1 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
  }

  .hero p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
  }

  .hero-stats {
    display: flex;
    gap: 0;
    margin-top: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    overflow: hidden;
  }

  .hero-stat {
    flex: 1;
    padding: 10px 8px;
    border-right: 1px solid var(--border-glass);
    text-align: center;
  }

  .hero-stat:last-child { border-right: none; }

  .hero-stat .stat-value {
    font-size: 1rem;
    font-weight: 800;
  }

  .hero-stat .stat-label {
    font-size: 0.6rem;
    letter-spacing: 0;
  }

  /* ── Layout: sidebar gizle ── */
  .page-wrapper {
    padding: 0;
  }

  .page-wrapper.with-sidebar {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Masaüstü filter sidebar: mobilde gizle */
  .page-wrapper.with-sidebar > aside.filter-sidebar {
    display: none;
  }

  /* ── Mobil Filtre Çubuğu (yuvarlak butonlar) ── */
  .mobile-filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-glass);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .mobile-filter-bar::-webkit-scrollbar { display: none; }

  .mobile-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-full);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
    flex-shrink: 0;
    min-height: 38px;
  }

  .mobile-filter-btn:hover,
  .mobile-filter-btn.active {
    background: var(--accent-glow);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
  }

  .mobile-filter-btn .mfb-icon {
    display: inline-flex;
  }

  .mobile-filter-btn .mfb-icon svg {
    width: 15px;
    height: 15px;
  }

  /* ── Mobil Marka Chips (yatay scroll) ── */
  .mobile-brand-chips {
    display: flex;
    gap: 8px;
    padding: 10px 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-glass);
  }

  .mobile-brand-chips::-webkit-scrollbar { display: none; }

  .mobile-brand-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg-card);
    border: 1px solid var(--border-glass);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    text-decoration: none;
  }

  .mobile-brand-chip:hover,
  .mobile-brand-chip.active {
    background: var(--accent-navy);
    border-color: var(--accent-navy);
    color: #fff;
  }

  [data-theme="dark"] .mobile-brand-chip.active {
    background: var(--accent-gradient);
    border-color: var(--accent-primary);
  }

  .mobile-brand-chip .mbc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  .mobile-brand-chip .mbc-logo {
    display: inline-flex;
    align-items: center;
  }

  .mobile-brand-chip .mbc-logo svg {
    width: 15px;
    height: 15px;
  }

  /* mobil sıralama seçeneği ikonu */
  .mobile-sort-option .mso-ico {
    display: inline-flex;
    color: var(--text-muted);
  }

  .mobile-sort-option .mso-ico svg {
    width: 18px;
    height: 18px;
  }

  .mobile-sort-option.active .mso-ico {
    color: var(--accent-primary);
  }

  .mobile-sort-option .mso-label {
    flex: 1;
  }

  .mobile-sort-option .mso-check svg {
    width: 17px;
    height: 17px;
  }

  /* ── Sonuç sayacı (mobil) ── */
  .results-count {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-bottom: 1px solid var(--border-glass);
    background: var(--bg-primary);
  }

  /* ── Pagination: mobil ── */
  .pagination {
    margin: 16px 0;
    gap: 3px;
  }

  .pagination button {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
  }

  /* ── Filter bar ── */
  .filter-bar {
    padding: 10px 12px;
    flex-direction: row;
    gap: 8px;
    flex-wrap: nowrap;           /* keeps search + sort in one row */
    overflow-x: auto;            /* if content still overflows, scroll within bar only */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-glass);
    max-width: 100%;
  }

  .filter-bar::-webkit-scrollbar { display: none; }

  .filter-bar .search-box {
    flex: 1;
    min-width: 0;
  }

  .filter-bar .search-box input {
    padding: 8px 12px 8px 32px;
    font-size: 0.82rem;
  }

  .sort-tabs {
    display: none; /* mobilde yukarıdaki filter bar ile değiştir */
  }

  /* ── Models grid ── */
  .models-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 0;
  }

  .model-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-glass);
    margin-bottom: 0;
  }

  /* ── Other ── */
  .specs-grid         { grid-template-columns: repeat(2, 1fr); }
  .strengths-weaknesses { grid-template-columns: 1fr; }
  .form-row           { grid-template-columns: 1fr; }
  .sidebar            { grid-template-columns: 1fr; }
  .filter-sidebar     { grid-template-columns: 1fr; }
  .articles-grid      { grid-template-columns: 1fr; padding: 0 12px; }
  .wizard-steps       { flex-wrap: wrap; }

  .auth-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .auth-page {
    padding: 20px 12px;
    align-items: flex-start;
  }

  .admin-main { padding: 12px; }

  .admin-layout {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .modal {
    margin: 8px;
    max-width: calc(100vw - 16px);
    max-height: 90vh;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  /* Geniş hero padding'i sıfırla */
  .model-hero {
    padding: 24px 16px;
    border-radius: 0;
    margin: 0 0 0 0;
  }

  .page-wrapper {
    max-width: 100%;
    width: 100%;
    overflow-x: hidden;
  }

  /* Fault detail sayfası — inline max-width'i override et */
  .page-wrapper[style*="max-width"] {
    max-width: 100% !important;  /* force full-width on mobile regardless of inline style */
    width: 100% !important;
    padding: 12px 14px;
  }

  /* articles / masraf / modeller pages: add padding */
  .page-wrapper:not(.with-sidebar) {
    padding: 0;
  }

  .page-wrapper:not(.with-sidebar) .hero {
    padding: 16px;
  }

  /* ── Floating sort sheet (mobil sırala) ── */
  .mobile-sort-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-glass);
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    z-index: 1100;
    padding: 20px;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
    animation: slideUpSheet 0.3s cubic-bezier(0.4,0,0.2,1);
  }

  .mobile-sort-sheet.open { display: block; }

  @keyframes slideUpSheet {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
  }

  .mobile-sort-sheet-handle {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--border-glass);
    margin: 0 auto 16px;
  }

  .mobile-sort-sheet h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
  }

  .mobile-sort-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
    background: none;
    width: 100%;
    text-align: left;
    margin-bottom: 4px;
  }

  .mobile-sort-option:hover,
  .mobile-sort-option.active {
    background: rgba(232,130,12,0.08);
    border-color: rgba(232,130,12,0.2);
    color: var(--accent-primary);
    font-weight: 600;
  }

  .mobile-sort-option .mso-check {
    margin-left: auto;
    font-size: 1rem;
    color: var(--accent-primary);
    opacity: 0;
  }

  .mobile-sort-option.active .mso-check { opacity: 1; }

  /* ── Bottom Navigation Bar ── */
  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--bg-card);
    border-top: 1px solid var(--border-glass);
    z-index: 1000;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.1);
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 4px;
    color: var(--text-muted);
    font-size: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    transition: color var(--transition-fast);
    position: relative;
  }

  .bottom-nav-item:hover,
  .bottom-nav-item.active {
    color: var(--accent-primary);
  }

  .bottom-nav-item .bni-icon {
    font-size: 1.1rem;
    line-height: 1;
    display: inline-flex;
  }

  .bottom-nav-item .bni-icon svg {
    width: 22px;
    height: 22px;
  }

  /* Ortadaki ilan ver butonu */
  .bottom-nav-item.bni-center {
    color: #fff;
  }

  .bottom-nav-item.bni-center .bni-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 4px 12px var(--accent-glow);
    margin-bottom: -4px;
    margin-top: -10px;
    transition: transform var(--transition-fast);
  }

  .bottom-nav-item.bni-center:hover .bni-circle {
    transform: scale(1.08);
  }

  .bottom-nav-item.bni-center .bni-label {
    color: var(--accent-primary);
    font-weight: 700;
  }

  /* ── Site footer gizle (bottom nav var) ── */
  .site-footer {
    display: none;
  }

  /* ── Sort sheet overlay ── */
  .mobile-sort-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1099;
  }

  .mobile-sort-overlay.open { display: block; }
}

/* ── Animations ── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger > * {
  opacity: 0;
  animation: fadeInUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }
.stagger > *:nth-child(7) { animation-delay: 0.35s; }
.stagger > *:nth-child(8) { animation-delay: 0.4s; }
.stagger > *:nth-child(9) { animation-delay: 0.45s; }
.stagger > *:nth-child(10) { animation-delay: 0.5s; }

/* ══════════════════════════════════════════
   FORUM THREAD ROW - Ana Sayfa Arıza Listesi
   ══════════════════════════════════════════ */

/* Container for the forum-style fault list */
.fault-thread-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .fault-thread-list {
    gap: 10px;
  }

  .fault-card {
    gap: 11px;
    padding: 13px 12px 13px 16px;
  }

  .fc-brandmark {
    width: 40px;
    height: 40px;
    font-size: 0.72rem;
  }

  .fc-title {
    font-size: 0.88rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 6px;
  }

  .fc-meta {
    gap: 6px;
  }

  .fc-meta-brand {
    font-size: 0.76rem;
  }

  /* km etiketini dar ekranda gizle */
  .fc-tag:last-child {
    display: none;
  }

  .fc-cost {
    display: none; /* maliyet detay sayfasında; listede oy CTA öne çıksın */
  }

  .fc-vote {
    width: 56px;
    padding: 7px 3px;
  }

  .fc-vote-count {
    font-size: 0.95rem;
  }
}

/* ── 360px: smallest common phones ── */
@media (max-width: 360px) {
  .fc-brandmark {
    display: none;
  }
  .fc-title {
    font-size: 0.84rem;
  }
}

/* ── Utility ── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Bulk Selection ── */
.row-selected {
  background: rgba(79, 70, 229, 0.08) !important;
}

.row-selected td {
  border-color: rgba(79, 70, 229, 0.15);
}

[data-theme="dark"] .row-selected {
  background: rgba(79, 70, 229, 0.12) !important;
}

/* ── Screen Reader Only (SEO) ── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
