@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg:         #F4F1EC;
  --surface:    #EDE9E2;
  --card:       #F0EDE7;
  --s-out:      6px 6px 14px #D4D0C9, -6px -6px 14px #FFFFFF;
  --s-out-sm:   3px 3px 8px #D4D0C9, -3px -3px 8px #FFFFFF;
  --s-in:       inset 3px 3px 8px #CCC8C1, inset -3px -3px 8px #FFFFFF;
  --s-btn:      3px 3px 8px #D0CCC5, -3px -3px 8px #FFFFFF;
  --orange:     #E8620A;
  --orange-dk:  #C04E05;
  --orange-lt:  #FFF0E8;
  --text:       #2C2620;
  --muted:      #7A6F65;
  --hint:       #B0A89E;
  --success:    #3B6D11;
  --success-bg: #EAF3DE;
  --danger:     #A32D2D;
  --danger-bg:  #FCEBEB;
  --border:     rgba(44,38,32,.07);
  --radius:     16px;
  --radius-sm:  10px;
  --serif:      'DM Serif Display', Georgia, serif;
  --sans:       'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar {
  background: var(--bg);
  padding: 0 24px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 10px #D4D0C9, 0 -1px 0 #fff;
  position: sticky;
  top: 0;
  z-index: 100;
}
.brand {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--orange);
  letter-spacing: -.3px;
}
.brand sub {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .5px;
  vertical-align: middle;
  margin-left: 4px;
}
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-badge {
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 50px;
  background: var(--bg); box-shadow: var(--s-in);
  color: var(--muted);
}
.nav-badge.premium { color: var(--orange-dk); }
.nav-badge.superadmin, .nav-badge.editor { color: #5b21b6; }
.limit-badge {
  font-size: 11px; color: var(--muted);
  padding: 3px 10px; border-radius: 50px;
  background: var(--bg); box-shadow: var(--s-in);
}
.limit-badge.premium { color: var(--orange); }

/* ── BUTONLAR ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  padding: 8px 20px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 3px 3px 8px #C9500A, -1px -1px 4px rgba(255,255,255,.25);
  transition: background .15s;
}
.btn-primary:hover { background: var(--orange-dk); text-decoration: none; }
.btn-primary.lg { padding: 12px 28px; font-size: 15px; border-radius: 14px; }
.btn-primary.full { width: 100%; padding: 12px; font-size: 15px; border-radius: 14px; }

.btn-outline {
  display: inline-block;
  padding: 8px 18px;
  background: var(--bg);
  color: var(--muted);
  border: none;
  border-radius: 50px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  box-shadow: var(--s-btn);
}
.btn-outline:hover { color: var(--text); text-decoration: none; }

.btn-link { font-size: 13px; color: var(--muted); background: none; border: none; cursor: pointer; }

/* ── HERO ────────────────────────────────────────────────────── */
.hero {
  padding: 52px 24px 40px;
  text-align: center;
  background: var(--bg);
}
.hero-badge {
  display: inline-block;
  background: var(--orange-lt);
  color: var(--orange-dk);
  font-size: 11px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 4px 16px; border-radius: 50px;
  margin-bottom: 16px;
  box-shadow: var(--s-in);
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 42px);
  line-height: 1.2;
  letter-spacing: -.5px;
  margin-bottom: 10px;
}
.hero h1 em { color: var(--orange); font-style: normal; }
.hero p { font-size: 15px; color: var(--muted); margin-bottom: 32px; }

/* ── ARAMA KUTUSU ────────────────────────────────────────────── */
.search-box {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg);
  border-radius: 20px;
  padding: 20px;
  box-shadow: var(--s-out);
}
.search-row { display: flex; gap: 10px; flex-wrap: wrap; }
.search-row select,
.search-row input {
  flex: 1; min-width: 130px;
  padding: 10px 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--bg);
  box-shadow: var(--s-in);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
  outline: none;
}
.search-row select:focus,
.search-row input:focus { box-shadow: var(--s-in), 0 0 0 2px rgba(232,98,10,.2); }
.btn-search {
  padding: 10px 24px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px; font-weight: 600;
  cursor: pointer;
  box-shadow: 3px 3px 8px #C9500A;
  white-space: nowrap;
}
.btn-search:hover { background: var(--orange-dk); }

/* ── ÖZELLİK KARTLARI ───────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  max-width: 860px;
  margin: 40px auto;
  padding: 0 24px;
}
.feat-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  box-shadow: var(--s-out);
}
.feat-icon {
  width: 48px; height: 48px;
  background: var(--orange-lt);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  box-shadow: var(--s-in);
  font-size: 22px;
}
.feat-card h3 { font-family: var(--serif); font-size: 16px; margin-bottom: 6px; }
.feat-card p  { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ── SONUÇ SAYFASI ───────────────────────────────────────────── */
.result-page { max-width: 760px; margin: 0 auto; padding: 28px 20px 64px; }
.result-header { margin-bottom: 20px; }
.back-link { font-size: 13px; color: var(--muted); }
.result-header h1 {
  font-family: var(--serif);
  font-size: 26px;
  margin: 8px 0 6px;
  letter-spacing: -.3px;
}
.source-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.source-tag {
  display: inline-block;
  font-size: 10px; font-weight: 600;
  letter-spacing: .5px; text-transform: uppercase;
  padding: 3px 10px; border-radius: 50px;
  background: var(--bg); box-shadow: var(--s-in);
  color: var(--hint);
}
.source-tag.active { color: var(--orange-dk); background: var(--orange-lt); }

.karne { display: flex; flex-direction: column; gap: 16px; }

/* ── KART ────────────────────────────────────────────────────── */
.card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--s-out);
}
.card-title {
  font-size: 10px; font-weight: 600;
  letter-spacing: .8px; text-transform: uppercase;
  color: var(--hint); margin-bottom: 16px;
}

/* Skor kartı */
.score-row { display: flex; align-items: center; gap: 22px; }
.score-ring {
  width: 80px; height: 80px;
  border-radius: 50%;
  box-shadow: var(--s-out);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  flex-shrink: 0; position: relative;
}
.score-ring::after {
  content: '';
  position: absolute; inset: 7px;
  border-radius: 50%;
  box-shadow: var(--s-in);
}
.score-num {
  font-family: var(--serif);
  font-size: 28px; color: var(--orange);
  line-height: 1; position: relative; z-index: 1;
}
.score-max { font-size: 11px; color: var(--hint); position: relative; z-index: 1; }
.score-info h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 6px; }
.score-label {
  display: inline-block;
  font-size: 11px; font-weight: 600;
  padding: 3px 12px; border-radius: 50px;
}
.score-label.high   { background: var(--success-bg); color: var(--success); }
.score-label.mid    { background: #FEF3C7; color: #92400E; }
.score-label.low    { background: var(--danger-bg); color: var(--danger); }

/* Fiyat grid */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.price-item {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  box-shadow: var(--s-in);
}
.price-label { font-size: 10px; font-weight: 600; color: var(--hint); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.price-val   { font-family: var(--serif); font-size: 20px; color: var(--text); }
.price-val em { font-family: var(--sans); font-size: 13px; color: var(--hint); font-style: normal; }
.price-trend { font-size: 11px; font-weight: 600; margin-top: 3px; }
.up   { color: var(--success); }
.down { color: var(--danger); }

/* Veri kaynağı satırı */
.data-source-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--hint);
  margin-top: 12px; padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Demografik tag */
.demo-tag {
  display: inline-block;
  padding: 6px 16px; border-radius: 50px;
  background: var(--bg); box-shadow: var(--s-in);
  font-size: 13px; font-weight: 500; color: var(--orange-dk);
}

/* Notlar */
.note-item {
  display: flex; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.note-item:last-child { border: none; padding-bottom: 0; }
.note-pill {
  font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase;
  padding: 3px 9px; border-radius: 50px;
  white-space: nowrap; height: fit-content; flex-shrink: 0;
  box-shadow: 1px 1px 3px #D0CCC5;
}
.note-pill.metro    { background: #EEEDFE; color: #3C3489; }
.note-pill.hastane  { background: #FCEBEB; color: #7f1d1d; }
.note-pill.imar     { background: #FEF3C7; color: #92400E; }
.note-pill.okul     { background: var(--success-bg); color: var(--success); }
.note-pill.yol      { background: #E0F2FE; color: #075985; }
.note-pill.genel    { background: var(--surface); color: var(--muted); }
.note-body strong   { font-size: 14px; font-weight: 500; }
.note-body p        { font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.5; }
.note-year          { font-size: 11px; color: var(--orange); font-weight: 600; margin-left: 8px; }

/* WhatsApp */
.wa-card { text-align: center; }
.wa-card > p { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.btn-wa {
  display: inline-block;
  padding: 12px 30px;
  background: var(--bg);
  color: #1A7340;
  border: none; border-radius: 50px;
  font-family: var(--sans); font-size: 15px; font-weight: 700;
  box-shadow: var(--s-out);
  cursor: pointer;
}
.btn-wa:hover { box-shadow: var(--s-btn); text-decoration: none; }

/* ── LİMİT DUVARI ────────────────────────────────────────────── */
.limit-overlay {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--s-out);
  max-width: 440px;
  margin: 40px auto;
}
.limit-icon { font-size: 48px; display: block; margin-bottom: 16px; }
.limit-overlay h2 { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.limit-overlay p  { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.limit-overlay .hint { font-size: 12px; color: var(--hint); margin-top: 10px; }
.blur-wrap { filter: blur(5px); pointer-events: none; user-select: none; opacity: .6; }

/* ── AUTH ────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.auth-box {
  background: var(--bg);
  border-radius: 20px;
  padding: 40px 36px;
  width: 100%; max-width: 400px;
  box-shadow: var(--s-out);
}
.auth-box .brand { display: block; margin-bottom: 24px; }
.auth-box h1 { font-family: var(--serif); font-size: 26px; margin-bottom: 4px; }
.auth-box .sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.auth-box label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 13px; font-weight: 600;
  margin-bottom: 16px;
}
.auth-box input {
  padding: 10px 14px;
  border: none; border-radius: var(--radius-sm);
  background: var(--bg); box-shadow: var(--s-in);
  font-family: var(--sans); font-size: 14px;
  color: var(--text); outline: none;
}
.auth-box input:focus { box-shadow: var(--s-in), 0 0 0 2px rgba(232,98,10,.2); }
.auth-link { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }

/* ── ALERT ───────────────────────────────────────────────────── */
.alert {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 13px; margin-bottom: 16px;
}
.alert.success { background: var(--success-bg); color: #065f46; }
.alert.error   { background: var(--danger-bg);  color: #7f1d1d; }

/* ── FOOTER ──────────────────────────────────────────────────── */
.footer {
  text-align: center; padding: 28px 24px;
  font-size: 11px; color: var(--hint);
  border-top: 1px solid var(--border);
  box-shadow: 0 -2px 6px rgba(212,208,201,.4);
}

.muted { color: var(--hint); }

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .search-row { flex-direction: column; }
  .price-grid { grid-template-columns: 1fr; }
  .score-row  { flex-direction: column; text-align: center; }
  .nav-right  { gap: 6px; }
  .hero       { padding: 36px 16px 28px; }
}
