html, body { overflow-x: hidden; }

/* ── RADAR PAGE ───────────────────────────────────── */
.radar-page {
  background: var(--bg);
  min-height: calc(100vh - 70px);
  padding: 60px 0 80px;
}

.radar-header {
  text-align: center;
  margin-bottom: 52px;
}

.radar-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -1.5px;
  color: var(--text);
  margin-bottom: 12px;
}

.radar-sub {
  font-size: 16px;
  color: var(--text2);
  max-width: 480px;
  margin: 0 auto;
}

/* ── SEÇİCİLER ── */
.radar-selectors {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 52px;
  justify-content: center;
}

.radar-selector-card {
  flex: 1;
  max-width: 360px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}

.selector-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.selector-label-a { color: var(--red); }
.selector-label-b { color: var(--red); }

.radar-select {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  outline: none;
  transition: border-color 0.15s;
}
.radar-select:focus { border-color: var(--red); }

.selector-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  min-height: 52px;
}

.sel-photo {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.sel-photo-placeholder {
  background: var(--bg3);
}

.sel-info { flex: 1; min-width: 0; }
.sel-name { font-size: 14px; font-weight: 700; color: var(--text); }
.sel-meta { font-size: 12px; color: var(--text3); margin-top: 2px; }

.radar-vs {
  font-size: 18px;
  font-weight: 900;
  color: var(--text3);
  align-self: center;
  padding-top: 20px;
  letter-spacing: 2px;
}

/* ── MAIN AREA ── */
.radar-main {
  animation: radarFadeIn 0.35s ease;
}

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

/* ── BAR KARŞILAŞTIRMA KARTI ── */
.bar-compare {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow);
}

/* Legend (üst isim satırı) */
.bar-legend {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--border);
  gap: 16px;
}

.bar-legend-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.bar-legend-side-b {
  flex-direction: row-reverse;
  text-align: right;
}

.bar-legend-center {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text3);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.bar-legend-photo {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid;
  flex-shrink: 0;
}

.bar-legend-photo-empty {
  background: var(--bg3);
  border-radius: 50%;
  border: 2.5px solid;
}

.bar-legend-info { display: flex; flex-direction: column; gap: 3px; }
.bar-legend-info-right { align-items: flex-end; }

.bar-legend-name {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.1;
}

.bar-legend-party {
  font-size: 12px;
  color: var(--text3);
}

/* ── METRIK SATIRLARI ── */
.bar-rows {
  display: flex;
  flex-direction: column;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.bar-row:last-child {
  border-bottom: none;
}

/* Sol taraf (A) */
.bar-left {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

/* Sağ taraf (B) */
.bar-right {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
}

/* Orta metrik etiketi */
.bar-center-label {
  width: 140px;
  flex-shrink: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  line-height: 1.3;
}

/* Bar track'leri */
.bar-track {
  flex: 1;
  height: 34px;
  background: var(--bg2);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
}

/* A barı sağdan büyür (merkeze doğru) */
.bar-track-a {
  justify-content: flex-end;
  border-radius: 8px 0 0 8px;
}

/* B barı soldan büyür (merkeze doğru) */
.bar-track-b {
  justify-content: flex-start;
  border-radius: 0 8px 8px 0;
}

.bar-fill {
  height: 100%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: inherit;
}

/* Değer numaraları */
.bar-num {
  font-size: 16px;
  font-weight: 700;
  color: var(--text3);
  min-width: 48px;
  text-align: center;
  flex-shrink: 0;
  transition: color 0.2s, font-size 0.2s;
  font-variant-numeric: tabular-nums;
}

.bar-num-win {
  font-size: 20px;
  font-weight: 900;
}

/* ── SKOR ÖZETİ ── */
.bar-score {
  margin-top: 24px;
  padding: 14px 20px;
  background: var(--bg2);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text2);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bar-score-label {
  font-weight: 500;
  color: var(--text3);
}

.bar-score-name {
  font-weight: 800;
  font-size: 15px;
}

.bar-score-detail {
  font-size: 13px;
  color: var(--text3);
  font-weight: 600;
  background: var(--bg3);
  padding: 2px 10px;
  border-radius: 20px;
}

/* ── NOT ── */
.radar-note {
  font-size: 11px;
  color: var(--text3);
  margin-top: 16px;
  line-height: 1.6;
}

/* ── PAYLAŞIM AKSIYON BUTONU ── */
.radar-share-actions {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.btn-share-gen {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--text);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity .2s;
}
.btn-share-gen:hover    { opacity: 0.85; }
.btn-share-gen:disabled { opacity: 0.5; cursor: default; }
.btn-share-gen svg      { width: 16px; height: 16px; stroke: #fff; }

/* ── PAYLAŞIM BÖLÜMÜ ── */
.share-section {
  width: 100%;
  max-width: 520px;
  margin: 28px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.share-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin: 0;
}
.share-section-title svg { width: 14px; height: 14px; stroke: var(--text2); }

.share-tweet-hint {
  font-size: 12px;
  color: var(--text3);
  text-align: center;
  margin: -6px 0 0;
  display: none;
}
.share-tweet-hint.visible { display: block; }

.share-image-container {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 0 0 1px var(--border);
}
.share-canvas {
  width: 100%;
  height: auto;
  display: block;
}
.share-generating {
  position: absolute;
  inset: 0;
  background: rgba(247,247,248,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text3);
  font-size: 14px;
}
.share-gen-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spinR .8s linear infinite;
}
@keyframes spinR { to { transform: rotate(360deg); } }

.share-buttons {
  display: flex;
  gap: 12px;
  width: 100%;
}
.share-buttons .share-btn { flex: 1; }

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
  font-family: var(--font);
}
.share-btn:hover  { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.18); }
.share-btn:active { transform: translateY(0); }
.share-btn svg    { width: 16px; height: 16px; flex-shrink: 0; }

.share-btn-icon-text { font-size: 16px; font-weight: 900; line-height: 1; }

.share-btn-twitter {
  background: #000;
  color: #fff;
  border: 1px solid rgba(0,0,0,0.1);
}
.share-btn-twitter:hover { background: #111; }

.share-btn-download {
  background: var(--text);
  color: #fff;
  border: 1px solid var(--text);
}
.share-btn-download svg   { stroke: #fff; }
.share-btn-download:hover { background: #222; border-color: #222; }

/* ── BOŞ DURUM ── */
.radar-empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text3);
}

.radar-empty-icon { margin-bottom: 16px; color: var(--text3); }
.radar-empty-icon svg { width: 48px; height: 48px; }
.radar-empty p    { font-size: 15px; }

/* ── YASAL UYARI ── */
.radar-legal {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 56px 0 64px;
}

.radar-legal-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 28px;
  letter-spacing: -0.3px;
}

.radar-legal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.radar-legal-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.radar-legal-item h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.1px;
}

.radar-legal-item p {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.75;
}

.radar-legal-item strong {
  color: var(--text);
  font-weight: 600;
}

/* ── MOBİL ── */
@media (max-width: 768px) {
  .radar-selectors {
    flex-direction: column;
    align-items: stretch;
  }

  .radar-selector-card { max-width: 100%; }
  .radar-vs { text-align: center; padding: 0; }

  .bar-compare { padding: 20px 16px; }

  .bar-legend { gap: 8px; }
  .bar-legend-center { display: none; }

  .bar-center-label {
    width: 80px;
    font-size: 10px;
  }

  .bar-num { min-width: 36px; font-size: 14px; }
  .bar-num-win { font-size: 17px; }

  .bar-track { height: 28px; }

  .radar-legal-grid { grid-template-columns: 1fr; }

  .share-buttons { flex-direction: column; }
  .share-buttons .share-btn { flex: unset; }

  .bar-legend-name { font-size: 14px; }
}

@media (max-width: 480px) {
  .radar-title { font-size: 28px; letter-spacing: -1px; }
  .radar-header { padding: 48px 16px 24px; }
  .radar-body { padding: 24px 16px 48px; }

  .radar-selector-card { padding: 16px; }
  select.radar-select { font-size: 14px; padding: 10px 12px; }

  .bar-legend-photo { width: 36px; height: 36px; }
  .bar-legend-name  { font-size: 13px; }
  .bar-legend-party { font-size: 11px; }

  .bar-center-label { width: 64px; font-size: 9px; }
  .bar-num          { min-width: 28px; font-size: 13px; }
  .bar-num-win      { font-size: 15px; }
  .bar-track        { height: 24px; }

  .bar-row { gap: 4px; }

  .radar-footer { padding: 24px 16px; }
  .radar-footer-inner { flex-direction: column; gap: 8px; text-align: center; }
}
