/*
Theme Name: SuBayileri Premium
Theme URI: https://subayileri.com
Description: Premium su bayileri teması - Apple minimal stil
Version: 2.0
*/

:root {
  --blue: #0071e3;
  --blue-dark: #0058b0;
  --text: #1d1d1f;
  --text-secondary: #424245;
  --text-muted: #6e6e73;
  --bg: #ffffff;
  --card-glass: rgba(255,255,255,0.85);
  --border: rgba(0,0,0,0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --font: -apple-system,BlinkMacSystemFont,'SF Pro Display','Segoe UI',sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: #f0f8ff;
  background-image: url('/wp-content/themes/subayileri-theme/assets/hero-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.80);
  z-index: 0;
  pointer-events: none;
}

.site-inner { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
}
.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo span { color: var(--blue); }

.nav-menu {
  display: flex;
  gap: 24px;
  list-style: none;
  align-items: center;
}
.nav-menu a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-menu a:hover { color: var(--blue); }

.nav-cta {
  background: var(--blue);
  color: #fff !important;
  font-size: 13px;
  padding: 7px 16px;
  border-radius: 20px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--blue-dark) !important; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobil menü */
.mobile-menu {
  display: none;
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
  z-index: 99;
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 15px;
  color: var(--text);
  padding: 12px 0;
  border-bottom: 0.5px solid var(--border);
  text-decoration: none;
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .nav-cta {
  margin-top: 12px;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: var(--card-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
}

/* ===== HERO ===== */
.hero {
  text-align: center;
  padding: 80px 24px 64px;
  max-width: 1200px;
  margin: 0 auto;
}
.hero h1 {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 32px;
}
.hero h1 span { color: var(--blue); }

/* ===== SEARCH BAR ===== */
.search-bar {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(255,255,255,0.95);
  border-radius: 16px;
  padding: 6px 6px 6px 18px;
  gap: 8px;
  border: 0.5px solid var(--border);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.search-bar input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: var(--font);
  min-width: 0;
}
.search-bar select {
  border: none;
  background: transparent;
  font-size: 14px;
  color: var(--text-secondary);
  outline: none;
  padding: 4px 6px;
  border-left: 0.5px solid var(--border);
  font-family: var(--font);
  max-width: 140px;
}
.search-bar button {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.search-bar button:hover { background: var(--blue-dark); }

/* ===== STATS ===== */
.stats-bar {
  display: flex;
  justify-content: center;
  max-width: 680px;
  margin: 40px auto;
}
.stat-item {
  flex: 1;
  text-align: center;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(8px);
  border: 0.5px solid var(--border);
  padding: 20px 12px;
}
.stat-item:first-child { border-radius: 14px 0 0 14px; }
.stat-item:last-child { border-radius: 0 14px 14px 0; }
.stat-item + .stat-item { border-left: none; }
.stat-num { font-size: 24px; font-weight: 700; letter-spacing: -0.5px; color: var(--text); }
.stat-label { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

/* ===== SECTION ===== */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 40px;
}
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text);
  margin-bottom: 8px;
}
.section p, .glass-card > p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== BRANDS GRID ===== */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}
.brand-item {
  background: rgba(255,255,255,0.9);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.brand-item:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.brand-logo-img { max-width: 100px; max-height: 44px; object-fit: contain; }
.brand-logo-placeholder { width: 80px; height: 36px; background: #f5f5f7; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #424245; }
.brand-name { font-size: 12px; color: var(--text); font-weight: 500; }
.brand-tag { font-size: 11px; color: var(--text-muted); }

/* ===== CITIES ===== */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.city-card {
  background: rgba(255,255,255,0.85);
  border: 0.5px solid var(--border);
  border-radius: 12px;
  padding: 16px 10px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}
.city-card:hover { background: var(--blue); }
.city-card:hover .city-name, .city-card:hover .city-count { color: #fff; }
.city-name { font-size: 13px; font-weight: 500; color: var(--text); }
.city-count { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

/* ===== STEPS ===== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 20px;
}
.step-card {
  background: rgba(255,255,255,0.85);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 24px 16px;
  text-align: center;
}
.step-num {
  width: 36px; height: 36px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  margin: 0 auto 14px;
}
.step-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.step-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ===== BAYILER GRID ===== */
.bayiler-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 20px;
}
.bayi-kart {
  background: rgba(255,255,255,0.9);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: transform 0.2s;
}
.bayi-kart:hover { transform: translateY(-2px); }
.bayi-kart h3 { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.bayi-kart p { font-size: 13px; color: var(--text-muted); margin: 4px 0; }
.bayi-detay-link { font-size: 13px; color: var(--blue); margin-top: 10px; display: inline-block; }

/* ===== SEO İÇERİK ===== */
.seo-icerik {
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  border: 0.5px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  margin-bottom: 28px;
  line-height: 1.9;
}
.seo-icerik h3 { font-size: 15px; font-weight: 600; color: var(--blue); margin: 20px 0 8px; }
.seo-icerik h3:first-child { margin-top: 0; }
.seo-icerik p { font-size: 14px; color: var(--text-secondary); margin-bottom: 12px; }

/* ===== TAX HERO ===== */
.tax-hero {
  text-align: center;
  padding: 60px 24px 48px;
  max-width: 1200px;
  margin: 0 auto;
}
.tax-hero h1 { font-size: 36px; font-weight: 700; letter-spacing: -0.8px; color: var(--text); margin-bottom: 12px; }
.tax-hero p { font-size: 16px; color: var(--text-secondary); }
.tax-logo { max-height: 80px; max-width: 200px; object-fit: contain; background: rgba(255,255,255,0.9); border-radius: 12px; padding: 10px 18px; margin: 0 auto 20px; border: 0.5px solid var(--border); }

/* ===== ALT ŞEHİRLER ===== */
.alt-sehirler { margin-bottom: 28px; }
.alt-sehirler h3 { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.alt-sehir-listesi { display: flex; flex-wrap: wrap; gap: 8px; }
.alt-sehir-listesi a {
  background: rgba(255,255,255,0.85);
  color: var(--blue);
  padding: 6px 14px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 13px;
  border: 0.5px solid var(--border);
  transition: all 0.2s;
}
.alt-sehir-listesi a:hover { background: var(--blue); color: #fff; }

/* ===== BREADCRUMB ===== */
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb span { color: var(--text-muted); }

/* ===== BUTTONS ===== */
.btn-primary {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.2s;
  display: inline-block;
  text-decoration: none;
}
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 12px 28px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.2s;
  display: inline-block;
  text-decoration: none;
  margin-left: 10px;
}
.btn-outline:hover { background: var(--blue); color: #fff; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: rgba(0,113,227,0.88);
  backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
  margin-bottom: 72px;
}
.cta-section h2 { font-size: 32px; font-weight: 700; letter-spacing: -0.8px; color: #fff; margin-bottom: 12px; }
.cta-section p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 32px; }
.cta-section .btn-primary { background: #fff; color: var(--blue); }
.cta-section .btn-primary:hover { background: #f0f0f0; color: var(--blue); }
.cta-section .btn-outline { color: #fff; border-color: rgba(255,255,255,0.5); }
.cta-section .btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* ===== FORM ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 6px; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 0.5px solid rgba(0,0,0,0.15);
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--text);
  background: rgba(255,255,255,0.9);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--blue); }
.form-group textarea { height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ===== SINGLE BAYI ===== */
.single-bayi-wrap { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.bayi-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.bayi-info-card { background: rgba(255,255,255,0.85); border: 0.5px solid var(--border); border-radius: 14px; padding: 18px; }
.bayi-info-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.bayi-info-value { font-size: 14px; font-weight: 500; color: var(--text); }
.bayi-info-value a { color: var(--blue); }

/* ===== BOŞ MESAJ ===== */
.bos-mesaj { text-align: center; padding: 48px 20px; }
.bos-mesaj p { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  border-top: 0.5px solid var(--border);
  padding: 48px 24px 28px;
  margin-top: 60px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid var(--border);
}
.footer-brand { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.footer-brand span { color: var(--blue); }
.footer-desc { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 12px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a { font-size: 13px; color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--blue); }
.footer-bottom {
  max-width: 1200px;
  margin: 20px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cities-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== TABLET KÜÇÜK (max 768px) ===== */
@media (max-width: 768px) {
  /* Nav */
  .nav-menu { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  /* Hero */
  .hero { padding: 48px 20px 40px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.8px; margin-bottom: 24px; }

  /* Search */
  .search-bar {
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    border-radius: 16px;
    align-items: stretch;
  }
  .search-bar > div:first-child { display: flex; align-items: center; gap: 8px; }
  .search-bar input { font-size: 14px; }
  .search-bar select {
    border-left: none;
    border-top: 0.5px solid var(--border);
    padding: 10px 12px;
    max-width: 100%;
    width: 100%;
    font-size: 14px;
  }
  .search-bar button {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    font-size: 15px;
  }

  /* Stats */
  .stats-bar { max-width: 100%; margin: 24px 20px; }
  .stat-num { font-size: 20px; }
  .stat-label { font-size: 10px; }

  /* Section */
  .section { padding: 0 16px 32px; }
  .glass-card { padding: 20px; border-radius: 16px; }
  .section h2 { font-size: 22px; }

  /* Brands */
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .brand-item { padding: 14px 10px; }
  .brand-logo-img { max-height: 36px; }

  /* Cities */
  .cities-grid { grid-template-columns: repeat(2, 1fr); }

  /* Steps */
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .step-card { padding: 18px 12px; }
  .step-title { font-size: 12px; }
  .step-desc { font-size: 11px; }

  /* Bayiler */
  .bayiler-grid { grid-template-columns: 1fr; }

  /* Tax hero */
  .tax-hero { padding: 40px 20px 32px; }
  .tax-hero h1 { font-size: 26px; }

  /* Bayi info */
  .bayi-info-grid { grid-template-columns: 1fr; }

  /* Form */
  .form-row { grid-template-columns: 1fr; }

  /* CTA */
  .cta-section { padding: 40px 20px; margin-bottom: 40px; border-radius: 16px; }
  .cta-section h2 { font-size: 24px; }
  .cta-section p { font-size: 14px; }
  .btn-outline { margin-left: 0; margin-top: 10px; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  /* Single bayi */
  .single-bayi-wrap { padding: 24px 16px 60px; }

  /* SEO icerik */
  .seo-icerik { padding: 20px; }
}

/* ===== MOBİL (max 480px) ===== */
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .brands-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .brand-item { padding: 12px 8px; }
  .brand-name { font-size: 11px; }
  .steps-grid { grid-template-columns: 1fr; }
  .cities-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 14px 8px; }
  .stat-num { font-size: 18px; }
  .nav-wrap { padding: 0 16px; }
  .site-logo { font-size: 16px; }
  .glass-card { padding: 16px; }
  .tax-hero h1 { font-size: 22px; }
  .section h2 { font-size: 20px; }
  .cta-section h2 { font-size: 20px; }
  .btn-primary, .btn-outline { padding: 11px 20px; font-size: 13px; }
}
