/* ─── SCOUT PAGE ─── */

/* Nav */
.scout-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.scout-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--display);
  font-size: 28px;
  color: var(--fg);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-brand:hover { color: var(--accent); }

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid rgba(255, 58, 47, 0.3);
  padding: 8px 18px;
  border-radius: 6px;
  background: var(--accent-glow);
  transition: background 0.2s, border-color 0.2s;
}

.nav-cta:hover {
  background: rgba(255, 58, 47, 0.2);
  border-color: var(--accent);
}

/* Scout Header */
.scout-header {
  padding: 140px 0 60px;
  position: relative;
}

.scout-title {
  font-family: var(--display);
  font-size: clamp(42px, 7vw, 80px);
  line-height: 0.95;
  margin-bottom: 20px;
  margin-top: 24px;
}

.scout-sub {
  font-size: 18px;
  color: var(--fg-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* Form */
.scout-form-section {
  padding: 0 0 64px;
}

.scout-form {
  max-width: 760px;
}

.form-row {
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.scout-input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  font-family: var(--body);
  font-size: 16px;
  color: var(--fg);
  outline: none;
  transition: border-color 0.2s;
}

.scout-input::placeholder { color: var(--fg-muted); }
.scout-input:focus { border-color: rgba(255, 58, 47, 0.4); }

.scout-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 28px;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.scout-btn:hover { background: #e02e24; }
.scout-btn:active { transform: scale(0.98); }
.scout-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.scout-btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 58, 47, 0.4);
  color: var(--accent);
  margin-top: 32px;
}

.scout-btn-outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
}

.form-hint {
  margin-top: 10px;
  font-size: 13px;
  color: var(--fg-muted);
}

/* Error */
.scout-error-section { padding: 0 0 32px; }

.error-box {
  background: rgba(255, 58, 47, 0.08);
  border: 1px solid rgba(255, 58, 47, 0.25);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--fg);
  max-width: 760px;
}

.error-icon { font-size: 18px; }

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-box {
  text-align: center;
  padding: 48px;
}

.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 28px;
}

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

.loading-title {
  font-family: var(--display);
  font-size: 32px;
  margin-bottom: 12px;
}

.loading-sub {
  color: var(--fg-muted);
  font-size: 14px;
}

/* Report */
.report-section { padding: 0 0 80px; }

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.report-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(255, 58, 47, 0.2);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.report-name {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  margin-bottom: 16px;
}

.report-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.report-record {
  font-family: var(--display);
  font-size: 24px;
  color: var(--accent);
}

.report-meta-tag {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 100px;
}

/* Danger Badge */
.danger-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 24px;
  border-radius: 12px;
  font-family: var(--display);
  font-size: 28px;
  line-height: 1;
  min-width: 100px;
  text-align: center;
  flex-shrink: 0;
}

.danger-label {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

.danger-low    { background: rgba(34, 197, 94, 0.1);  border: 1px solid rgba(34, 197, 94, 0.25);  color: #22c55e; }
.danger-medium { background: rgba(234, 179, 8, 0.1);  border: 1px solid rgba(234, 179, 8, 0.25);  color: #eab308; }
.danger-high   { background: rgba(255, 58, 47, 0.1);  border: 1px solid rgba(255, 58, 47, 0.3);   color: var(--accent); }
.danger-elite  { background: rgba(255, 58, 47, 0.15); border: 1px solid rgba(255, 58, 47, 0.5);   color: var(--accent); }

/* Summary */
.report-summary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg);
}

/* Report Cards */
.report-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 28px;
}

.report-full { grid-column: 1 / -1; }

.card-title {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
  color: var(--fg);
}

.card-title-green { color: #4ade80; }
.card-title-red   { color: var(--accent); }

.card-text {
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.7;
}

.muted { color: var(--fg-muted); }

/* Stat List */
.stat-list { display: flex; flex-direction: column; gap: 10px; }

.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.stat-row:last-child { border-bottom: none; }
.stat-key { color: var(--fg-muted); }
.stat-val { font-weight: 600; color: var(--fg); }

/* Finish Bars */
.finish-bars { display: flex; flex-direction: column; gap: 16px; }

.finish-row {
  display: grid;
  grid-template-columns: 90px 1fr 50px;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.finish-label { color: var(--fg-muted); font-size: 13px; }
.finish-bar-wrap { background: var(--bg-elevated); border-radius: 4px; height: 8px; }
.finish-bar { height: 8px; border-radius: 4px; width: 40%; }
.finish-ko  { background: var(--accent); width: 55%; }
.finish-sub { background: #f97316; width: 30%; }
.finish-dec { background: #64748b; width: 40%; }
.finish-num { color: var(--fg); font-weight: 600; text-align: right; }

/* Tags */
.tag-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.tag {
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
}

.tag-strength {
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.2);
  color: #4ade80;
}

.tag-weakness {
  background: rgba(255, 58, 47, 0.08);
  border: 1px solid rgba(255, 58, 47, 0.2);
  color: var(--accent);
}

/* Tendencies */
.tendency-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.tendency-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.tendency-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Key Fights */
.fights-table { display: flex; flex-direction: column; gap: 10px; }

.fight-row {
  display: grid;
  grid-template-columns: 60px 1fr 100px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.fight-result {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 6px;
  text-align: center;
}

.fight-win  { background: rgba(74, 222, 128, 0.1); color: #4ade80; }
.fight-loss { background: rgba(255, 58, 47, 0.1);  color: var(--accent); }
.fight-draw { background: rgba(100, 116, 139, 0.1); color: #94a3b8; }
.fight-nc   { background: rgba(100, 116, 139, 0.1); color: #94a3b8; }

.fight-opponent { font-weight: 600; color: var(--fg); }

/* Game Plan */
.game-plan-card {
  background: linear-gradient(135deg, var(--bg-card), rgba(255, 58, 47, 0.03));
  border-color: rgba(255, 58, 47, 0.15);
}

.game-plan-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.game-plan-icon { font-size: 22px; }

.game-plan-overview {
  font-size: 16px;
  color: var(--fg);
  line-height: 1.7;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

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

.gp-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.6;
}

.gp-box-label {
  font-family: var(--display);
  font-size: 15px;
  color: var(--fg);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.key-instructions {
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.ki-label {
  font-family: var(--display);
  font-size: 16px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.ki-list {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ki-list li {
  font-size: 15px;
  color: var(--fg);
  line-height: 1.5;
}

/* Disclaimer */
.report-disclaimer {
  font-size: 13px;
  color: var(--fg-muted);
  margin-top: 24px;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.report-cta { text-align: center; margin-top: 40px; }

/* Recent Reports */
.recent-section {
  padding: 60px 0 80px;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.recent-title {
  font-family: var(--display);
  font-size: 28px;
  margin-bottom: 24px;
  color: var(--fg-muted);
  letter-spacing: 0.5px;
}

.recent-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.recent-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 18px;
  text-decoration: none;
  transition: border-color 0.2s;
}

.recent-card:hover { border-color: rgba(255, 58, 47, 0.3); }

.recent-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
}

.recent-date { font-size: 12px; }

/* Responsive */
@media (max-width: 768px) {
  .scout-header { padding: 120px 0 40px; }

  .form-row { flex-direction: column; }

  .report-header { flex-direction: column; gap: 20px; }

  .report-grid-2 { grid-template-columns: 1fr; }

  .game-plan-grid { grid-template-columns: 1fr; }

  .fight-row { grid-template-columns: 60px 1fr; }
  .fight-method, .fight-note { display: none; }

  .finish-row { grid-template-columns: 80px 1fr 40px; }
}

@media (max-width: 480px) {
  .report-name { font-size: 36px; }
  .danger-badge { padding: 12px 16px; font-size: 22px; }
}
