/* ══════════════════════════════════════════════
   HangisiIyi.com — main.css  (Açık Tema)
══════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg:          #f0f4f8;
  --surface:     #ffffff;
  --card:        #ffffff;
  --border:      #e2e8f0;
  --border-lt:   #cbd5e1;
  --text:        #0f172a;
  --text-2:      #334155;
  --muted:       #64748b;
  --dim:         #94a3b8;
  --placeholder: #b8c4d0;

  --a:           #2563eb;
  --a-light:     #eff6ff;
  --a-mid:       #bfdbfe;
  --a-glow:      rgba(37,99,235,.1);
  --b:           #ea580c;
  --b-light:     #fff7ed;
  --b-mid:       #fed7aa;
  --b-glow:      rgba(234,88,12,.1);
  --winner:      #16a34a;
  --winner-light:#f0fdf4;
  --winner-glow: rgba(22,163,74,.1);

  --shadow-xs:  0 1px 2px rgba(0,0,0,.05);
  --shadow-sm:  0 1px 4px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 4px rgba(0,0,0,.04);
  --shadow-lg:  0 12px 32px rgba(0,0,0,.09), 0 4px 8px rgba(0,0,0,.04);

  --font: 'Plus Jakarta Sans', system-ui, sans-serif;
  --r:    12px;
  --r-lg: 18px;
  --r-xl: 24px;
}

/* ── BASE ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Ferah arka plan efekti */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 10% 0%,   rgba(37,99,235,.07)  0%, transparent 55%),
    radial-gradient(ellipse 60% 60% at 95% 100%,  rgba(234,88,12,.07)  0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%,   rgba(22,163,74,.04)  0%, transparent 60%);
}

/* ── NAV ───────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 2.5rem;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-xs);
}
.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; }
.logo .a   { color: var(--a); }
.logo .sep { color: var(--dim); margin: 0 2px; }
.logo .b   { color: var(--b); }
.logo .tld { color: var(--muted); font-weight: 500; font-size: .92rem; }

.nav-badge {
  font-size: .7rem; padding: .28rem .85rem; font-weight: 700;
  background: var(--winner-light); border: 1px solid rgba(22,163,74,.25);
  color: var(--winner); border-radius: 20px; letter-spacing: .04em;
}
.nav-link {
  font-size: .85rem; color: var(--muted); text-decoration: none;
  font-weight: 500; transition: color .2s;
}
.nav-link:hover { color: var(--text); }

/* ── ALERT ─────────────────────────────────── */
.alert-banner {
  position: relative; z-index: 1;
  background: #fffbeb; border-bottom: 1px solid #fcd34d;
  color: #92400e; padding: .7rem 2.5rem; font-size: .84rem;
}
.alert-banner code {
  background: rgba(0,0,0,.07); padding: .1rem .4rem;
  border-radius: 4px; font-size: .78rem;
}

/* ── HERO ──────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  text-align: center; padding: 1.4rem 2rem .8rem;
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; padding: .25rem .8rem; border-radius: 20px;
  background: var(--a-light); border: 1px solid var(--a-mid);
  color: var(--a); margin-bottom: .1rem;
}
.hero-tag span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--winner); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1)}
  50%{opacity:.35;transform:scale(.65)}
}
h1 {
  font-size: clamp(1.3rem, 2.8vw, 1.8rem); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.2; margin-bottom: 0;
  color: var(--text);
}
h1 .hl-a { color: var(--a); }
h1 .hl-b { color: var(--b); }
.hero-sub { display: none; }

/* ── MAIN WRAP ─────────────────────────────── */
.main-wrap {
  position: relative; z-index: 1;
  max-width: 840px; margin: 0 auto; padding: 0 1.5rem 4rem;
}

/* ── FORM CARD ─────────────────────────────── */
.form-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 1.8rem 2rem;
  box-shadow: var(--shadow-md); margin-bottom: 1.4rem;
}

/* ── ARENA ─────────────────────────────────── */
.arena {
  display: grid; grid-template-columns: 1fr 52px 1fr;
  gap: .75rem; align-items: center; margin-bottom: 1.1rem;
}
.input-label {
  display: flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-bottom: .4rem;
}
.badge-a, .badge-b { display: inline-block; width: 7px; height: 7px; border-radius: 50%; }
.badge-a { background: var(--a); }
.badge-b { background: var(--b); }

.product-input {
  width: 100%; padding: .82rem 1rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r); color: var(--text);
  font-family: var(--font); font-size: .95rem; font-weight: 500;
  outline: none; transition: all .2s;
}
.product-input::placeholder { color: var(--placeholder); font-weight: 400; }
.product-input:focus {
  background: #fff; border-color: var(--a);
  box-shadow: 0 0 0 3px var(--a-glow);
}
.input-side:last-child .product-input:focus {
  border-color: var(--b); box-shadow: 0 0 0 3px var(--b-glow);
}
.product-input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.field-error { font-size: .76rem; color: #ef4444; margin-top: .3rem; min-height: 1rem; }

.vs-badge {
  text-align: center; font-size: .7rem; font-weight: 800;
  color: var(--muted); letter-spacing: .12em;
  padding: .5rem .3rem; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: var(--r);
}

/* ── CONTEXT ───────────────────────────────── */
.context-row { margin-bottom: 1.1rem; }
.context-label {
  font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: .4rem; display: block;
}
.context-input {
  width: 100%; padding: .78rem 1rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--r); color: var(--text);
  font-family: var(--font); font-size: .9rem; outline: none;
  transition: all .2s;
}
.context-input::placeholder { color: var(--placeholder); }
.context-input:focus { background: #fff; border-color: var(--border-lt); box-shadow: 0 0 0 3px rgba(0,0,0,.04); }

/* ── CATEGORIES ────────────────────────────── */
.categories { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.cat-pill {
  padding: .34rem .85rem; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--bg);
  color: var(--muted); font-family: var(--font); font-size: .78rem;
  font-weight: 500; cursor: pointer; transition: all .18s;
}
.cat-pill:hover { border-color: var(--a); color: var(--a); background: var(--a-light); }
.cat-pill.active {
  border-color: var(--a); color: var(--a);
  background: var(--a-light); font-weight: 700;
}

/* ── CTA ───────────────────────────────────── */
.cta-wrap { text-align: center; }
.btn-compare {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .88rem 2.4rem; font-family: var(--font);
  font-size: .95rem; font-weight: 700; letter-spacing: -.01em;
  background: var(--a); color: #fff; border: none; border-radius: var(--r);
  cursor: pointer; transition: all .2s;
  box-shadow: 0 2px 10px var(--a-glow), 0 1px 3px rgba(37,99,235,.2);
}
.btn-compare:hover {
  background: #1d4ed8; transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37,99,235,.28);
}
.btn-compare:active { transform: translateY(0); }
.btn-compare:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-icon { font-size: 1.1rem; }

/* ── LOADING ───────────────────────────────── */
.loading {
  display: none; flex-direction: column; align-items: center;
  gap: 1rem; padding: 2.5rem; text-align: center;
}
.loading.show { display: flex; }
.loading-ring {
  width: 46px; height: 46px;
  border: 3px solid var(--border);
  border-top-color: var(--a); border-right-color: var(--b);
  border-radius: 50%; animation: spin .75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: .92rem; font-weight: 600; color: var(--text-2); }
.loading-steps { display: flex; flex-direction: column; gap: .32rem; }
.loading-step {
  font-size: .8rem; color: var(--dim);
  display: flex; align-items: center; gap: .5rem; transition: color .3s;
}
.loading-step.active { color: var(--a); font-weight: 600; }
.loading-step.done   { color: var(--winner); }
.step-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }

/* ── RESULT ────────────────────────────────── */
#result { display: none; }
#result.show { display: block; }
@keyframes slideUp { from{opacity:0;transform:translateY(12px);} }

/* ── WINNER BANNER ─────────────────────────── */
.winner-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border: 1.5px solid rgba(22,163,74,.22); border-radius: var(--r-xl);
  padding: 1.6rem 2rem; margin-bottom: 1.1rem;
  display: flex; align-items: center; gap: 1.3rem;
  box-shadow: var(--shadow-sm); animation: slideUp .4s ease both;
}
.winner-crown { font-size: 2rem; flex-shrink: 0; }
.winner-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--winner); margin-bottom: .22rem;
}
.winner-name { font-size: 1.4rem; font-weight: 800; color: var(--text); letter-spacing: -.03em; margin-bottom: .18rem; }
.winner-tagline { font-size: .85rem; color: var(--muted); }
.winner-score-wrap { margin-left: auto; text-align: center; flex-shrink: 0; }
.winner-score { font-size: 1.9rem; font-weight: 800; color: var(--winner); line-height: 1; }
.winner-score-label { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .18rem; font-weight: 600; }

/* ── H2H CARDS ─────────────────────────────── */
.h2h-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.1rem; }
.product-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-sm); animation: slideUp .4s ease both;
  position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.product-card.card-a { animation-delay: .05s; }
.product-card.card-b { animation-delay: .1s; }
.product-card.is-winner { border-color: rgba(22,163,74,.28); background: linear-gradient(160deg, #f0fdf4 0%, #fff 55%); }
.product-card.is-winner::after {
  content: '🏆 Kazanan';
  position: absolute; top: 10px; right: 10px;
  font-size: .62rem; font-weight: 700; letter-spacing: .05em;
  color: var(--winner); background: var(--winner-light);
  border: 1px solid rgba(22,163,74,.2); padding: .18rem .6rem; border-radius: 10px;
}
.card-product-name { font-size: 1rem; font-weight: 700; margin-bottom: .28rem; letter-spacing: -.02em; }
.card-a .card-product-name { color: var(--a); }
.card-b .card-product-name { color: var(--b); }
.card-score-row { display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.card-score { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.card-a .card-score { color: var(--a); }
.card-b .card-score { color: var(--b); }
.card-score-bar-wrap { flex: 1; height: 5px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.card-score-bar { height: 100%; border-radius: 3px; transition: width 1.1s cubic-bezier(.16,1,.3,1); }
.card-a .card-score-bar { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.card-b .card-score-bar { background: linear-gradient(90deg, #ea580c, #fb923c); }

.pros-label, .cons-label {
  font-size: .66rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: .32rem; margin-top: .7rem;
}
.pros-label { color: var(--winner); }
.cons-label { color: #dc2626; }
.pros-list, .cons-list { list-style: none; display: flex; flex-direction: column; gap: .28rem; }
.pros-list li, .cons-list li { font-size: .84rem; color: var(--text-2); line-height: 1.5; display: flex; gap: .38rem; }
.pros-list li::before { content: '✓'; color: var(--winner); font-weight: 700; flex-shrink: 0; }
.cons-list li::before { content: '✗'; color: #dc2626; font-weight: 700; flex-shrink: 0; }

/* ── CRITERIA TABLE ────────────────────────── */
.criteria-section {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm); animation: slideUp .4s .12s ease both;
}
.criteria-header {
  padding: .9rem 1.4rem; border-bottom: 1px solid var(--border);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); background: var(--bg);
  display: grid; grid-template-columns: 1fr 100px 100px 80px; gap: 1rem; align-items: center;
}
.criteria-row {
  display: grid; grid-template-columns: 1fr 100px 100px 80px;
  gap: 1rem; align-items: center; padding: .85rem 1.4rem;
  border-bottom: 1px solid var(--border); transition: background .15s;
}
.criteria-row:last-child { border-bottom: none; }
.criteria-row:hover { background: #fafbfc; }
.crit-name { font-size: .88rem; color: var(--text); font-weight: 500; }
.crit-score { display: flex; flex-direction: column; gap: .2rem; }
.crit-num { font-size: .8rem; font-weight: 700; }
.col-a .crit-num { color: var(--a); }
.col-b .crit-num { color: var(--b); }
.crit-mini-bar { height: 3px; background: var(--border); border-radius: 2px; overflow: hidden; width: 70px; }
.crit-mini-fill { height: 100%; border-radius: 2px; }
.col-a .crit-mini-fill { background: var(--a); }
.col-b .crit-mini-fill { background: var(--b); }
.crit-winner-tag { font-size: .65rem; padding: .18rem .6rem; border-radius: 20px; font-weight: 700; letter-spacing: .04em; width: fit-content; }
.crit-winner-a   { background: var(--a-light); color: var(--a); border: 1px solid var(--a-mid); }
.crit-winner-b   { background: var(--b-light); color: var(--b); border: 1px solid var(--b-mid); }
.crit-winner-tie { background: #f1f5f9; color: var(--muted); border: 1px solid var(--border); }

/* ── VERDICT ───────────────────────────────── */
.verdict-section {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-lg); padding: 1.5rem 1.7rem; margin-bottom: 1.1rem;
  box-shadow: var(--shadow-sm); animation: slideUp .4s .18s ease both;
}
.verdict-title {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--a); margin-bottom: .85rem;
  display: flex; align-items: center; gap: .55rem;
}
.verdict-title::before { content: ''; flex: 0 0 12px; height: 2.5px; background: var(--a); border-radius: 2px; }
.verdict-text { font-size: .92rem; color: var(--text-2); line-height: 1.85; }

/* ── USE CASES ─────────────────────────────── */
.use-cases {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin-bottom: 1.1rem; animation: slideUp .4s .22s ease both;
}
.use-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r); padding: 1.1rem 1.3rem; box-shadow: var(--shadow-sm);
}
.use-card-label { font-size: .66rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .55rem; }
.use-card-a .use-card-label { color: var(--a); }
.use-card-b .use-card-label { color: var(--b); }
.use-card-name { font-size: .88rem; font-weight: 700; margin-bottom: .5rem; color: var(--text); }
.use-list { list-style: none; display: flex; flex-direction: column; gap: .28rem; }
.use-list li { font-size: .82rem; color: var(--text-2); display: flex; align-items: flex-start; gap: .4rem; }
.use-list li::before { content: '→'; flex-shrink: 0; font-weight: 700; margin-top: .05rem; }
.use-card-a .use-list li::before { color: var(--a); }
.use-card-b .use-list li::before { color: var(--b); }

/* ── RESET ─────────────────────────────────── */
.reset-wrap { text-align: center; padding-top: .3rem; animation: slideUp .4s .28s ease both; }
.btn-reset {
  padding: .62rem 1.7rem; border-radius: var(--r);
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--muted); font-family: var(--font); font-size: .86rem;
  font-weight: 500; cursor: pointer; transition: all .18s; box-shadow: var(--shadow-xs);
}
.btn-reset:hover { border-color: var(--border-lt); color: var(--text); background: var(--bg); }

/* ── POPULAR ───────────────────────────────── */
.popular-section { max-width: 840px; margin: 0 auto 2.5rem; padding: 0 1.5rem; position: relative; z-index: 1; }
.popular-title { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .8rem; }
.popular-chips { display: flex; gap: .45rem; flex-wrap: wrap; }
.popular-chip {
  padding: .38rem .95rem; border-radius: 20px;
  border: 1.5px solid var(--border); background: var(--surface);
  color: var(--text-2); font-size: .78rem; font-weight: 500;
  cursor: pointer; transition: all .18s; box-shadow: var(--shadow-xs);
  display: flex; align-items: center; gap: .38rem;
}
.popular-chip:hover { border-color: var(--a); color: var(--a); background: var(--a-light); }
.chip-sep { color: var(--dim); }

/* ── FOOTER ────────────────────────────────── */
footer {
  position: relative; z-index: 1; text-align: center;
  padding: 1.6rem; border-top: 1px solid var(--border);
  font-size: .78rem; color: var(--dim); font-weight: 500;
  background: var(--surface);
}
footer span { color: var(--a); font-weight: 700; }

/* ── RESPONSIVE ────────────────────────────── */
@media (max-width: 640px) {
  nav { padding: .85rem 1.2rem; }
  .hero { padding: 1rem 1.4rem .6rem; }
  .form-card { padding: 1.3rem; }
  .arena { grid-template-columns: 1fr; }
  .vs-badge { display: none; }
  .h2h-grid, .use-cases { grid-template-columns: 1fr; }
  .criteria-header, .criteria-row { grid-template-columns: 1fr 65px 65px 58px; gap: .4rem; padding-left: 1rem; padding-right: 1rem; }
  .winner-banner { flex-wrap: wrap; padding: 1.3rem; }
  .winner-score-wrap { margin-left: 0; }
  h1 { font-size: 1.85rem; }
}

/* ── SHARE BUTTON & BOX ────────────────────── */
.btn-share {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .62rem 1.5rem; border-radius: var(--r);
  border: 1.5px solid var(--a); background: var(--a-light);
  color: var(--a); font-family: var(--font); font-size: .86rem;
  font-weight: 600; cursor: pointer; transition: all .18s;
  margin-right: .6rem;
}
.btn-share:hover { background: var(--a); color: #fff; }

.share-box {
  background: var(--a-light); border: 1.5px solid var(--a-mid);
  border-radius: var(--r); padding: 1rem 1.2rem;
  margin-top: 1rem;
}
.share-box-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--a); margin-bottom: .6rem;
}
.share-box-row { display: flex; gap: .5rem; }
.share-url-input {
  flex: 1; padding: .6rem .9rem;
  background: #fff; border: 1.5px solid var(--a-mid);
  border-radius: var(--r); color: var(--text);
  font-family: var(--font); font-size: .82rem; outline: none;
  cursor: text;
}
.btn-copy {
  padding: .6rem 1.2rem; border-radius: var(--r);
  background: var(--a); color: #fff; border: none;
  font-family: var(--font); font-size: .82rem; font-weight: 600;
  cursor: pointer; transition: background .18s; white-space: nowrap;
}
.btn-copy:hover { background: #1d4ed8; }

.share-toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: var(--text); color: #fff; padding: .65rem 1.4rem;
  border-radius: var(--r); font-size: .84rem; font-weight: 500;
  z-index: 9999; opacity: 0; transition: opacity .3s; pointer-events: none;
  white-space: nowrap; box-shadow: var(--shadow-lg);
}
.share-toast.show { opacity: 1; }
