/**
 * REA Analysis Style — Frontend CSS
 * BUG-08/09/10 Fix | Siyah/Beyaz/Gri Palette
 *
 * Design tokens, form, loader, toast, modal, tab nav,
 * category card, item row, metric card, table,
 * status pills, score display, footer, CTA, responsive.
 */

/* ── Design Tokens ───────────────────────────────────────── */

:root {
  --re-primary: #000000;
  --re-success: #22C55E;
  --re-warning: #F59E0B;
  --re-danger: #EF4444;
  --re-info: #3B82F6;
  --re-bg: #FFFFFF;
  --re-card: #FFFFFF;
  --re-card-bg: #F5F5F5;
  --re-text: #000000;
  --re-text-light: #4A4A4A;
  --re-border: #E0E0E0;
  --re-hover-bg: #EEEEEE;
  --re-grade-a: #22C55E;
  --re-grade-b: #3B82F6;
  --re-grade-c: #F59E0B;
  --re-grade-d: #F97316;
  --re-grade-f: #EF4444;
}

/* ── Tool Form (Input Card) ──────────────────────────────── */

.re-tool-container {
  font-family: inherit;
  max-width: var(--re-container-width, 720px);
  margin: 0 auto;
}

.re-tool-form {
  background: var(--re-form-bg, var(--re-card));
  border: 1px solid var(--re-form-border, var(--re-border));
  border-radius: var(--re-form-radius, 12px);
  padding: 28px 24px;
  box-shadow: var(--re-form-shadow, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.re-tool-form h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  color: var(--re-form-text, var(--re-text));
}

.re-input-group {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.re-input-field {
  flex: 1;
  padding: 12px 16px;
  font-size: 1rem;
  background: var(--re-form-input-bg, #fff);
  border: 1px solid var(--re-form-border, var(--re-border));
  color: var(--re-form-text, var(--re-text));
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
}

.re-input-field:focus {
  border-color: var(--re-primary);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}

textarea.re-input-field {
  min-height: 120px;
  resize: vertical;
}

/* ── Submit Button ───────────────────────────────────────── */

.re-submit-btn {
  padding: 12px 24px;
  background: var(--re-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  white-space: nowrap;
}

.re-submit-btn:hover {
  background: var(--re-hover, #333);
  color: #fff;
  transform: translateY(-1px);
}

.re-submit-btn:active {
  transform: translateY(0);
}

.re-submit-btn:disabled {
  background: #999;
  cursor: not-allowed;
  transform: none;
}

/* ── Loader (Spinner) ────────────────────────────────────── */

.re-loader {
  display: none;
  width: 40px;
  height: 40px;
  border: 4px solid var(--re-border);
  border-top: 4px solid var(--re-primary);
  border-radius: 50%;
  animation: re-spin 0.8s linear infinite;
  margin: 20px auto;
}

.re-loader.active {
  display: block;
}

@keyframes re-spin {
  to { transform: rotate(360deg); }
}

/* ── Toast Notification ──────────────────────────────────── */

.re-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #fff;
  z-index: 100000;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 420px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.re-toast.active {
  opacity: 1;
  transform: translateY(0);
}

.re-toast-error {
  background: var(--re-danger);
}

.re-toast-success {
  background: var(--re-success);
}

/* ── Modal Overlay ───────────────────────────────────────── */

.re-modal {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: blur(4px);
  z-index: 2147483647 !important;
  overflow-y: auto !important;
  padding: 40px 20px;
  box-sizing: border-box;
}

.re-modal.active {
  display: flex !important;
  justify-content: center;
  align-items: flex-start;
}

/* Modal açıkken body scroll kilitle + site nav'ı devre dışı bırak */
body.re-modal-open {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* Modal açıkken TÜM diğer elemanları tıklanamaz yap (site menüsü dahil) */
body.re-modal-open > *:not(.re-modal) {
  pointer-events: none !important;
}

/* Modal kendisi tıklanabilir kalsın */
.re-modal.active {
  pointer-events: auto !important;
}

/* Close butonu her zaman en üstte olsun */
.re-modal-close {
  position: relative;
  z-index: 100 !important;
  pointer-events: auto !important;
}

.re-modal-content {
  background: var(--re-bg);
  border-radius: 12px;
  max-width: 900px;
  width: 100%;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  animation: re-modal-in 0.3s ease-out;
  overflow: hidden;
  position: relative;
  z-index: 1;
  margin: auto;
}

/* Geniş modal (SEO gibi sidebar içeren araçlar) */
.re-modal-content.re-modal-wide {
  max-width: 1200px !important;
}

/* Header refresh butonu (PNG: ↻ ikonu X'in yanında) */
.re-btn-refresh-header {
  background: none !important;
  border: none !important;
  font-size: 1.3rem !important;
  cursor: pointer !important;
  color: var(--re-text-light) !important;
  padding: 4px 8px !important;
  transition: color 0.2s ease !important;
  line-height: 1 !important;
}

.re-btn-refresh-header:hover {
  color: #000 !important;
}

/* SEO Sidebar wrapper (tab nav + system status alt) */
.re-seo-sidebar {
  display: flex !important;
  flex-direction: column !important;
  min-width: 220px !important;
  max-width: 220px !important;
  flex-shrink: 0 !important;
  border-right: 1px solid var(--re-border) !important;
  background: #FFFFFF !important;
}

.re-seo-sidebar .re-tab-nav-vertical {
  flex: 1 !important;
  border-right: none !important;
}

.re-sidebar-footer {
  padding: 16px 20px !important;
  border-top: 1px solid var(--re-border) !important;
  font-size: 0.7rem !important;
  color: var(--re-text-light) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.re-system-status {
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-weight: 500 !important;
}

.re-status-dot {
  color: var(--re-success) !important;
  font-weight: 600 !important;
}

@keyframes re-modal-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Modal Header (Beyaz, PNG referans) ──────────────────── */

.re-modal-header {
  background: #FFFFFF;
  color: #000000;
  padding: 20px 24px;
  border-bottom: 1px solid var(--re-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.re-modal-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: #000000;
  letter-spacing: 0.02em;
}

.re-modal-close {
  background: transparent !important;
  border: 1px solid var(--re-border) !important;
  color: #000000 !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  font-size: 1.1rem !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  line-height: 1 !important;
}

.re-modal-close:hover {
  background: var(--re-hover-bg);
}

.re-header-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* ── Modal Body ──────────────────────────────────────────── */

.re-modal-body {
  padding: 24px;
  overflow-y: auto;
}

/* ── Summary ─────────────────────────────────────────────── */

.re-summary {
  font-size: 0.95rem;
  color: var(--re-text-light);
  line-height: 1.5;
  padding: 12px 24px;
  border-bottom: 1px solid var(--re-border);
}

/* ── Tab Navigation ──────────────────────────────────────── */

.re-tab-nav {
  display: flex;
  border-bottom: 1px solid var(--re-border);
  background: #FFFFFF;
  padding: 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.re-tab-nav::-webkit-scrollbar {
  display: none;
}

.re-tab-btn {
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: var(--re-text-light);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  font-family: inherit;
}

.re-tab-btn:hover {
  background: var(--re-hover-bg);
  color: var(--re-text);
}

.re-tab-btn.active {
  color: #000000;
  font-weight: 600;
  border-bottom-color: #000000;
  background: var(--re-hover-bg);
}

/* SEO sol dikey tab nav (desktop) */
.re-tab-nav-vertical {
  display: flex !important;
  flex-direction: column !important;
  border-right: 1px solid var(--re-border) !important;
  border-bottom: none !important;
  padding: 16px 0 !important;
  min-width: 200px !important;
  max-width: 200px !important;
  flex-shrink: 0 !important;
  background: #FFFFFF !important;
}

.re-tab-nav-vertical .re-tab-btn {
  text-align: left !important;
  border-bottom: none !important;
  border-left: 3px solid transparent !important;
  padding: 10px 20px !important;
  font-size: 0.9rem;
  white-space: nowrap !important;
  display: block !important;
  width: 100% !important;
}

.re-tab-nav-vertical .re-tab-btn.active {
  border-left-color: #000000 !important;
  background: var(--re-hover-bg) !important;
  border-bottom: none !important;
}

.re-tab-nav-vertical .re-tab-btn:hover {
  background: var(--re-hover-bg) !important;
}

/* SEO tab layout wrapper */
.re-seo-layout {
  display: flex !important;
  flex-direction: row !important;
  min-height: 400px;
}

.re-seo-layout .re-modal-body {
  flex: 1 !important;
  min-width: 0 !important;
  overflow-y: auto !important;
}

.re-seo-layout .re-tab-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  min-width: 0 !important;
}

/* Tüm modal içerik alanlarında metin taşmasını engelle */
.re-modal-body {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  min-width: 0 !important;
}

.re-item-detail,
.re-item-value,
.re-item-info,
.re-category-card,
.re-info-box,
.re-section {
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

/* ── Score Display ───────────────────────────────────────── */

.re-score-display {
  text-align: center;
  padding: 16px;
}

.re-score-number {
  font-size: 48px;
  font-weight: 700;
  color: #000000;
  line-height: 1;
}

.re-score-label {
  font-size: 14px;
  color: var(--re-text-light);
  margin-top: 4px;
}

/* ── Score Circle (SVG) ──────────────────────────────────── */

.re-score-circle {
  display: inline-block;
  width: 80px;
  height: 80px;
}

.re-score-circle svg {
  width: 100%;
  height: 100%;
}

.re-score-bg {
  fill: none;
  stroke: var(--re-border);
  stroke-width: 3;
}

.re-score-fill {
  fill: none;
  stroke: var(--re-primary);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease-out;
}

.re-score-text {
  fill: #000000;
  font-size: 0.55rem;
  font-weight: 700;
  text-anchor: middle;
}

/* ── Grade Badge ─────────────────────────────────────────── */

.re-grade {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.re-grade-a { background: var(--re-grade-a); }
.re-grade-b { background: var(--re-grade-b); }
.re-grade-c { background: var(--re-grade-c); }
.re-grade-d { background: var(--re-grade-d); }
.re-grade-f { background: var(--re-grade-f); }

/* ── Category Card ───────────────────────────────────────── */

.re-category-card {
  background: var(--re-card-bg);
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.re-category-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.re-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--re-border);
}

.re-category-card h3,
.re-category-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
}

.re-category-card h4 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
}

.re-category-score {
  font-weight: 700;
  font-size: 0.85rem;
  color: #000000;
  background: var(--re-hover-bg);
  padding: 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--re-border);
}

.re-category-body {
  padding: 0;
}

/* ── Category Progress Bar ───────────────────────────────── */

.re-category-progress {
  height: 6px;
  background: var(--re-border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 8px;
}

.re-progress-bar {
  height: 100%;
  background: var(--re-primary);
  border-radius: 3px;
  transition: width 0.4s ease-out;
}

/* ── Item Row / List ─────────────────────────────────────── */

.re-item-row {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  padding: 10px 0 !important;
  border-bottom: 1px solid var(--re-border) !important;
  font-size: 0.92rem;
  min-width: 0 !important;
  overflow: hidden !important;
}

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

.re-item-info {
  flex: 1 !important;
  min-width: 0 !important;
}

.re-item-label {
  color: var(--re-text);
  font-weight: 500;
}

.re-item-detail {
  color: var(--re-text-light);
  font-size: 0.85rem;
  margin: 2px 0 0;
  line-height: 1.4;
}

.re-item-value {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--re-text);
  background: var(--re-card-bg);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0 !important;
  max-width: 45% !important;
  text-align: right !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}

.re-item-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.re-item-info {
  flex: 1;
  line-height: 1.4;
}

.re-item-info strong {
  display: block;
  color: #000000;
  margin-bottom: 2px;
}

.re-item-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.re-item-list li {
  padding: 12px 16px;
  border-bottom: 1px solid var(--re-border);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.re-item-list li:last-child {
  border-bottom: none;
}

.re-item-content {
  flex: 1;
}

.re-item-content strong {
  display: block;
  margin-bottom: 4px;
  color: #000000;
}

.re-item-content p {
  margin: 0;
  color: var(--re-text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

.re-item-suggestion {
  background: #FFFBEB;
  padding: 10px 15px;
  border-left: 3px solid var(--re-warning);
  font-size: 0.9rem;
  color: #92400E;
  border-radius: 4px;
  margin-top: 8px;
}

/* ── Status Pills ────────────────────────────────────────── */

.re-status-pass,
.re-status-fail,
.re-status-warning,
.re-status-info {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #fff;
}

.re-status-pass    { background: var(--re-success); }
.re-status-fail    { background: var(--re-danger); }
.re-status-warning { background: var(--re-warning); }
.re-status-info    { background: var(--re-info); }

/* ── Status Badge (icon circle) ──────────────────────────── */

.re-status-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  flex-shrink: 0;
}

/* ── Metric Card (CWV, Stats) ────────────────────────────── */

.re-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.re-metric-card {
  background: var(--re-card-bg);
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.re-metric-label {
  display: block;
  font-size: 0.8rem;
  color: var(--re-text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

.re-metric-value {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.2;
}

.re-metric-unit {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--re-text-light);
}

.re-metric-status {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 6px;
}

.re-metric-bar {
  height: 4px;
  background: var(--re-border);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.re-metric-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease-out;
}

/* ── Stat Grid (İçerik stats, Keyword stats) ─────────────── */

.re-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.re-stat-card {
  background: var(--re-card-bg);
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.re-stat-card .re-stat-label {
  font-size: 0.75rem;
  color: var(--re-text-light);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.re-stat-card .re-stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #000000;
}

.re-stat-card .re-stat-status {
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 4px;
}

/* ── Table ────────────────────────────────────────────────── */

.re-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
  border: 1px solid var(--re-border);
  border-radius: 8px;
}

.re-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #FFFFFF;
}

.re-table thead {
  background: var(--re-card-bg);
}

.re-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--re-text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--re-border);
}

.re-table td {
  padding: 12px 16px;
  color: var(--re-text);
  border-bottom: 1px solid var(--re-border);
}

.re-table tbody tr:last-child td {
  border-bottom: none;
}

.re-table tbody tr:hover {
  background: var(--re-hover-bg);
}

.re-table tbody tr.re-row-highlight {
  background: #FFFBEB;
  border-left: 3px solid var(--re-warning);
}

/* ── Section ─────────────────────────────────────────────── */

.re-section {
  margin-bottom: 24px;
}

.re-section h3 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
}

.re-section h4 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
}

.re-section-title {
  font-size: 1rem;
  font-weight: 600;
  color: #000000;
  margin: 20px 0 12px;
}

/* ── Prompt Actions ──────────────────────────────────────── */

.re-prompt-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Info Box ────────────────────────────────────────────── */

.re-info-box {
  padding: 16px;
  background: var(--re-card-bg);
  border: 1px solid var(--re-border);
  border-radius: 8px;
  color: var(--re-text-light);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ── Alert Box ───────────────────────────────────────────── */

.re-alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.re-alert-warning {
  background: #FFFBEB;
  border: 1px solid var(--re-warning);
  color: #92400E;
}

/* ── AI Verdict Badge ────────────────────────────────────── */

.re-verdict-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 32px;
  border-radius: 8px;
  color: #FFFFFF;
}

.re-verdict-score {
  font-size: 2rem;
  font-weight: 700;
  display: block;
}

.re-verdict-label {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ── AI Metrics Layout ───────────────────────────────────── */

.re-ai-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.re-ai-verdict {
  text-align: center;
  margin-bottom: 20px;
}

/* ── AI Sentence Row ─────────────────────────────────────── */

.re-sentence-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  margin-bottom: 8px;
  background: var(--re-card-bg);
  border-radius: 0 6px 6px 0;
}

.re-sentence-text {
  flex: 1;
  color: var(--re-text);
  line-height: 1.5;
  font-size: 0.9rem;
}

.re-sentence-prob {
  font-weight: 700;
  background: #FFFFFF;
  padding: 4px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  font-size: 0.85rem;
}

/* ── AI Disclaimer ───────────────────────────────────────── */

.re-ai-disclaimer {
  margin-top: 20px;
  padding: 16px;
  background: var(--re-card-bg);
  border-left: 4px solid var(--re-border);
  font-size: 0.85rem;
  color: var(--re-text-light);
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

/* ── Gauge (SVG circle progress) ─────────────────────────── */

.re-gauge-bg {
  fill: none;
  stroke: var(--re-border);
  stroke-width: 3;
}

.re-gauge-fill {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease-out;
}

.re-gauge-text {
  font-size: 8px;
  text-anchor: middle;
  font-weight: 700;
  fill: #000000;
}

/* ── Speed Gauge ─────────────────────────────────────────── */

.re-speed-gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.re-speed-overview-top {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
}

.re-speed-gauge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 8px solid var(--re-card-bg);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.re-speed-gauge span {
  font-size: 2rem;
  font-weight: 700;
}

/* ── Prompt Output ───────────────────────────────────────── */

.re-prompt-result {
  background: var(--re-card-bg);
  border: 1px solid var(--re-border);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.re-prompt-result-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--re-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFFFFF;
}

.re-prompt-result-header h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000000;
}

.re-prompt-output {
  white-space: pre-wrap;
  font-family: 'SFMono-Regular', 'Consolas', 'Menlo', monospace;
  margin: 0;
  color: #FFFFFF;
  line-height: 1.6;
  font-size: 0.9rem;
  padding: 16px;
  background: #000000;
  max-height: 300px;
  overflow-y: auto;
}

.re-prompt-wordcount {
  font-size: 0.85rem;
  color: var(--re-text-light);
}

/* ── Prompt Copy Button ──────────────────────────────────── */

.re-btn-copy {
  background: transparent;
  border: 1px solid var(--re-border);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--re-text);
  font-family: inherit;
  transition: background 0.2s;
}

.re-btn-copy:hover {
  background: var(--re-hover-bg);
}

.re-btn-copy.re-copied {
  color: var(--re-success);
  border-color: var(--re-success);
}

/* ── Prompt Optimizations & Tips ─────────────────────────── */

.re-prompt-optimizations,
.re-prompt-tips {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--re-text);
}

.re-prompt-optimizations li::before {
  content: '✓ ';
  color: var(--re-success);
  font-weight: 600;
}

.re-prompt-tips li::before {
  content: '💡 ';
}

/* ── Cluster Card (Keyword) ──────────────────────────────── */

.re-cluster-card {
  background: var(--re-card-bg);
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 16px;
}

.re-cluster-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.re-cluster-name {
  font-weight: 600;
  color: #000000;
}

.re-cluster-count {
  font-size: 0.75rem;
  background: var(--re-border);
  color: #000000;
  padding: 2px 8px;
  border-radius: 10px;
}

.re-cluster-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.re-cluster-keyword-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  background: #FFFFFF;
  border: 1px solid var(--re-border);
  color: var(--re-text);
  border-radius: 4px;
}

/* ── Question Card (Keyword) ─────────────────────────────── */

.re-question-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 12px 16px;
}

.re-question-text {
  color: #000000;
  font-size: 0.9rem;
  font-weight: 500;
}

/* ── Ranking Position Badge ──────────────────────────────── */

.re-ranking-position .re-badge {
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  color: #FFFFFF;
}

.re-badge-success {
  background: var(--re-success);
}

.re-badge-danger {
  background: var(--re-danger);
}

/* ── Recommendation List ─────────────────────────────────── */

.re-recommendations {
  list-style: none;
  padding: 0;
  margin: 0;
}

.re-recommendations li {
  margin-bottom: 8px;
  padding-left: 24px;
  position: relative;
  color: var(--re-text);
  line-height: 1.6;
  font-size: 0.9rem;
}

.re-recommendations li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--re-success);
  font-weight: 700;
}

/* ── Modal Footer ────────────────────────────────────────── */

.re-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--re-border);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
}

.re-btn-pdf {
  padding: 10px 20px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.re-btn-pdf:hover {
  background: #333333;
}

.re-btn-copy-lg {
  padding: 10px 20px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}

.re-btn-copy-lg:hover {
  background: #333333;
}

.re-btn-copy-lg.re-copied {
  background: var(--re-success);
}

.re-btn-linguistic-report {
  padding: 10px 20px;
  background: #000000;
  color: #FFFFFF;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

/* ── CTA Box ─────────────────────────────────────────────── */

.re-cta-box {
  background: var(--re-card-bg);
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 20px;
  margin-top: 24px;
  text-align: center;
}

.re-cta-box p {
  margin: 0 0 12px;
  color: var(--re-text-light);
}

.re-cta-btn,
.re-cta-link {
  display: inline-block;
  padding: 10px 24px;
  background: #FFFFFF;
  color: #000000;
  border: 1px solid var(--re-border);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s;
  font-family: inherit;
}

.re-cta-btn:hover,
.re-cta-link:hover {
  background: var(--re-hover-bg);
  color: #000000;
}

.re-cta {
  margin-left: auto;
}

/* ── Tip Item (SEO AI önerileri) ─────────────────────────── */

.re-tip-item {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  background: var(--re-card-bg);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--re-border);
}

/* ── Intent Badge (Keyword) ──────────────────────────────── */

.re-intent-badge {
  font-size: 0.8rem;
  padding: 2px 8px;
  background: var(--re-card-bg);
  border: 1px solid var(--re-border);
  border-radius: 10px;
  white-space: nowrap;
}

/* ── Trend Indicator ─────────────────────────────────────── */

.re-trend-hot {
  color: var(--re-danger);
  font-weight: 700;
}

.re-trend-normal {
  color: var(--re-text-light);
}

/* ── System Status Footer ────────────────────────────────── */

.re-system-footer {
  padding: 10px 24px !important;
  border-top: 1px solid var(--re-border) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  font-size: 0.75rem !important;
  color: var(--re-text-light) !important;
  background: #FFFFFF !important;
}

.re-btn-refresh {
  background: none !important;
  border: 1px solid var(--re-border) !important;
  border-radius: 6px !important;
  padding: 4px 12px !important;
  font-size: 0.78rem !important;
  cursor: pointer !important;
  color: var(--re-text-light) !important;
  transition: all 0.2s ease !important;
}

.re-btn-refresh:hover {
  border-color: #000 !important;
  color: #000 !important;
}

.re-footer-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 24px !important;
}

/* ════════════════════════════════════════════════════════════
   TOOL-SPECIFIC PREMIUM LAYOUTS (PNG referans)
   ════════════════════════════════════════════════════════════ */

/* ── SEO: Üst 3 Bilgi Kartı ─────────────────────────────── */

.re-seo-info-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
  margin-bottom: 24px !important;
}

.re-seo-info-card {
  background: #FFFFFF !important;
  border: 1px solid var(--re-border) !important;
  border-radius: 8px !important;
  padding: 16px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  min-width: 0 !important;
  overflow: hidden !important;
}

.re-seo-info-card .re-info-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-text-light);
  margin-bottom: 4px;
}

.re-seo-info-card .re-info-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #000000;
}

.re-seo-info-card .re-info-status {
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 4px;
}

.re-seo-info-card .re-info-icon {
  font-size: 1.4rem;
  color: var(--re-text-light);
  flex-shrink: 0;
}

/* SEO: H-Tags Ağaç Yapısı */

.re-htags-tree {
  background: #FFFFFF !important;
  border: 1px solid var(--re-border) !important;
  border-radius: 8px !important;
  padding: 24px !important;
  margin-bottom: 24px !important;
  text-align: center !important;
  overflow-x: auto !important;
}

.re-htag-node {
  display: inline-block;
  padding: 8px 20px;
  border: 2px solid #000000;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  background: #000000;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.re-htag-children {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 2px solid var(--re-border);
  flex-wrap: wrap;
}

.re-htag-child {
  padding: 6px 16px;
  border: 1px solid var(--re-border);
  border-radius: 6px;
  font-size: 0.8rem;
  color: #000000;
  background: #FFFFFF;
}

.re-htag-child.re-htag-error {
  border-color: var(--re-danger);
  color: var(--re-danger);
}

/* SEO: URL Durum Tablosu */

.re-url-status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #FFFFFF;
}

/* ── AI: 2 Kolon Layout ──────────────────────────────────── */

.re-ai-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.re-ai-text-panel {
  min-height: 300px;
}

.re-ai-text-content {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--re-text);
}

.re-ai-text-content .re-highlight-medium {
  background: rgba(0, 0, 0, 0.06);
  border-bottom: 2px solid #999;
  padding: 0 2px;
}

.re-ai-text-content .re-highlight-high {
  background: rgba(239, 68, 68, 0.1);
  border-bottom: 2px solid var(--re-danger);
  padding: 0 2px;
}

.re-ai-legend {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--re-border);
  font-size: 0.8rem;
  color: var(--re-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.re-ai-legend span {
  margin-right: 20px;
}

.re-ai-legend .re-legend-medium::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 3px;
  background: #999;
  margin-right: 6px;
  vertical-align: middle;
}

.re-ai-legend .re-legend-high::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 3px;
  background: var(--re-danger);
  margin-right: 6px;
  vertical-align: middle;
}

.re-ai-metrics-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* AI: Burstiness Bar Chart */

.re-burstiness-card {
  background: #FFFFFF;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 20px;
}

.re-burstiness-card h4 {
  margin: 0 0 16px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #000000;
}

.re-burstiness-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 80px;
  margin-bottom: 8px;
}

.re-burstiness-bar {
  flex: 1;
  background: #000000;
  border-radius: 2px 2px 0 0;
  min-height: 8px;
  transition: height 0.4s ease-out;
}

.re-burstiness-bar.re-bar-light {
  background: #999;
}

.re-burstiness-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--re-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.re-burstiness-desc {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--re-text-light);
  line-height: 1.4;
}

/* AI: Perplexity Scale Bar */

.re-perplexity-card {
  background: #FFFFFF;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 20px;
}

.re-perplexity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.re-perplexity-header h4 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.re-perplexity-score {
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-weight: 600;
  font-size: 0.9rem;
}

.re-perplexity-bar {
  height: 8px;
  background: linear-gradient(to right, var(--re-danger), var(--re-warning), var(--re-success));
  border-radius: 4px;
  position: relative;
  margin-bottom: 8px;
}

.re-perplexity-indicator {
  position: absolute;
  top: -4px;
  width: 16px;
  height: 16px;
  background: #000;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: left 0.4s;
}

.re-perplexity-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.re-perplexity-desc {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--re-text-light);
  line-height: 1.4;
}

/* AI: Statistics Card */

.re-statistics-card {
  background: #FFFFFF;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 20px;
}

.re-statistics-card h4 {
  margin: 0 0 12px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.re-statistics-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--re-border);
  font-size: 0.9rem;
}

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

.re-statistics-row .re-stat-key {
  color: var(--re-text);
}

.re-statistics-row .re-stat-val {
  font-weight: 600;
  color: #000000;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
}

/* AI: Üst Score Bar */

.re-ai-score-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 1px solid var(--re-border);
}

.re-ai-score-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.re-ai-prob-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-text-light);
}

.re-ai-prob-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000000;
}

/* ── UX: 2 Kolon Layout ─────────────────────────────────── */

.re-ux-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 24px;
}

.re-ux-mockup-panel {
  position: relative;
}

/* UX Genel Bakış: 2 kolon layout (sol mockup, sağ barlar) */
.re-ux-overview-layout {
  display: flex !important;
  gap: 32px !important;
  align-items: flex-start !important;
}

.re-ux-overview-left {
  flex-shrink: 0 !important;
  width: 280px !important;
}

.re-ux-overview-right {
  flex: 1 !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.re-ux-alert-banner {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.re-ux-alert-fail {
  background: var(--re-danger);
}

.re-ux-alert-pass {
  background: var(--re-success);
}

/* Premium telefon mockup */
.re-ux-mockup {
  background: #F8F8F8 !important;
  border: 3px solid #1A1A1A !important;
  border-radius: 28px !important;
  padding: 0 !important;
  max-width: 260px !important;
  margin: 0 auto !important;
  position: relative !important;
  overflow: hidden !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
}

.re-ux-mockup::before {
  display: none !important;
}

.re-ux-mockup-header {
  background: #1A1A1A !important;
  padding: 8px 0 4px !important;
  display: flex !important;
  justify-content: center !important;
}

.re-mockup-notch {
  width: 80px !important;
  height: 6px !important;
  background: #333 !important;
  border-radius: 10px !important;
}

.re-ux-mockup-body {
  background: #FFFFFF !important;
  padding: 16px 12px !important;
  min-height: 260px !important;
  border-radius: 0 !important;
}

/* Mockup içi skor ring */
.re-mockup-score-ring {
  text-align: center !important;
  padding: 16px 0 12px !important;
  border-bottom: 1px solid var(--re-border) !important;
  margin-bottom: 12px !important;
}

.re-mockup-score-val {
  display: block !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: #1A1A1A !important;
  line-height: 1 !important;
}

.re-mockup-score-label {
  display: block !important;
  font-size: 0.7rem !important;
  color: var(--re-text-light) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  margin-top: 4px !important;
}

/* Mockup içi stat'lar */
.re-mockup-stats {
  display: flex !important;
  justify-content: space-around !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid var(--re-border) !important;
  margin-bottom: 10px !important;
}

.re-mockup-stat {
  text-align: center !important;
}

.re-mockup-stat strong {
  display: block !important;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #1A1A1A !important;
}

.re-mockup-stat small {
  font-size: 0.65rem !important;
  color: var(--re-text-light) !important;
  text-transform: uppercase !important;
}

/* Mockup içi issue item'lar */
.re-mockup-items {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.re-mockup-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  font-size: 0.72rem !important;
  background: var(--re-card-bg) !important;
}

.re-mockup-item-pass { border-left: 3px solid var(--re-success) !important; }
.re-mockup-item-fail, .re-mockup-item-error { border-left: 3px solid var(--re-danger) !important; }
.re-mockup-item-warning { border-left: 3px solid var(--re-warning) !important; }

.re-mockup-icon {
  font-size: 0.8rem !important;
  flex-shrink: 0 !important;
}

.re-mockup-text {
  color: var(--re-text) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Eski placeholder'lar (unused, compat) */
.re-ux-placeholder-line {
  height: 10px;
  background: var(--re-border);
  border-radius: 4px;
  margin-bottom: 8px;
}

.re-ux-placeholder-line:nth-child(odd) {
  width: 80%;
}

.re-ux-placeholder-rect {
  height: 60px;
  background: var(--re-card-bg);
  border-radius: 6px;
  margin-bottom: 12px;
}

.re-ux-mockup-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--re-text-light);
  margin-top: 16px;
  line-height: 1.5;
}

.re-ux-analysis-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* UX: AI Öneri Kutusu */

.re-ux-ai-suggestion {
  background: #1A1A1A;
  color: #FFFFFF;
  border-radius: 8px;
  padding: 20px;
  margin-top: 8px;
}

.re-ux-ai-suggestion h4 {
  color: #FFFFFF;
  margin: 0 0 10px;
  font-size: 0.9rem;
}

.re-ux-ai-suggestion p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

.re-ux-ai-suggestion strong {
  color: #FFFFFF;
}

.re-ux-ai-suggestion .re-highlight-value {
  color: var(--re-success);
  font-weight: 700;
}

/* ── GEO: 2 Kolon Layout ────────────────────────────────── */

.re-geo-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.re-geo-left-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.re-geo-right-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* GEO: Code Block (JSON-LD) */

.re-geo-code-block {
  background: #1A1A1A;
  border-radius: 8px;
  overflow: hidden;
}

.re-geo-code-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: #2D2D2D;
  font-size: 0.8rem;
}

.re-geo-code-header .re-filename {
  color: #F87171;
}

.re-geo-code-header .re-filetype {
  color: var(--re-text-light);
  font-family: 'SFMono-Regular', 'Consolas', monospace;
}

.re-geo-code-body {
  padding: 16px;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  font-size: 0.8rem;
  color: #E5E7EB;
  line-height: 1.7;
  white-space: pre-wrap;
  max-height: 250px;
  overflow-y: auto;
}

.re-geo-code-body .re-json-key {
  color: #93C5FD;
}

.re-geo-code-body .re-json-string {
  color: #86EFAC;
}

/* GEO: Entity List */

.re-geo-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-text-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.re-geo-entity-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  margin-bottom: 8px;
  background: #FFFFFF;
}

.re-geo-entity-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.re-geo-entity-info {
  flex: 1;
}

.re-geo-entity-info strong {
  display: block;
  font-size: 0.95rem;
  color: #000000;
}

.re-geo-entity-info small {
  color: var(--re-text-light);
  font-size: 0.8rem;
}

.re-geo-entity-score {
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* GEO: AI Suggestions */

.re-geo-suggestion {
  padding: 12px 16px;
  border-left: 4px solid var(--re-border);
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--re-text);
  line-height: 1.5;
}

.re-geo-suggestion code {
  background: var(--re-card-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
}

/* ── Speed: Büyük CWV Kartları ───────────────────────────── */

.re-cwv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.re-cwv-card {
  background: #FFFFFF;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 20px;
}

.re-cwv-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.re-cwv-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-text-light);
  line-height: 1.4;
  max-width: 65%;
}

.re-cwv-status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
}

.re-cwv-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  margin-bottom: 4px;
}

.re-cwv-value .re-cwv-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--re-text-light);
  margin-left: 2px;
}

.re-cwv-target {
  font-size: 0.78rem;
  color: var(--re-text-light);
  margin-bottom: 10px;
}

.re-cwv-bar {
  height: 6px;
  background: var(--re-border);
  border-radius: 3px;
  overflow: hidden;
}

.re-cwv-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease-out;
}

/* ── Prompt: Original Input Box ──────────────────────────── */

.re-prompt-original {
  margin-bottom: 24px;
}

.re-prompt-original-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-text-light);
  margin-bottom: 8px;
}

.re-prompt-original-text {
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 16px 20px;
  font-style: italic;
  color: var(--re-text);
  font-size: 0.95rem;
  line-height: 1.6;
  background: #FFFFFF;
}

/* Prompt: Generated Prompt Header */

.re-prompt-generated-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.re-prompt-generated-label h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-text-light);
  margin: 0;
}

.re-prompt-model-tag {
  font-size: 0.78rem;
  padding: 2px 10px;
  border: 1px solid var(--re-border);
  border-radius: 4px;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  color: var(--re-text-light);
}

/* Prompt: Terminal Icon */

.re-prompt-output-wrap {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
}

.re-prompt-output-wrap::after {
  content: '>_';
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: 'SFMono-Regular', 'Consolas', monospace;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1rem;
}

/* Prompt: Generation Footer */

.re-prompt-gen-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--re-text-light);
  padding-top: 8px;
}

/* ── Keyword: Analyzed Keyword Headline ──────────────────── */

.re-keyword-headline {
  margin-bottom: 24px;
}

.re-keyword-headline .re-kw-analyzed-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-text-light);
  margin-bottom: 4px;
}

.re-keyword-headline .re-kw-name {
  font-size: 1.6rem;
  font-weight: 700;
  color: #000000;
  margin: 0 0 8px;
}

.re-keyword-headline .re-kw-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--re-text-light);
  border: 1px solid var(--re-border);
  border-radius: 20px;
  padding: 4px 12px;
}

.re-keyword-headline .re-kw-updated::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--re-success);
  border-radius: 50%;
}

/* Keyword: Stat Card Premium (PNG boyutunda büyük) */

.re-keyword-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.re-keyword-stat-card {
  background: #FFFFFF;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 20px;
}

.re-keyword-stat-card .re-kw-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-text-light);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.re-keyword-stat-card .re-kw-stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #000000;
  line-height: 1;
  margin-bottom: 4px;
}

.re-keyword-stat-card .re-kw-stat-desc {
  font-size: 0.8rem;
  color: var(--re-text-light);
}

/* ── Ranking: Büyük Pozisyon Göstergesi ──────────────────── */

.re-ranking-hero {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--re-border);
  border-radius: 8px;
  overflow: hidden;
}

.re-ranking-hero-item {
  flex: 1;
  padding: 20px;
  border-right: 1px solid var(--re-border);
}

.re-ranking-hero-item:last-child {
  border-right: none;
}

.re-ranking-hero-item .re-rank-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--re-text-light);
  margin-bottom: 4px;
}

.re-ranking-hero-item .re-rank-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: #000000;
  line-height: 1;
}

.re-ranking-hero-item .re-rank-change {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 4px;
}

/* Ranking: YOU badge */

.re-you-badge {
  display: inline-block;
  background: #000000;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  vertical-align: middle;
}

/* ── Responsive (1024px — desktop) ───────────────────────── */

@media (min-width: 1024px) {
  .re-modal-content {
    max-width: 900px;
  }

  .re-metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .re-stat-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .re-ai-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Responsive (768px — tablet) ─────────────────────────── */

@media (max-width: 768px) {
  .re-input-group {
    flex-direction: column;
  }

  .re-submit-btn {
    width: 100%;
  }

  .re-modal {
    padding: 16px 8px;
  }

  .re-modal-content {
    border-radius: 10px;
    width: 95%;
  }

  .re-modal-header {
    padding: 16px;
  }

  .re-modal-header h2 {
    font-size: 1.1rem;
  }

  .re-modal-body {
    padding: 16px;
  }

  .re-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .re-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .re-ai-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .re-seo-layout {
    flex-direction: column !important;
  }

  .re-seo-sidebar {
    flex-direction: row !important;
    min-width: auto !important;
    max-width: none !important;
    border-right: none !important;
    border-bottom: 1px solid var(--re-border) !important;
  }

  .re-sidebar-footer {
    display: none !important;
  }

  .re-modal-content.re-modal-wide {
    max-width: 100% !important;
  }

  .re-tab-nav-vertical {
    flex-direction: row !important;
    border-right: none !important;
    border-bottom: none !important;
    min-width: auto !important;
    max-width: none !important;
    overflow-x: auto !important;
    padding: 0 !important;
  }

  .re-tab-nav-vertical .re-tab-btn {
    border-left: none !important;
    border-bottom: 2px solid transparent !important;
    white-space: nowrap !important;
    display: inline-block !important;
    width: auto !important;
    font-size: 0.8rem !important;
    padding: 8px 12px !important;
  }

  .re-tab-nav-vertical .re-tab-btn.active {
    border-left-color: transparent !important;
    border-bottom-color: #000 !important;
  }

  .re-item-row {
    flex-wrap: wrap;
  }

  .re-score-circle {
    width: 64px;
    height: 64px;
  }

  .re-modal-footer {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .re-ai-layout,
  .re-ux-layout,
  .re-geo-layout {
    grid-template-columns: 1fr;
  }

  .re-ux-overview-layout {
    flex-direction: column !important;
  }

  .re-ux-overview-left {
    width: 100% !important;
    max-width: 300px !important;
    margin: 0 auto !important;
  }

  .re-cwv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .re-keyword-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .re-ranking-hero {
    flex-direction: column;
  }

  .re-ranking-hero-item {
    border-right: none;
    border-bottom: 1px solid var(--re-border);
  }

  .re-ranking-hero-item:last-child {
    border-bottom: none;
  }

  .re-seo-info-grid {
    grid-template-columns: 1fr;
  }

  .re-cta {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* ── Responsive (320px — mobil) ───────────────────────────── */

@media (max-width: 480px) {
  .re-modal {
    padding: 8px 4px;
  }

  .re-modal-content {
    border-radius: 8px;
    width: 100%;
  }

  .re-modal-header {
    padding: 14px 12px;
    flex-wrap: wrap;
  }

  .re-modal-header h2 {
    font-size: 1rem;
    width: 100%;
    margin-bottom: 8px;
  }

  .re-modal-body {
    padding: 12px;
    max-height: 65vh;
  }

  .re-metric-grid {
    grid-template-columns: 1fr;
  }

  .re-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .re-ai-metrics {
    grid-template-columns: 1fr;
  }

  .re-tab-nav {
    padding: 0 8px;
  }

  .re-tab-btn {
    padding: 10px 12px;
    font-size: 0.8rem;
  }

  .re-category-card {
    padding: 12px;
  }

  .re-metric-value {
    font-size: 1.4rem;
  }

  .re-score-number {
    font-size: 36px;
  }

  .re-table {
    font-size: 0.8rem;
  }

  .re-table th,
  .re-table td {
    padding: 8px 10px;
  }

  .re-modal-footer {
    padding: 12px;
    flex-direction: column;
  }

  .re-btn-pdf,
  .re-btn-copy-lg {
    width: 100%;
    text-align: center;
  }

  .re-prompt-output {
    font-size: 0.8rem;
    padding: 12px;
  }

  .re-speed-gauge {
    width: 90px;
    height: 90px;
  }

  .re-cwv-grid {
    grid-template-columns: 1fr;
  }

  .re-keyword-stat-grid {
    grid-template-columns: 1fr;
  }

  .re-keyword-headline .re-kw-name {
    font-size: 1.2rem;
  }

  .re-ranking-hero-item .re-rank-value {
    font-size: 1.6rem;
  }

  .re-burstiness-bars {
    height: 50px;
  }
}
