/* ===================================================================
   GÜNDÜZ OTO — Koyu Turuncu / Açık Gri / Modern Akıcı Tasarım
   =================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700&family=Rajdhani:wght@600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  /* Renkler */
  --orange-primary: #d35400;     /* Koyu tok turuncu */
  --orange-dark: #b84500;        /* Daha derin turuncu */
  
  --blue-primary: #0b3c8c;
  --blue-royal: #1251b5;
  --blue-gradient: linear-gradient(135deg, #0b3c8c 0%, #164eab 100%);

  --red: #d32f2f;

  /* Arka Planlar */
  --bg-main: #374151;            /* Açıklaştırılmış orta gri */
  --bg-card: #4b5563;            /* Kart arkaplanı */
  --bg-card-hover: #525e6f;
  
  --text-main: #f9fafb;
  --text-muted: #d1d5db;
  --text-dark: #111827;
  --text-light: #ffffff;
  
  /* Belirgin Kalın Siyah Çizgiler */
  --border-black: #111827;
  --line-thickness: 6px;
  
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.18);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.28);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.38);

  --font-display: 'Rajdhani', -apple-system, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 10px;
  --container: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 0.5em;
  color: var(--text-light);
}

h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { color: var(--text-muted); margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Header / Nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--orange-primary);
  border-bottom: var(--line-thickness) solid var(--border-black);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: var(--container);
  margin: 0 auto;
}

/* Çift Logo Bölümü */
.brand-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-divider {
  width: 2px;
  height: 38px;
  background: rgba(17, 24, 39, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.25s ease;
}

.brand img {
  height: 64px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transition: all 0.25s ease;
}

.brand:hover img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)) brightness(1.05);
}

.eurorepar-brand {
  display: flex;
  align-items: center;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.eurorepar-brand:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.eurorepar-brand img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #ffffff;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-links a:hover {
  background: rgba(0, 0, 0, 0.25);
  color: #ffffff;
}

.nav-links a.active {
  background: #ffffff;
  color: var(--orange-primary);
  border: 2px solid var(--border-black);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: var(--orange-primary) !important;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 2px solid var(--border-black);
  font-size: 0.92rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  background: var(--border-black);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border: 2px solid var(--border-black);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 2px solid var(--border-black);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background: var(--orange-primary);
  color: var(--text-light);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.btn-outline {
  background: rgba(17, 24, 39, 0.4);
  color: #ffffff;
}
.btn-outline:hover {
  background: #ffffff;
  color: var(--text-dark);
  border-color: var(--border-black);
  transform: translateY(-2px);
}

.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-whatsapp {
  background: #25D366;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}
.btn-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-2px);
}

/* ---------- Yedek Parça Kontrol Paneli & Buton Filtreleri ---------- */

.catalog-control-panel {
  background: rgba(17, 24, 39, 0.4);
  border: 3px solid var(--border-black);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.category-filter-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.category-filter-btn {
  display: inline-flex;
  align-items: center;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 2px solid var(--border-black);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.category-filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-light);
  transform: translateY(-2px);
  border-color: var(--orange-primary);
}

.category-filter-btn.active {
  background: var(--orange-primary);
  color: #ffffff;
  border-color: var(--border-black);
  box-shadow: 0 4px 12px rgba(211, 84, 0, 0.45);
}

.search-toolbar {
  display: flex;
  width: 100%;
}

.search-input-group {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 680px;
  flex-wrap: wrap;
}

.search-input-group input[type="text"] {
  flex: 1;
  min-width: 260px;
  background: var(--bg-card);
  border: 2px solid var(--border-black);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 12px 18px;
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.2s ease;
}

.search-input-group input[type="text"]:focus {
  border-color: var(--orange-primary);
}

/* ---------- Parça Kartları Grid ---------- */

.parts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.part-card {
  background: var(--bg-card);
  border: 3px solid var(--border-black);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.part-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--orange-primary);
  box-shadow: var(--shadow-md);
}

.part-code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #fbbf24;
  font-weight: 700;
  margin-bottom: 8px;
  display: inline-block;
}

.part-card h3 {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.4;
}

.part-category-tag {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.stock-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border-black);
  margin-bottom: 18px;
}

.stock-in { background: #065f46; color: #34d399; }
.stock-out { background: #881337; color: #fda4af; }
.stock-ask { background: #78350f; color: #fde68a; }

.empty-state {
  background: var(--bg-card);
  border: 3px dashed var(--border-black);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 0;
  background: radial-gradient(circle at 80% 40%, #4b5563 0%, var(--bg-main) 65%);
  border-bottom: var(--line-thickness) solid var(--border-black);
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-primary);
  background: #ffffff;
  border: 2px solid var(--border-black);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
}

.hero-title {
  color: var(--text-light);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--orange-primary);
  border-top: var(--line-thickness) solid var(--border-black);
  padding: 48px 0 28px;
  margin-top: 60px;
  color: #ffffff;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.25s ease;
}

.footer-brand img {
  height: 60px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
  transition: all 0.25s ease;
}

.footer-brand:hover img {
  transform: translateY(-2px) scale(1.02);
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.6)) brightness(1.05);
}

.footer-divider {
  height: 32px;
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  transition: opacity 0.2s ease;
}

.footer-links a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.footer-bottom {
  border-top: 2px solid var(--border-black);
  padding-top: 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.95);
  text-align: left;
}

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  .brand-group { gap: 10px; }
  .brand-divider { height: 26px; }
  .brand img { height: 46px; }
  .eurorepar-brand img { height: 26px; }
  .footer-brand img { height: 44px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-wrap.open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--orange-dark);
    border-bottom: var(--line-thickness) solid var(--border-black);
    padding: 16px 24px;
  }
  .nav-wrap.open .nav-cta { display: inline-flex; margin: 10px 24px 16px; }
  .search-input-group { flex-direction: column; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}