/* ================================================
   GoldFirma v2 — Ana Stil
   ================================================ */

:root {
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --dark: #1a1a2e;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #1f2937;
  background: #fff;
}

/* ---- Kart hover efektleri ---- */
.firma-card, .category-card, .city-card, .hero-category-card {
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
  border-radius: var(--radius) !important;
}
.firma-card:hover, .category-card:hover, .city-card:hover, .hero-category-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 42px rgba(0,0,0,.18) !important;
}

.category-card {
  --cat-color: var(--gold);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 154px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.95) !important;
  border-radius: 12px !important;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--cat-color);
}

.category-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.category-icon-wrap {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 50px;
  border-radius: 12px;
  color: #fff;
  background: var(--cat-color);
  box-shadow: 0 10px 18px rgba(15,23,42,.12);
}

.category-icon-wrap i {
  font-size: 1.35rem;
  transition: transform .2s ease;
}

.category-count {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  font-size: .74rem;
  font-weight: 800;
}

.category-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
}

.category-name {
  min-height: 2.55em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #0f172a;
  font-size: .92rem;
  font-weight: 800;
  line-height: 1.28;
}

.category-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  color: #64748b;
  font-size: .72rem;
  font-weight: 700;
}

.category-meta i {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  border-radius: 999px;
  color: var(--cat-color);
  background: rgba(248,250,252,.95);
  border: 1px solid #e2e8f0;
  font-size: .68rem;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

.category-card:hover {
  border-color: rgba(148,163,184,.65) !important;
  background: #fff;
  box-shadow: 0 18px 34px rgba(15,23,42,.12) !important;
}

.category-card:hover .category-icon-wrap i {
  transform: scale(1.08);
}

.category-card:hover .category-meta i {
  transform: translateX(3px);
  color: #fff;
  background: var(--cat-color);
  border-color: var(--cat-color);
}

/* ---- Navbar ---- */
.navbar-brand { font-size: 1.4rem; letter-spacing: -.5px; }

/* ---- Badge overrides ---- */
.badge { font-weight: 500; }

/* ---- Hero Arama ---- */
#heroSearch:focus { box-shadow: 0 0 0 3px rgba(245,158,11,.25); }

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15,23,42,.86), rgba(15,23,42,.56) 48%, rgba(15,23,42,.42)),
    url('../img/home-business-bg.jpg') center/cover no-repeat !important;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 28%, #000 82%, transparent);
  pointer-events: none;
}

.home-hero > .container {
  position: relative;
  z-index: 1;
}

.home-hero .card {
  backdrop-filter: blur(10px);
}

.hero-category-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1) !important;
  box-shadow: 0 12px 30px rgba(0,0,0,.16);
}

.hero-category-card:hover {
  background: rgba(255,255,255,.24) !important;
  border-color: rgba(245,158,11,.45) !important;
  box-shadow: 0 20px 44px rgba(0,0,0,.28), 0 0 0 3px rgba(245,158,11,.15) !important;
}

.hero-category-card i {
  transition: transform .22s ease, filter .22s ease;
}

.hero-category-card:hover i {
  transform: translateY(-2px) scale(1.08);
  filter: drop-shadow(0 8px 14px rgba(245,158,11,.24));
}

.home-categories {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(248,250,252,.86), rgba(255,255,255,.8)),
    url('../img/home-business-bg.jpg') center 54%/cover no-repeat !important;
}

.home-categories::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(245,158,11,.1), transparent 34%),
    linear-gradient(300deg, rgba(15,52,96,.1), transparent 38%);
  pointer-events: none;
}

.home-categories > .container {
  position: relative;
  z-index: 1;
}

.home-section-heading {
  max-width: 620px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  color: #92400e;
  background: rgba(245,158,11,.14);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 576px) {
  .category-card {
    min-height: 142px;
    padding: 12px;
  }
  .category-icon-wrap {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 12px;
  }
  .category-name {
    font-size: .82rem;
  }
  .category-meta {
    font-size: .68rem;
  }
}

.gold-firm-logo-wrap {
  height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background:
    radial-gradient(circle at 24% 18%, rgba(245,158,11,.18), transparent 34%),
    linear-gradient(135deg, #fff7ed, #f8fafc 52%, #eef2ff);
  border-bottom: 1px solid rgba(148,163,184,.16);
}

.gold-firm-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
  border: 1px solid rgba(226,232,240,.9);
  box-shadow: 0 12px 30px rgba(15,23,42,.1);
}

.gold-firm-logo-placeholder {
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 12px 30px rgba(245,158,11,.28);
}

.firma-card:hover .gold-firm-logo,
.firma-card:hover .gold-firm-logo-placeholder {
  transform: scale(1.05);
}

.gold-firm-logo,
.gold-firm-logo-placeholder {
  transition: transform .22s ease;
}

/* ---- Galeri ---- */
.galeri-item { transition: opacity .2s; }
.galeri-item:hover { opacity: .85; }

/* ---- Firma profil kapak ---- */
.firma-cover { height: 280px; object-fit: cover; width: 100%; }

/* ---- Reklam ---- */
.ad-banner {
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 2px solid #f59e0b;
}

/* ---- Pagination ---- */
.page-link { border-radius: 8px !important; margin: 0 2px; }

/* ---- Utilities ---- */
.rounded-12 { border-radius: 12px !important; }
.rounded-16 { border-radius: 16px !important; }
.text-gold   { color: var(--gold) !important; }
.bg-gold     { background: var(--gold) !important; }

/* ---- Harita kapsayıcı ---- */
#cityMap, #firmaMap { border-radius: var(--radius); overflow: hidden; }

/* ---- Footer ---- */
footer a:hover { color: var(--gold) !important; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .firma-cover { height: 180px; }
  .display-5 { font-size: 1.8rem; }
}

/* ---- Animasyon ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeInUp .4s ease forwards; }
