/**
 * Anasayfa (index) — hero, kategori kartları, mobil arama/CTA, spin.
 * app/templates/index.html inline stillerden ayrıldı.
 */

.hero-panel {
  background: linear-gradient(180deg, #f8fbff 0%, #e8f0ff 55%, #eef5ff 100%);
  border: 1px solid #dbeafe;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(13, 71, 161, 0.08);
}
.hero-intro {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-title {
  color: #0d47a1;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.hero-lead {
  color: #374151;
  font-size: 1.05rem;
  line-height: 1.5;
  margin-bottom: 0;
}
.hero-trust-row {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-search-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.06);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-search-row {
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}
.hp-hero-figure {
  border-radius: 16px;
  overflow: hidden;
  background: radial-gradient(120% 85% at 10% 0%, rgba(13, 110, 253, 0.12) 0%, rgba(255, 255, 255, 0) 60%),
    radial-gradient(120% 85% at 90% 10%, rgba(255, 193, 7, 0.12) 0%, rgba(255, 255, 255, 0) 60%);
  border: 1px solid rgba(219, 234, 254, 0.9);
  box-shadow: 0 10px 28px rgba(13, 71, 161, 0.08);
}
.hp-hero-figure {
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
}
.hp-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 35 / 27;
  object-fit: cover;
  object-position: center 35%;
}
.hp-hero-img--photo {
  min-height: 14rem;
}
@media (min-width: 992px) {
  .hp-hero-img--photo {
    min-height: 17rem;
  }
}

.hp-role-card__thumb {
  width: 100%;
  height: 10rem;
  background: #e2e8f0;
}
.hp-role-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (min-width: 768px) {
  .hp-role-card__thumb {
    width: 38%;
    max-width: 13.5rem;
    height: auto;
    min-height: 11rem;
  }
}
.hero-search-panel .form-label {
  font-weight: 600;
  color: #495057;
}
.hero-provider-cta {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.hero-role-split {
  max-width: 48rem;
}
.hp-role-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.hp-role-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5rem 1.25rem rgba(15, 23, 42, 0.12) !important;
  border-color: rgba(13, 110, 253, 0.45) !important;
}
.hp-role-card--saglayici:hover {
  border-color: rgba(255, 193, 7, 0.65) !important;
}
.hp-role-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .hp-role-card { transition: none; }
  .hp-role-card:hover { transform: none; }
}
.hp-social-proof {
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}
.hp-proof-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(6px);
}
.hp-proof-pill strong {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a;
}
.hp-proof-pill i {
  font-size: 1.05rem;
}
.trust-badge {
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.trust-badge i { margin-right: 0.35rem; }
.trust-green { background: #ecfdf3; color: #047857; border-color: #a7f3d0; }
.trust-blue { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.trust-purple { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }
.trust-orange { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.35rem 0.8rem rgba(15, 23, 42, 0.1);
  filter: saturate(1.05);
}
.trust-badge-btn {
  background: none;
  cursor: pointer;
}
.trust-badge-btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .trust-badge { transition: none; }
  .trust-badge:hover { transform: none; box-shadow: none; filter: none; }

  .campaign-add-card,
  .one-cikan-kategori-card,
  .category-card {
    transition: none;
  }

  .campaign-add-card:hover,
  .one-cikan-kategori-card:hover,
  .category-card:hover {
    transform: none;
    box-shadow: none;
  }

  .spin {
    animation: none;
  }
}
.campaign-add-card {
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.campaign-add-card:hover {
  border-color: #0d6efd !important;
  box-shadow: 0 0.4rem 0.9rem rgba(13, 110, 253, 0.12);
  transform: translateY(-1px);
}
.one-cikan-kategori-card {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 0.75rem 0.9rem;
  min-height: 72px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.one-cikan-kategori-card:hover {
  border-color: #bfdbfe;
  box-shadow: 0 0.4rem 0.9rem rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}
.one-cikan-kategori-card .emoji {
  font-size: 1.2rem;
  line-height: 1;
}
.mobile-sticky-cta {
  position: fixed;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  left: 10px;
  right: 100px;
  z-index: 1043;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbeafe;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 0.5rem;
  backdrop-filter: blur(3px);
}
@media (min-width: 992px) {
  .mobile-sticky-cta { display: none !important; }
}
@media (max-width: 575.98px) {
  .hero-panel .card-body { padding: 1rem !important; }
  .hero-title { font-size: 1.45rem; }
  .hero-lead { font-size: 0.95rem; }
  .one-cikan-kategori-card { min-height: 64px; padding: 0.6rem 0.65rem; }
  .one-cikan-kategori-card .emoji { font-size: 1.05rem; }
  .mobile-sticky-cta { left: 8px; right: 76px; padding: 0.4rem; }
}
[data-theme="dark"] .hero-panel {
  background: linear-gradient(180deg, #0f172a 0%, #1e293b 55%, #172554 100%) !important;
  border-color: #334155 !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .hero-title {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .hero-lead {
  color: #cbd5e1 !important;
}
[data-theme="dark"] .hero-search-panel {
  background: #111a2e !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .hero-search-panel .form-label {
  color: #e2e8f0 !important;
}
[data-theme="dark"] .trust-green {
  background: rgba(6, 78, 59, 0.5) !important;
  color: #6ee7b7 !important;
  border-color: #059669 !important;
}
[data-theme="dark"] .trust-blue {
  background: rgba(30, 58, 138, 0.5) !important;
  color: #93c5fd !important;
  border-color: #2563eb !important;
}
[data-theme="dark"] .trust-purple {
  background: rgba(76, 29, 149, 0.45) !important;
  color: #c4b5fd !important;
  border-color: #7c3aed !important;
}
[data-theme="dark"] .trust-orange {
  background: rgba(154, 52, 18, 0.45) !important;
  color: #fdba74 !important;
  border-color: #ea580c !important;
}
[data-theme="dark"] .mobile-sticky-cta {
  background: rgba(17, 26, 46, 0.96) !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .one-cikan-kategori-card {
  background: #111a2e !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}
[data-theme="dark"] .hero-provider-cta.alert-light {
  background: rgba(17, 26, 46, 0.92) !important;
  border-color: rgba(59, 130, 246, 0.45) !important;
  color: #e2e8f0;
}
[data-theme="dark"] .hero-provider-cta .text-muted {
  color: #94a3b8 !important;
}

.category-card { transition: transform 0.12s ease, box-shadow 0.12s ease; }
.category-card:hover { transform: translateY(-2px); box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08); }

/* Mobil: arama / dokunma */
@media (max-width: 767.98px) {
  .hero-search-form .form-control-lg,
  .hero-search-form .form-select-lg {
    font-size: 16px !important; /* iOS zoom önleme */
    min-height: 52px !important;
  }

  .hero-search-form .btn-lg {
    min-height: 52px !important;
  }

  .hero-title {
    font-size: 1.6rem !important;
    line-height: 1.3;
  }

  .trust-badge {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }

  .btn {
    min-height: 44px;
    min-width: 44px;
  }
}

.spin {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* index.html: eski inline stiller */
.hp-home-provider-icon {
  width: 56px;
  height: 56px;
}
.hp-home-sticky-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.hp-home-howit-works {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
}
.hp-home-step-num {
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
}
.hp-home-misyon-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
