/* =============================================================
   Psikoloji Testleri — NPCYP Psikiyatri Merkezi teması
   Lacivert (#0e305d) + altın (#ffc70a) + mavi (#248acc), Roboto.
   ============================================================= */

:root {
  --navy: #0e305d;
  --navy-dark: #101a33;
  --navy-2: #17457f;
  --gold: #ffc70a;
  --gold-dark: #e6b200;
  --gold-antique: #a9791c;
  --blue: #248acc;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --surface: #ffffff;
  --ink: #1a2233;
  --ink-soft: #55617a;
  --ink-mute: #8791a6;
  --line: #e5eaf2;
  --danger: #d1495b;
  --shadow: 0 1px 2px rgba(14, 48, 93, .05), 0 10px 30px rgba(14, 48, 93, .08);
  --shadow-lg: 0 18px 46px rgba(14, 48, 93, .16);
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1140px;
  --font: "Roboto", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------------------------------------------------------- TOP BAR */
.top-bar { background: #ffffff; border-bottom: 1px solid var(--line); font-size: .82rem; }
.top-bar .container { display: flex; align-items: center; justify-content: center; gap: 36px; min-height: 46px; flex-wrap: wrap; padding-top: 6px; padding-bottom: 6px; }
.top-bar a, .top-bar .ti { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 500; }
.top-bar a:hover { color: var(--gold-antique); }
.top-bar .ic { color: var(--gold); font-size: .95rem; }

/* ---------------------------------------------------------- HEADER */
.site-header {
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(14, 48, 93, .07);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 86px;
  gap: 18px;
}
.logo { display: flex; align-items: center; gap: 13px; }
.logo .brand-logo { height: 62px; width: auto; display: block; }
.logo .emblem { width: 58px; height: 58px; display: block; flex-shrink: 0; }
.logo .mark {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2.5px solid var(--gold-antique); background: #fff;
  display: grid; place-items: center;
  font-family: Georgia, "Times New Roman", serif; font-size: 1.7rem; font-weight: 700;
  color: var(--gold-antique); line-height: 1;
}
.logo .logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo .logo-text b { color: var(--gold-antique); font-size: 1.4rem; font-weight: 800; letter-spacing: .1em; }
.logo .logo-text small {
  color: var(--navy); font-size: .58rem; font-weight: 700; letter-spacing: .16em;
  padding-top: 4px; margin-top: 3px; border-top: 1.5px solid var(--navy); text-transform: uppercase;
}
.main-nav { display: flex; align-items: center; gap: 19px; margin-left: auto; }
.main-nav a { color: var(--navy); font-size: .9rem; font-weight: 600; transition: color .15s; white-space: nowrap; }
.main-nav a:hover, .main-nav a.active { color: var(--gold-antique); }
.nav-cta {
  background: var(--gold); color: var(--navy) !important;
  padding: 12px 26px; border-radius: 999px; font-weight: 700 !important; font-size: .92rem;
  transition: all .15s;
}
.nav-cta:hover { background: #ffd23f; transform: translateY(-1px); }
.nav-toggle { display: none; }

/* ---------------------------------------------------------- HERO */
.hero {
  background:
    linear-gradient(135deg, rgba(14,48,93,.96), rgba(16,26,51,.98)),
    radial-gradient(circle at 80% 20%, rgba(36,138,204,.35), transparent 55%);
  color: #ffffff;
  padding: 76px 0 64px;
  text-align: center;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--blue));
}
.hero .kicker {
  display: inline-block; color: var(--gold); font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; font-size: .8rem; margin-bottom: 14px;
}
.hero h1 { font-size: 2.5rem; margin: 0 0 16px; letter-spacing: -.02em; line-height: 1.15; color: #ffffff; }
.hero h1 span { color: var(--gold); }
.hero p { max-width: 640px; margin: 0 auto; color: rgba(255,255,255,.82); font-size: 1.08rem; }
.hero .disclaimer {
  display: inline-block; margin-top: 24px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,199,10,.4); color: #ffe08a;
  font-size: .85rem; padding: 9px 18px; border-radius: 999px;
}

/* ---------------------------------------------------------- FILTER + SEARCH */
main.container { background: var(--bg-soft); }
.section-head { text-align: center; padding-top: 44px; }
.section-head .kicker { color: var(--blue); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.section-head h2 { font-size: 1.8rem; margin: 8px 0 0; color: var(--navy); }

.search-wrap { display: flex; justify-content: center; margin: 26px 0 6px; }
.search-wrap input {
  width: 100%; max-width: 440px; padding: 13px 20px;
  border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
  font-size: .95rem; font-family: inherit; color: var(--ink); outline: none;
}
.search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(36,138,204,.15); }

.filters { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; margin: 16px 0 4px; }
.filter-btn {
  border: 1.5px solid var(--line); background: #fff;
  color: var(--ink-soft); padding: 8px 17px; border-radius: 999px;
  font-size: .88rem; cursor: pointer; transition: all .15s ease; font-family: inherit; font-weight: 500;
}
.filter-btn:hover { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); border-color: var(--navy); color: #ffffff; }

/* ---------------------------------------------------------- GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 26px 0;
  padding-bottom: 64px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--bg-soft);
}
.card h3 { margin: 2px 0 0; font-size: 1.08rem; line-height: 1.35; color: var(--navy); font-weight: 700; }
.card .meta { display: flex; align-items: center; gap: 10px; font-size: .78rem; color: var(--ink-mute); margin-top: auto; padding-top: 6px; }
.card .tag { background: rgba(36,138,204,.1); color: var(--blue); padding: 3px 11px; border-radius: 999px; font-weight: 600; }
.card .go { margin-left: auto; color: var(--gold-dark); font-weight: 700; }
.empty { text-align: center; color: var(--ink-mute); padding: 56px 0; grid-column: 1 / -1; }

/* ---------------------------------------------------------- TEST PAGE */
body.test-page { background: var(--bg-soft); }
.test-wrap { max-width: 740px; margin: 0 auto; padding: 40px 24px 88px; }
.back-link { color: var(--ink-mute); font-size: .9rem; display: inline-flex; gap: 6px; margin-bottom: 22px; font-weight: 500; }
.back-link:hover { color: var(--blue); }

.test-head { text-align: center; margin-bottom: 8px; }
.test-head .icon {
  width: 68px; height: 68px; border-radius: 16px; margin: 0 auto 8px;
  display: grid; place-items: center; font-size: 2rem; background: #fff; box-shadow: var(--shadow);
}
.test-head h1 { font-size: 1.7rem; margin: 10px 0 6px; color: var(--navy); }
.test-head .intro { color: var(--ink-soft); }

.progress-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin: 28px 0 6px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--navy)); width: 0; transition: width .3s ease; }
.progress-text { text-align: center; font-size: .82rem; color: var(--ink-mute); margin-bottom: 24px; font-weight: 500; }

.question-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow);
}
.question-card .q-num { color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: .08em; }
.question-card .q-text { font-size: 1.24rem; margin: 8px 0 24px; line-height: 1.45; color: var(--navy); font-weight: 500; }

.options { display: flex; flex-direction: column; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 13px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; transition: all .14s ease; font-size: .98rem;
}
.option:hover { border-color: var(--blue); background: rgba(36,138,204,.05); }
.option .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; transition: all .14s ease; }
.option.selected { border-color: var(--navy); background: rgba(14,48,93,.05); }
.option.selected .dot { border-color: var(--navy); background: var(--navy); box-shadow: inset 0 0 0 3px #fff; }

.nav-row { display: flex; justify-content: space-between; margin-top: 26px; gap: 12px; }
.btn {
  font-family: inherit; font-size: .95rem; font-weight: 700;
  padding: 13px 30px; border-radius: 8px; cursor: pointer; border: 1.5px solid transparent; transition: all .16s ease;
}
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink-soft); }
.btn-ghost:hover { border-color: var(--ink-soft); }
.btn-ghost:disabled { opacity: .4; cursor: not-allowed; }
.btn-primary { background: var(--navy); color: #ffffff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #ffd23f; }

/* ---------------------------------------------------------- RESULT */
.result-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 30px; box-shadow: var(--shadow); text-align: center;
  border-top: 4px solid var(--gold);
}
.result-card .r-icon { font-size: 2.8rem; }
.result-card h2 { margin: 12px 0 4px; font-size: 1.5rem; color: var(--navy); }
.score-ring {
  --pct: 0;
  width: 158px; height: 158px; border-radius: 50%; margin: 24px auto 10px;
  display: grid; place-items: center;
}
.score-ring .val { font-size: 2rem; font-weight: 800; color: var(--navy); }
.score-ring .lab { font-size: .78rem; color: var(--ink-mute); }
.result-level { display: inline-block; margin: 8px 0 14px; background: var(--navy); color: #fff; font-weight: 700; padding: 7px 20px; border-radius: 999px; }
.result-text { color: var(--ink-soft); max-width: 500px; margin: 0 auto 20px; }
.result-basis { font-size: .78rem; color: var(--ink-mute); margin: 0 auto 6px; max-width: 480px; }
.result-warn {
  background: #fff8e6; border: 1px solid #f2e0a8; color: #8a6d1f;
  font-size: .85rem; padding: 14px 18px; border-radius: var(--radius-sm); margin: 18px 0 4px; text-align: left;
}
.result-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

/* ---------------------------------------------------------- FOOTER */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,.72); padding: 40px 0 28px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; padding-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { max-width: 340px; }
.footer-brand .logo { margin-bottom: 12px; }
.site-footer .logo .mark { background: transparent; border-color: var(--gold); color: var(--gold); }
.site-footer .logo .logo-text b { color: var(--gold); }
.site-footer .logo .logo-text small { color: rgba(255,255,255,.72); border-top-color: rgba(255,255,255,.35); }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: .95rem; margin: 0 0 12px; }
.footer-col a { display: block; color: rgba(255,255,255,.72); font-size: .88rem; margin-bottom: 8px; transition: color .15s; }
.footer-col a:hover { color: var(--gold); }
.footer-warn { font-size: .82rem; color: rgba(255,255,255,.6); max-width: 640px; margin: 20px auto 10px; text-align: center; line-height: 1.6; }
.footer-bottom { text-align: center; font-size: .82rem; color: rgba(255,255,255,.5); padding-top: 14px; }
.footer-bottom .gold { color: var(--gold); }

/* ---------------------------------------------------------- RESPONSIVE */
@media (max-width: 820px) {
  .main-nav { display: none; }
  .hero h1 { font-size: 1.9rem; }
}
@media (max-width: 560px) {
  .hero { padding: 54px 0 44px; }
  .hero h1 { font-size: 1.7rem; }
  .question-card { padding: 24px 18px; }
  .question-card .q-text { font-size: 1.1rem; }
  .footer-top { flex-direction: column; gap: 22px; }
}
