/* =============================================
   İsmim Kaç Tane - style.css
   Koyu lacivert tema, beyaz/mavi, minimal
   ============================================= */

:root {
  --bg-deep:       #0a0f1e;
  --bg-main:       #111827;
  --bg-card:       #1a2236;
  --bg-card-hover: #1e2a40;
  --bg-input:      #111827;

  --accent:        #3b82f6;
  --accent-hover:  #2563eb;

  --text-primary:  #ffffff;
  --text-secondary:#e2e8f0;
  --text-muted:    #64748b;

  --border:        rgba(255,255,255,0.08);
  --border-hover:  rgba(255,255,255,0.18);

  --radius:        12px;
  --radius-sm:     7px;
  --radius-lg:     18px;
  --shadow:        0 4px 20px rgba(0,0,0,0.4);

  --nav-h:         64px;
  --sidebar-w:     200px;
  --transition:    0.2s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { max-width: 100%; }

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--bg-card-hover); border-radius: 3px; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(10,15,30,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.navbar-inner {
  max-width: 1400px; margin: 0 auto;
  height: 100%;
  display: flex; align-items: center; gap: 16px;
  padding: 0 20px;
}
.nav-logo {
  display: flex; align-items: center;
  white-space: nowrap; flex-shrink: 0;
}
.nav-logo-text {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}
.nav-ad-center {
  flex: 1; display: flex; justify-content: center; align-items: center;
}
.nav-ad-slot {
  width: 100%; max-width: 468px; height: 60px;
}
.nav-links {
  display: flex; align-items: center; gap: 4px; flex-shrink: 0;
}
.nav-links a {
  padding: 6px 13px; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 500; color: var(--text-muted);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 8px; border-radius: var(--radius-sm);
  transition: var(--transition);
}
.hamburger span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text-secondary); border-radius: 2px;
}
.hamburger:hover { background: rgba(255,255,255,0.06); }

/* ---- MOBILE MENU ---- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(10,15,30,0.98);
  display: flex; flex-direction: column;
  padding: 24px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 40px;
}
.mobile-close {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  display: grid; place-items: center;
  font-size: 1.1rem; color: var(--text-secondary);
  transition: var(--transition);
}
.mobile-close:hover { background: rgba(255,255,255,0.12); color: white; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-links a {
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition);
}
.mobile-nav-links a:hover {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
}

/* ===================== LAYOUT ===================== */
.page-wrapper {
  padding-top: var(--nav-h);
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
  gap: 20px;
  padding-left: 16px; padding-right: 16px;
}
.main-content { min-width: 0; padding: 32px 0; }

/* ===================== SIDEBARS ===================== */
.sidebar {
  padding-top: 32px;
  display: flex; flex-direction: column; gap: 20px;
}
.sidebar-ad-slot {
  width: 160px; min-height: 600px;
}
.sidebar-ad-slot-sm {
  width: 160px; min-height: 250px;
}
.sticky-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }

/* ===================== HERO ===================== */
.hero {
  text-align: center;
  padding: 48px 20px 36px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.78rem; color: #93c5fd;
  margin-bottom: 22px;
  letter-spacing: 0.3px;
}
.hero-badge-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.5s infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-title {
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 800; line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.hero-title span { color: var(--text-primary); }
.hero-subtitle {
  font-size: 1rem; color: var(--text-muted);
  max-width: 480px; margin: 0 auto 36px;
  line-height: 1.65;
}

/* ---- SEARCH BOX ---- */
.search-wrap { position: relative; max-width: 560px; margin: 0 auto 12px; }
.search-glow {
  position: absolute; inset: -1px; border-radius: calc(var(--radius-lg) + 1px);
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.25s;
  z-index: 0;
}
.search-wrap:focus-within .search-glow { opacity: 0.4; }
.search-box {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  background: var(--bg-input);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 5px 5px 5px 18px;
  gap: 10px;
  transition: border-color 0.2s;
}
.search-wrap:focus-within .search-box { border-color: rgba(59,130,246,0.5); }
.search-icon { font-size: 1rem; color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1; background: none; border: none; outline: none;
  font-size: 1.1rem; color: var(--text-primary);
  font-family: inherit;
}
.search-input::placeholder { color: var(--text-muted); }
.search-btn {
  background: var(--accent);
  color: white; font-weight: 600; font-size: 0.9rem;
  padding: 11px 26px; border-radius: calc(var(--radius-lg) - 5px);
  transition: background 0.2s;
  white-space: nowrap;
}
.search-btn:hover { background: var(--accent-hover); }
.search-hint {
  font-size: 0.78rem; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 8px;
  text-align: center;
}
.search-hint kbd {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px; font-size: 0.72rem;
}

/* ---- CITY SELECT ---- */
.city-select-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin-top: 14px;
}
.city-select-label {
  font-size: 0.85rem; color: var(--text-secondary); white-space: nowrap;
}
.city-select {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.88rem;
  outline: none;
  cursor: pointer;
  transition: border-color var(--transition);
  min-width: 180px;
}
.city-select:hover, .city-select:focus {
  border-color: var(--accent);
}
.city-select option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* ===================== LOADING ===================== */
.loading-overlay {
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 60px 20px; gap: 18px;
}
.loading-overlay.active { display: flex; }
.spinner-ring {
  width: 48px; height: 48px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-size: 0.9rem; color: var(--text-muted);
  text-align: center;
}
.progress-bar-wrap {
  width: 100%; max-width: 340px;
  height: 3px; background: var(--bg-card);
  border-radius: 2px; overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0%;
  transition: width 0.3s ease;
}
.progress-label { font-size: 0.75rem; color: var(--text-muted); }

/* ===================== RESULTS ===================== */
.results-section { display: none; animation: fadeUp 0.4s ease; }
.results-section.visible { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.results-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.results-title { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }
.results-title em { font-style: normal; color: var(--text-primary); }
.results-sort { display: flex; gap: 6px; }
.sort-btn {
  padding: 5px 13px; border-radius: var(--radius-sm);
  font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--border); color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
}
.sort-btn:hover, .sort-btn.active {
  background: rgba(255,255,255,0.08);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

/* ---- SUMMARY CARDS ---- */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
.summary-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  text-align: center;
  transition: var(--transition);
}
.summary-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.summary-card-icon { font-size: 1.4rem; margin-bottom: 8px; }
.summary-card-label {
  font-size: 0.75rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 8px;
}
.summary-card-value {
  font-size: 2rem; font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

/* ---- RARITY BADGE ---- */
.rarity-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.rarity-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 100px;
  font-weight: 600; font-size: 0.85rem;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.rarity-info { flex: 1; }
.rarity-title { font-weight: 600; margin-bottom: 3px; font-size: 0.95rem; }
.rarity-desc { font-size: 0.85rem; color: var(--text-muted); }
.rarity-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; opacity: 0.7; }

.il-no-data { color: var(--text-muted); font-size: 0.9rem; padding: 12px 0; }

/* ---- PROVINCE GRID ---- */
.il-grid-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.section-title {
  font-size: 0.78rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 1.2px;
}
.il-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 8px;
  margin-bottom: 28px;
}
.il-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 14px 12px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.il-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}
.il-card-name {
  font-size: 0.78rem; color: var(--text-muted);
  margin-bottom: 7px; font-weight: 500;
}
.il-card-count {
  font-size: 1.4rem; font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
}
.il-card-bar-wrap {
  height: 2px; background: rgba(255,255,255,0.06);
  border-radius: 1px; overflow: hidden;
}
.il-card-bar {
  height: 100%; border-radius: 1px;
  background: var(--accent);
  transition: width 1.2s cubic-bezier(0.16,1,0.3,1);
}
.il-card-zero .il-card-count { color: var(--text-muted); font-size: 1rem; }
.il-card-zero { opacity: 0.45; }
.il-card-rank {
  position: absolute; top: 7px; right: 7px;
  font-size: 0.62rem; color: var(--text-muted);
  background: var(--bg-main); border-radius: 4px; padding: 1px 5px;
}

/* ===================== POPULAR SECTION ===================== */
.popular-section { padding: 32px 0 16px; }
.popular-header { text-align: center; margin-bottom: 24px; }
.popular-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.popular-subtitle { font-size: 0.9rem; color: var(--text-muted); }
.popular-tabs {
  display: flex; justify-content: center; gap: 6px; margin-bottom: 20px;
}
.pop-tab {
  padding: 7px 20px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted); background: var(--bg-card);
  transition: var(--transition);
}
.pop-tab.active, .pop-tab:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.popular-group       { margin-bottom: 28px; }
.popular-group-title { font-size: 1rem; font-weight: 600; margin-bottom: 12px; color: var(--text-secondary); }
.erkek-title         { color: #60a5fa; }
.kiz-title           { color: #f472b6; }

.popular-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.popular-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: var(--transition); cursor: pointer;
  min-width: 0;
}
.popular-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
}
.popular-rank  { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); min-width: 22px; flex-shrink: 0; }
.popular-name  { font-size: 0.95rem; font-weight: 600; color: var(--text-primary); flex: 1; min-width: 0; }
.popular-count { font-size: 0.88rem; color: var(--accent); font-weight: 700; white-space: nowrap; flex-shrink: 0; }
.popular-card.erkek .popular-count { color: #60a5fa; }
.popular-card.kiz   .popular-count { color: #f472b6; }

.popular-loading {
  grid-column: 1 / -1;
  text-align: center; padding: 28px; color: var(--text-muted); font-size: 0.88rem;
}

/* ===================== AD STRIPS ===================== */
.ad-strip {
  margin: 24px 0;
  height: 90px;
}
.footer-ad {
  margin: 20px auto 0;
  max-width: 728px; height: 90px;
}

/* ===================== ABOUT INLINE ===================== */
.about-inline {
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.about-inline-title {
  font-size: 1.1rem; font-weight: 700;
  color: var(--text-primary); margin-bottom: 16px;
}
.about-inline p {
  font-size: 0.9rem; color: var(--text-muted);
  line-height: 1.75; margin-bottom: 10px;
}
.about-inline p:last-child { margin-bottom: 0; }
.about-inline strong { color: var(--text-secondary); }

/* ===================== NADIR SECTION ===================== */
.nadir-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  margin: 24px 0;
  text-align: center;
}
.nadir-title { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; }
.nadir-desc { font-size: 0.92rem; color: var(--text-muted); max-width: 460px; margin: 0 auto 20px; line-height: 1.65; }
.nadir-search-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent);
  color: white; font-weight: 600; font-size: 0.9rem;
  padding: 11px 26px; border-radius: 100px;
  transition: background 0.2s;
}
.nadir-search-btn:hover { background: var(--accent-hover); }

/* ===================== FOOTER ===================== */
.footer {
  margin-top: 60px;
  padding: 28px 20px 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-links {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 18px;
  margin-bottom: 14px;
}
.footer-links a {
  font-size: 0.85rem; color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* ===================== ERROR TOAST ===================== */
.toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid rgba(239,68,68,0.35);
  color: #f87171;
  border-radius: var(--radius);
  padding: 11px 22px;
  font-size: 0.88rem; font-weight: 500;
  z-index: 9999;
  transition: transform 0.3s ease;
  pointer-events: none;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ===================== STATIC PAGES ===================== */
.static-page {
  max-width: 720px; margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 60px;
}
.static-page h1 {
  font-size: 1.8rem; font-weight: 800; margin-bottom: 10px;
  color: var(--text-primary);
}
.static-page .lead {
  color: var(--text-muted); font-size: 0.95rem; margin-bottom: 32px;
  padding-bottom: 22px; border-bottom: 1px solid var(--border);
  line-height: 1.65;
}
.static-page h2 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--text-secondary); margin: 28px 0 8px;
}
.static-page p {
  color: var(--text-muted); font-size: 0.93rem;
  line-height: 1.75; margin-bottom: 12px;
}
.static-page h3 {
  font-size: 0.96rem; font-weight: 700;
  color: var(--text-primary); margin: 20px 0 6px;
}
.static-page ul li {
  list-style: disc; margin-left: 18px;
  color: var(--text-muted); font-size: 0.93rem;
  line-height: 1.75; margin-bottom: 5px;
}
.static-page a { color: var(--accent); text-decoration: none; }
.static-page a:hover { text-decoration: underline; }

/* ===================== UTILITIES ===================== */
.hidden { display: none !important; }
.text-accent { color: var(--accent); }

/* ===================== RESPONSIVE ===================== */

/* Genel taşma önleme */
html, body { max-width: 100%; overflow-x: hidden; }
* { max-width: 100%; }

/* Ad slotları taşmasın */
.ad-strip, .footer-ad, .nav-ad-slot { overflow: hidden; }
.ad-strip ins, .footer-ad ins, .nav-ad-slot ins { max-width: 100% !important; }

@media (max-width: 1100px) {
  .page-wrapper { grid-template-columns: var(--sidebar-w) 1fr; }
  .sidebar-right { display: none; }
}

@media (max-width: 780px) {
  :root { --sidebar-w: 0px; }
  .page-wrapper { grid-template-columns: 1fr; padding: 0 12px; }
  .sidebar { display: none; }
  .summary-cards { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-ad-center { display: none; }
  .il-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 28px 12px 24px; }

  /* Mobilde reklam alanlarını gizle — içerik rahat görünsün */
  .ad-strip, .footer-ad { display: none; }

  /* Arama kutusu tam genişlik */
  .search-box { flex-wrap: wrap; }
  .search-input { min-width: 0; }

  /* Popüler grid tek kolon */
  .popular-grid { grid-template-columns: 1fr 1fr; }

  /* About inline padding küçült */
  .about-inline { padding: 20px 16px; }
}

@media (max-width: 480px) {
  .summary-cards { grid-template-columns: 1fr; }
  .summary-card-value { font-size: 1.7rem; }
  .rarity-section { flex-direction: column; text-align: center; }
  .search-btn { padding: 10px 16px; font-size: 0.88rem; }

  /* Popüler grid tek kolon küçük ekranda */
  .popular-grid { grid-template-columns: 1fr; }

  /* Şehir seçici tam genişlik */
  .city-select-wrap { flex-direction: column; align-items: flex-start; gap: 6px; }
  .city-select { width: 100%; }

  /* Hero başlık küçült */
  .hero-title { font-size: 1.5rem; }
  .hero-subtitle { font-size: 0.88rem; }
}
