/* ==========================================================================
   HİZMETSEKTOR.COM — TEMEL TASARIM SİSTEMİ
   Açık, ferah, kurumsal, sade. Koyu tema yok.
   ========================================================================== */

:root {
  /* Renkler */
  --color-primary: #00805A;
  --color-primary-hover: #00694A;
  --color-secondary: #1B2A4A;
  --color-accent: #F2A93B;
  --color-success: #1E9E5A;
  --color-warning: #E0A800;
  --color-error: #D64545;

  --bg-base: #FFFFFF;
  --bg-section: #F7F9F8;
  --bg-highlight: #E1F5EC;

  --text-heading: #111827;
  --text-body: #374151;
  --text-muted: #6B7280;

  --border-base: #E5E7EB;
  --border-hover: #CBD5D1;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --font-sans: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background: var(--bg-base);
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--text-heading);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 16px; }
small, .text-muted { color: var(--text-muted); font-size: 0.875rem; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  background: var(--bg-base);
  border-bottom: 1px solid var(--border-base);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  max-width: 1280px;
  margin: 0 auto;
  gap: 16px;
}
.site-header__logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-heading);
  flex-shrink: 0;
}
.site-header__logo span { color: var(--color-primary); }

.site-header__nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  justify-content: center;
  flex-wrap: wrap;
}
.site-header__nav a {
  color: var(--text-body);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
}
.site-header__nav a:hover { color: var(--color-primary); text-decoration: none; }
.site-header__nav-account { display: none; } /* yalnızca mobil menüde görünür */

.site-header__actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

/* Bildirim zili */
.site-header__bell {
  position: relative;
  font-size: 1.1rem;
  text-decoration: none;
  padding: 6px;
  border-radius: 8px;
  line-height: 1;
}
.site-header__bell:hover { background: var(--bg-section); text-decoration: none; }
.site-header__bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--color-error);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 999px;
  line-height: 1.3;
  min-width: 15px;
  text-align: center;
}

/* Kullanıcı avatar + dropdown */
.site-header__user { position: relative; }
.site-header__user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1px solid var(--border-base);
  border-radius: 999px;
  padding: 5px 12px 5px 5px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.site-header__user-btn:hover { border-color: var(--border-hover); }
.site-header__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.site-header__user-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-heading);
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.site-header__caret { font-size: 0.65rem; color: var(--text-muted); }

.site-header__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(17,24,39,.1);
  min-width: 200px;
  padding: 8px;
  z-index: 60;
}
.site-header__dropdown.is-open { display: block; }
.site-header__dropdown a,
.site-header__dropdown-logout {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--text-body);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.site-header__dropdown a:hover,
.site-header__dropdown-logout:hover { background: var(--bg-section); text-decoration: none; }
.site-header__dropdown-logout { color: var(--color-error); font-weight: 600; }
.site-header__dropdown-divider { height: 1px; background: var(--border-base); margin: 6px 0; }

/* Hamburger (yalnızca mobilde görünür) */
.site-header__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.site-header__burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.site-header__burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header__burger.is-open span:nth-child(2) { opacity: 0; }
.site-header__burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(15, 110, 92, 0.25);
}
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: 0 4px 12px rgba(15, 110, 92, 0.32); }
.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn-outline:hover { background: var(--bg-highlight); box-shadow: 0 2px 8px rgba(17, 24, 39, 0.08); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }

/* ---- Forms ---- */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-heading);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text-body);
  background: var(--bg-base);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 110, 92, 0.15);
}
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 4px; }
.field-error { font-size: 0.8rem; color: var(--color-error); margin-top: 4px; }

/* ---- Şifre göster/gizle ---- */
.pw-wrap { position: relative; }
.pw-wrap .form-control { padding-right: 70px; }
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}
.pw-toggle:hover { text-decoration: underline; }

/* ---- Cards ---- */
.card {
  background: var(--bg-base);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
}

.auth-shell {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-highlight);
  padding: 48px 24px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--bg-base);
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  padding: 40px;
}
.auth-card h1 { font-size: 1.5rem; margin-bottom: 8px; }
.auth-card .subtitle { color: var(--text-muted); margin-bottom: 24px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 0.9rem; color: var(--text-muted); }

/* ---- Alerts ---- */
.alert {
  border-left: 4px solid;
  border-radius: 6px;
  padding: 12px 16px;
  margin-bottom: 20px;
  font-size: 0.9rem;
}
.alert-success { border-color: var(--color-success); background: rgba(30, 158, 90, .08); color: #0d5c34; }
.alert-error { border-color: var(--color-error); background: rgba(214, 69, 69, .08); color: #8a2b2b; }
.alert-warning { border-color: var(--color-warning); background: rgba(224, 168, 0, .08); color: #7a5900; }

/* ---- Badges ---- */
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-verified { background: #E6F4EF; color: var(--color-primary); }
.badge-featured { background: #FDF1DC; color: #8A5A00; }
.badge-premium { background: #EEF0FF; color: #3B3FA8; }
.badge-sponsored { background: #2B2B2B; color: #FFD86B; }

/* ---- Footer ---- */
.site-footer {
  background: var(--color-secondary);
  color: #D1D5DB;
  padding: 48px 0 24px;
  margin-top: 64px;
}
.site-footer a { color: #E5E7EB; }
.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 0.8rem;
  color: #9CA3AF;
  text-align: center;
}

/* ---- Hero ---- */
.hero {
  background: var(--bg-highlight);
  padding: 72px 24px;
  text-align: center;
}
.hero h1 { max-width: 720px; margin: 0 auto 16px; }
.hero p { max-width: 560px; margin: 0 auto 32px; color: var(--text-body); font-size: 1.05rem; }

.hero-search {
  max-width: 680px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  box-shadow: 0 8px 24px rgba(17,24,39,.08);
}
.hero-search select { flex: 1; min-width: 140px; }
.hero-search input[type="text"] { flex: 1.4; min-width: 200px; }
.hero-search .btn { flex-shrink: 0; }

/* ---- Güven şeridi (ana sayfa hero altı) ---- */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.trust-strip__item strong { color: var(--text-heading); font-size: 1.05rem; }
.trust-strip__sep { color: var(--border-hover); }

/* ---- Kategori ikon ızgarası (ana sayfa) ---- */
.category-grid-section { padding: 48px 24px; max-width: 1280px; margin: 0 auto; }
.category-grid-section__title { text-align: center; margin-bottom: 28px; }
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 16px;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 12px;
  background: #fff;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-body);
  text-align: center;
  transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease;
}
.category-tile:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08);
  transform: translateY(-2px);
  text-decoration: none;
}
.category-tile__icon {
  font-size: 1.8rem;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-highlight);
  border-radius: 50%;
}
.category-tile__label { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }

/* ---- Vitrin / Öne Çıkan Firmalar (ana sayfa) ---- */
.showcase { padding: 56px 24px; max-width: 1280px; margin: 0 auto; }
.showcase__eyebrow { color: var(--color-primary); font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.showcase__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 28px; }

.showcase-card {
  background: #fff;
  border: 1px solid var(--border-base);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .15s ease, border-color .15s ease;
}
.showcase-card:hover { border-color: var(--border-hover); box-shadow: 0 8px 20px rgba(17,24,39,.08); }

.showcase-card__media { position: relative; height: 170px; background: var(--bg-highlight); }
.showcase-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.showcase-card__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-highlight), #E4EEEA);
  color: var(--color-secondary);
  padding: 12px;
}
.showcase-card__placeholder .icon { font-size: 2rem; opacity: .55; margin-bottom: 8px; }
.showcase-card__placeholder .title { font-weight: 700; font-size: 0.82rem; line-height: 1.3; }
.showcase-card__placeholder .subtitle { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }

.showcase-card__badge-category {
  position: absolute; top: 10px; left: 10px;
  background: rgba(27,42,74,.82); color: #fff;
  font-size: 0.72rem; font-weight: 600;
  padding: 4px 10px; border-radius: 999px;
}
.showcase-card__badge-rating {
  position: absolute; top: 10px; right: 10px;
  background: var(--color-accent); color: #fff;
  font-size: 0.75rem; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
}
.showcase-card__badge-rating--empty { background: rgba(107,114,128,.55); }

.showcase-card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.showcase-card__name { font-size: 1.02rem; font-weight: 700; color: var(--text-heading); }
.showcase-card__desc { font-size: 0.85rem; color: var(--text-body); line-height: 1.45; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.showcase-card__location { font-size: 0.8rem; color: var(--text-muted); }
.showcase-card__cta { margin-top: 8px; }

.showcase__footer { text-align: center; margin-top: 32px; }

/* ---- Sponsorlu Firmalar bandı: sitenin kendi paletiyle (açık yeşil
   zemin) uyumlu, hafif ton farkıyla diğer bölümlerden ayrışıyor. ---- */
.sponsored-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--border-base);
  border-bottom: 1px solid var(--border-base);
  padding: 40px 24px;
}
.sponsored-strip__eyebrow {
  max-width: 1280px;
  margin: 0 auto 20px;
  color: var(--color-primary-hover);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sponsored-strip__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  /* auto-fill (auto-fit DEĞİL) + sabit üst sınır: az sayıda kart varken
     satırı doldurup tuhaf/boş görünmesin, kart normal genişliğinde kalsın. */
  grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
  gap: 20px;
  justify-content: start;
}
.sponsored-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bg-highlight);
  border: 1px solid var(--border-base);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: var(--text-body);
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.04);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.sponsored-card:hover { transform: translateY(-3px); border-color: var(--color-primary); box-shadow: 0 8px 20px rgba(17, 24, 39, 0.08); }
.sponsored-card__img { width: 100%; height: 140px; object-fit: contain; background: #fff; display: block; }
.sponsored-card__body { padding: 14px 16px 18px; }
.sponsored-card__name { font-weight: 700; font-size: 1.05rem; margin: 10px 0 4px; color: var(--text-heading); }
.sponsored-card__meta { color: var(--text-muted); font-size: 0.82rem; }
.showcase-card--cta {
  border: 2px dashed var(--border-hover);
  background: var(--bg-highlight);
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  text-decoration: none;
  min-height: 260px;
}
.showcase-card--cta:hover { border-color: var(--color-primary); background: #E4EEEA; }
.showcase-card--cta .icon { font-size: 2.2rem; margin-bottom: 12px; }
.showcase-card--cta .title { font-weight: 700; font-size: 1.02rem; color: var(--text-heading); margin-bottom: 6px; }
.showcase-card--cta .desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }

/* ---- Firma Rehberi filtre formu ve 2 kolonlu form grid'leri (madde 3.5) ---- */
.business-filter-form {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 24px;
}
.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .site-header__burger { display: flex; }

  .site-header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border-base);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    box-shadow: 0 8px 16px rgba(17,24,39,.06);
  }
  .site-header__nav.is-open { display: flex; }
  .site-header__nav a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--bg-section);
  }
  .site-header__nav-account {
    display: flex;
    flex-direction: column;
    border-top: 6px solid var(--bg-section);
    margin-top: 4px;
    padding-top: 4px;
  }
  .site-header__nav-account a { padding: 12px 24px; border-bottom: 1px solid var(--bg-section); }
  .site-header__nav-logout {
    text-align: left;
    background: none;
    border: none;
    color: var(--color-error);
    font-weight: 600;
    font-size: 0.92rem;
    padding: 12px 24px;
    width: 100%;
    cursor: pointer;
    font-family: var(--font-sans);
  }

  /* Mobilde kullanıcı adı gizlenir, sadece avatar görünür (yer tasarrufu) */
  .site-header__user-name { display: none; }
  .site-header__user-btn { padding: 5px; border: none; }
  .site-header__caret { display: none; }

  .auth-card { padding: 28px 20px; }
  .hero { padding: 48px 16px; }
  .hero-search { flex-direction: column; }
  .hero-search .btn { width: 100%; }

  /* Firma Rehberi filtre formu: 6 kolon mobilde tek kolona düşer (madde 3.5) */
  .business-filter-form { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px; }
  .category-tile { padding: 14px 8px; }
  .category-tile__icon { width: 44px; height: 44px; font-size: 1.4rem; }

  /* Kayıt formundaki 2 kolonlu alanlar (harita konumu, ilçe/telefon vb.) tek kolona düşer */
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ---- Admin paneli özel (kurumsal, daha yoğun bilgi mimarisi) ---- */
.admin-shell { display: flex; min-height: 100vh; background: var(--bg-section); }
.admin-sidebar {
  width: 240px;
  background: var(--color-secondary);
  color: #E5E7EB;
  padding: 24px 0;
  flex-shrink: 0;
}
.admin-sidebar__logo { padding: 0 24px 24px; font-weight: 700; font-size: 1.1rem; color: #fff; }
.admin-sidebar a {
  display: block;
  padding: 10px 24px;
  color: #CBD5D1;
  font-size: 0.9rem;
}
.admin-sidebar a:hover, .admin-sidebar a.active {
  background: rgba(255,255,255,.06);
  color: #fff;
  text-decoration: none;
}
.admin-main { flex: 1; padding: 32px; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card { background: #fff; border: 1px solid var(--border-base); border-radius: var(--radius-md); padding: 20px; }
.stat-card .value { font-size: 1.75rem; font-weight: 700; color: var(--text-heading); }
.stat-card .label { color: var(--text-muted); font-size: 0.85rem; }

table.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius-md); overflow: hidden; }
table.data-table th, table.data-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-base);
  font-size: 0.9rem;
}
table.data-table th { background: var(--bg-section); color: var(--text-muted); font-weight: 600; }
