:root {
  --bg: #0b0a0d;
  --bg-2: #131117;
  --card: #17151c;
  --card-2: #1e1b25;
  --line: #2b2733;
  --text: #ebe6dc;
  --muted: #8f8899;
  --accent: #c9a45c;      /* eski altın */
  --accent-2: #8e2b3a;    /* koyu bordo */
  --accent-soft: rgba(201, 164, 92, 0.12);
  --radius: 14px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
input { font: inherit; color: inherit; }
.hidden { display: none !important; }

.bg-fog {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vw at 15% -10%, rgba(142, 43, 58, 0.18), transparent 60%),
    radial-gradient(50vw 40vw at 100% 10%, rgba(201, 164, 92, 0.07), transparent 60%),
    radial-gradient(70vw 50vw at 50% 120%, rgba(60, 40, 90, 0.18), transparent 60%);
}

/* Üst bar */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(16px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 10, 13, 0.82);
  backdrop-filter: blur(10px);
}
.logo {
  font-family: var(--serif); font-size: 26px; font-weight: 700;
  color: var(--text); text-decoration: none; letter-spacing: 0.5px;
}
.logo span { color: var(--accent); font-style: italic; }
.fav-toggle {
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-size: 14px; color: var(--muted); transition: .2s;
}
.fav-toggle:hover { color: var(--text); border-color: var(--accent); }
.badge {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: var(--accent-2); color: #fff; font-size: 12px; text-align: center;
}

main { flex: 1; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Hero */
.hero { text-align: center; padding: 14vh 0 10vh; animation: rise .8s ease both; }
.eyebrow { text-transform: uppercase; letter-spacing: 4px; font-size: 12px; color: var(--accent); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 7vw, 86px); line-height: 1.02; }
.hero h1 em { color: var(--accent); }
.lead { max-width: 560px; margin: 24px auto 36px; color: var(--muted); font-size: 17px; }
.stats { margin-top: 28px; color: var(--muted); font-size: 13px; letter-spacing: 1px; }

/* Butonlar */
.btn {
  padding: 12px 22px; border-radius: 999px; font-weight: 500; transition: .2s;
  border: 1px solid var(--line); white-space: nowrap;
}
.btn.primary { background: var(--accent); color: #1a1408; border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.1); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(201,164,92,.25); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn.small { padding: 8px 14px; font-size: 13px; }
.icon-btn { width: 34px; height: 34px; border-radius: 50%; color: var(--muted); }
.icon-btn:hover { background: var(--card-2); color: var(--text); }

/* Sihirbaz */
.wizard { padding: 40px 0 60px; }
.steps { list-style: none; display: flex; gap: 10px; justify-content: center; margin-bottom: 44px; flex-wrap: wrap; }
.steps li {
  display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px;
  padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.steps li span {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--card-2); font-size: 12px;
}
.steps li.active { color: var(--text); border-color: var(--accent); }
.steps li.active span { background: var(--accent); color: #1a1408; }
.steps li.done span { background: var(--accent-soft); color: var(--accent); }

.step { display: none; animation: rise .45s ease both; }
.step.active { display: block; }
.step h2, .results h2 { font-family: var(--serif); font-size: clamp(32px, 4.5vw, 46px); font-weight: 600; text-align: center; }
.hint { text-align: center; color: var(--muted); margin: 6px 0 28px; }

.toolbar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 26px; }
input[type="search"] {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; min-width: 240px; outline: none; transition: .2s;
}
input[type="search"]:focus { border-color: var(--accent); }

.chip {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: 14px; transition: .15s; display: inline-flex; gap: 7px; align-items: center;
}
.chip:hover { border-color: #4a4354; }
.chip.selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.chip.any { font-weight: 600; }
.chip small { color: var(--muted); font-size: 11px; }

.region { margin-bottom: 22px; }
.region h4 { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 500; }
.region .chips { display: flex; flex-wrap: wrap; gap: 8px; }

.gender-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; max-width: 860px; margin: 0 auto; }
.gender-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: .2s;
}
.gender-card b { font-size: 36px; font-weight: 400; color: var(--muted); font-family: var(--serif); }
.gender-card:hover { border-color: #4a4354; transform: translateY(-2px); }
.gender-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.gender-card.selected b { color: var(--accent); }

.vibe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.vibe {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-align: left; display: flex; align-items: center; gap: 12px; transition: .2s;
}
.vibe .ico { font-size: 22px; }
.vibe:hover { border-color: #4a4354; }
.vibe.selected { border-color: var(--accent-2); background: rgba(142, 43, 58, 0.18); box-shadow: inset 0 0 0 1px var(--accent-2); }

.nav { display: flex; justify-content: space-between; margin-top: 40px; }

/* Sonuçlar */
.results { padding: 40px 0 60px; animation: rise .5s ease both; }
.results-head { display: flex; flex-direction: column; gap: 20px; align-items: center; margin-bottom: 30px; }
.summary { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.summary .tag { font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.summary .tag b { color: var(--text); font-weight: 500; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 10px; position: relative;
  transition: .25s; animation: rise .4s ease both;
}
.card:hover { border-color: #4a4354; transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.4); }
.card.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(201,164,92,.2); }
.card .origin { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.card .gender { margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.card .gender.f { color: #e59bb0; }
.card .gender.m { color: #8fb4e6; }
.card .gender.u { color: #b9a6e8; }
.card h3 { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1.1; word-break: break-word; }
.card .meaning { color: #c4bdb0; font-size: 14px; flex: 1; }
.card .vibes { display: flex; flex-wrap: wrap; gap: 6px; }
.card .vibes span { font-size: 11px; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.card .vibes span.hit { color: var(--accent); border-color: rgba(201,164,92,.4); }
.card .actions { position: absolute; top: 14px; right: 14px; display: none; }
.card-foot { display: flex; gap: 6px; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.card-foot button { font-size: 12px; color: var(--muted); padding: 4px 10px; border-radius: 8px; }
.card-foot button:hover { color: var(--text); background: var(--bg-2); }
.card-foot button.on { color: var(--accent-2); }
.card-foot button.on::before { content: ""; }

.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* Koleksiyon çekmecesi */
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(380px, 92vw);
  background: var(--bg-2); border-left: 1px solid var(--line); z-index: 40;
  transform: translateX(100%); transition: transform .3s ease; padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer h3 { font-family: var(--serif); font-size: 28px; }
#favList { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.fav-item { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: flex; gap: 10px; align-items: start; }
.fav-item div { flex: 1; }
.fav-item b { font-family: var(--serif); font-size: 21px; display: block; }
.fav-item small { color: var(--muted); font-size: 12px; }
.fav-empty { color: var(--muted); font-size: 14px; text-align: center; padding: 40px 10px; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 30; opacity: 0; pointer-events: none; transition: .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 30px);
  background: var(--card-2); border: 1px solid var(--accent); color: var(--text);
  padding: 10px 18px; border-radius: 999px; font-size: 14px; opacity: 0; transition: .3s; z-index: 50; pointer-events: none;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.footer { text-align: center; color: #5e5866; font-size: 12px; padding: 30px 16px; border-top: 1px solid var(--line); }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .nav .btn { padding: 11px 16px; }
  input[type="search"] { min-width: 0; width: 100%; }
}

.flag { width: 20px; height: 15px; object-fit: cover; border-radius: 3px; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(255,255,255,.08); }

.card .meaning.no-meaning { color: var(--muted); font-style: italic; font-size: 13px; }
.more-wrap { display: flex; justify-content: center; margin-top: 30px; }
.footer a { color: var(--muted); }
