/* ============================================================
   TETZ2026 — Genel stiller
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

:root {
  --bg: #0f1115;
  --surface: #181b22;
  --surface-2: #1f232c;
  --border: #2a2f3a;
  --text: #e6e8ee;
  --text-muted: #9aa1ad;
  --primary: #4f8cff;
  --primary-hover: #6aa0ff;
  --primary-soft: #1e2a44;
  --accent: #6aa0ff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 24px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --gap: 16px;
  --navbar-height: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --green-50: #f0fdf4;
  --green-100: #dcfce7;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --green-700: #15803d;
  --white: #ffffff;
  --navbar-height: 64px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* --- Sayfa düzeni --- */

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding-top: var(--navbar-height);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--navbar-height);
  background: rgba(24, 27, 34, 0.96);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(8px);
}

.navbar-inner {
  max-width: 1200px;
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.brand-text {
  font-size: 20px;
  letter-spacing: 0.2px;
}

.brand-accent {
  color: var(--primary);
}

.navbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.navbar-links a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}

.navbar-links a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.navbar-cta,
.navbar-cta:hover {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.navbar-cta:hover {
  background: var(--primary-hover);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 40px;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-lead {
  max-width: 680px;
  margin: 16px auto 0;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  color: var(--text-muted);
}

.hero-desc {
  max-width: 620px;
  margin: 10px auto 0;
  font-size: 15px;
  color: var(--text-muted);
}

.hero-cta {
  display: inline-block;
  margin-top: 22px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s ease, transform 0.2s ease;
}

.hero-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.navbar__links a {
  color: #334155;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

/* ── Main content ── */
.main-content {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

#map-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 480px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.yukleniyor {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  color: var(--text-muted);
  font-size: 14px;
}

.hata-mesaji {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  padding: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  gap: 8px;
}

.hata-mesaji strong {
  color: #ef4444;
  font-size: 16px;
}

.hata-mesaji__ipucu {
  margin-top: 12px;
  font-size: 12px;
  max-width: 360px;
}

.hata-mesaji code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--primary);
}

#content-area {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-y: auto;
  box-shadow: var(--shadow-sm);
}

#content-area h2 {
  margin-bottom: 8px;
  font-size: 18px;
}

#content-area .welcome p {
  color: var(--text-muted);
  margin-bottom: 6px;
}

.muted {
  color: var(--text-muted);
  font-size: 13px;
}

/* ── Stats section ── */
.stats-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 28px 24px 32px;
}

.stats-section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.stats-heading {
  font-size: 18px;
  margin-bottom: 16px;
  color: var(--text);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.stat-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}

.stat-value--text {
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stats-loading,
.stats-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 12px;
}

#stats-bar strong {
  color: var(--text);
  font-weight: 600;
}

/* --- Hoş geldin / kullanım rehberi --- */

.hosgeldin h2 {
  font-size: 18px;
  margin-bottom: 10px;
}

.hosgeldin .aciklama {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.adimlar {
  padding-left: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.adimlar li {
  margin-bottom: 8px;
}

.adimlar li::marker {
  color: var(--primary);
}

/* ============================================================
   Fuar kat planı (map.js tarafından doldurulur)
   ============================================================ */

.fuar-kat-plani {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 480px;
}

.fuar-kat-plani__header {
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
}

.fuar-kat-plani__header h2 {
  font-size: 16px;
  font-weight: 600;
}

.fuar-kat-plani__header p {
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.fuar-kat-plani__body {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  flex: 1;
  min-height: 0;
}

/* Stand ızgarası */
.fuar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  padding: 16px;
  overflow-y: auto;
  align-content: start;
}

.fuar-stand {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 100px;
  padding: 12px 8px;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.fuar-stand:hover,
.fuar-stand:focus-visible {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  outline: none;
}

.oneriler h2 {
  margin-bottom: 12px;
  font-size: 18px;
}

.eslesme-kartlari {
  display: grid;
  gap: 12px;
}

.eslesme-kart {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.eslesme-kart__ust {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
}

.eslesme-kart__ust h3 {
  font-size: 16px;
}

.eslesme-kart__puan {
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.eslesme-kart__okul {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 10px;
}

.eslesme-kart__etiket-baslik {
  font-size: 12px;
  color: var(--text-muted);
}

.etiket-listesi {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.etiket {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.btn-tanis {
  width: 100%;
  margin-top: 12px;
}

/* Öğrenci kartları (components/cards.js) */
.student-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--gap);
}

.student-list-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 32px 16px;
  font-size: 14px;
}

.student-card {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.student-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.student-card__body {
  flex: 1;
  padding: 18px;
}

.student-card__name {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.student-card__school {
  color: var(--text-muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.student-card__label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.student-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.student-card__no-interests {
  color: var(--text-muted);
  font-size: 13px;
  font-style: italic;
}

.interest-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: color-mix(in srgb, var(--chip-color, var(--primary)) 18%, transparent);
  color: var(--chip-color, var(--primary));
  border: 1px solid color-mix(in srgb, var(--chip-color, var(--primary)) 35%, transparent);
}

.interest-chip--fallback {
  --chip-color: var(--text-muted);
}

.interest-chip__icon {
  font-size: 13px;
  line-height: 1;
}

.student-card__footer {
  padding: 12px 18px 18px;
}

.student-card__btn {
  width: 100%;
  padding: 10px 14px;
  font-weight: 600;
}

.fuar-stand__icon {
  font-size: 28px;
  line-height: 1;
}

.fuar-stand__name {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.fuar-stand__hover {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  font-size: 13px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.fuar-stand:hover .fuar-stand__hover,
.fuar-stand:focus-visible .fuar-stand__hover {
  opacity: 1;
}

.fuar-stand--secili {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Sağ panel — öğrenci listesi */
.fuar-panel {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--border);
  background: var(--surface-2);
  min-height: 0;
}

.fuar-panel__baslik {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.fuar-panel__baslik h3 {
  font-size: 15px;
}

.fuar-panel__baslik p {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.fuar-panel__icerik {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 16px;
}

.fuar-panel__mesaj {
  color: var(--text-muted);
  font-size: 14px;
  text-align: center;
  padding: 24px 12px;
}

/* Öğrenci kartları */
.ogrenci-kartlari {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ogrenci-kart {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}

.ogrenci-kart__ad {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.ogrenci-kart__bilgi {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.ogrenci-kart__ilgiler {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ogrenci-kart__etiket {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(79, 140, 255, 0.15);
  color: var(--primary);
  border: 1px solid rgba(79, 140, 255, 0.25);
}

.ogrenci-kartlari--bos {
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  padding: 32px 16px;
}

/* --- Mobil uyum --- */

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .main-content {
    grid-template-columns: 1fr;
  }

  #map-container,
  .fuar-kat-plani,
  .yukleniyor {
    min-height: 320px;
  }
  .eslesme-kart__ust {
    flex-direction: column;
  }
  .student-grid {
    grid-template-columns: 1fr;
  }

  .fuar-kat-plani__body {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .fuar-panel {
    border-left: none;
    border-top: 1px solid var(--border);
    max-height: 280px;
  }

  .fuar-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .fuar-stand {
    min-height: 88px;
  }

  .fuar-stand__icon {
    font-size: 24px;
  }

  .fuar-stand__name {
    font-size: 11px;
  }

  .navbar-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 36px 20px 28px;
  }

  .stat-card {
    padding: 16px 18px;
  }
}

@media (max-width: 540px) {
  .navbar__links {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }
}
