/* ============================================================
   AGORA — FEATURES STYLES  v2.0
   Recap, Predictions, Reputation, API Docs, External Links
   ============================================================ */

/* ---- 34. RECAP HEBDOMADAIRE -------------------------------- */
.recap-subtitle { text-align: center; color: var(--text-300); font-size: 1rem; margin-top: -0.5rem; }

.recap-auth-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent 50%), var(--bg-800);
  border: 1px solid var(--line-500); border-radius: var(--r-lg); padding: 2rem;
  text-align: center; max-width: 480px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 1rem; color: var(--text-300);
  box-shadow: var(--shadow-md);
}

.recap-week-selector { display: flex; align-items: center; gap: 0.75rem; max-width: 480px; margin: 0 auto; }
.recap-week-selector__label { font-weight: 600; font-size: 0.95rem; color: var(--text-200); white-space: nowrap; }
.recap-week-selector__select {
  flex: 1; padding: 0.6rem 0.75rem; background: var(--bg-800);
  border: 1px solid var(--line-500); border-radius: var(--r-sm);
  color: var(--text-100); font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--t-fast);
}
.recap-week-selector__select:focus { outline: none; border-color: var(--brand-500); }

.recap-period {
  text-align: center; font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-200); margin-bottom: 1.5rem; font-weight: 600;
}

.recap-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.recap-stat-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent 60%), var(--bg-800);
  border: 1px solid var(--line-500); border-radius: var(--r-sm); padding: 1rem 0.75rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.25rem; text-align: center;
  transition: border-color var(--t-smooth), transform var(--t-smooth);
}
.recap-stat-card:hover { border-color: rgba(255,107,44,0.2); transform: translateY(-2px); }
.recap-stat-card__icon { font-size: 1.4rem; }
.recap-stat-card__value { font-family: var(--font-display); font-size: 1.5rem; color: var(--brand-400); }
.recap-stat-card__label { font-size: 0.78rem; color: var(--text-400); text-transform: uppercase; letter-spacing: 0.04em; }

.recap-sub-title { font-family: var(--font-display); font-size: 1.2rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.75rem; }
.recap-highlights-section, .recap-badges-section { margin-bottom: 2rem; }
.recap-highlights-list { display: flex; flex-direction: column; gap: 0.5rem; }
.recap-highlight-card {
  background: var(--bg-800); border: 1px solid var(--line-500); border-radius: var(--r-sm);
  padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.9rem; color: var(--text-200); transition: border-color var(--t-fast);
}
.recap-highlight-card:hover { border-color: rgba(255,107,44,0.15); }
.recap-highlight-card__icon { font-size: 1.2rem; }

.recap-badges-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.recap-badge-card {
  background: var(--bg-800); border: 1px solid rgba(255,107,44,0.15);
  border-radius: var(--r-sm); padding: 0.5rem 0.75rem;
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.85rem; color: var(--brand-300);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.recap-badge-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(255,107,44,0.1); }
.recap-badge-card__icon { font-size: 1.1rem; }

@media (max-width: 600px) {
  .recap-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .recap-week-selector { flex-direction: column; align-items: stretch; }
}

/* ---- 35. PREDICTIONS ---------------------------------------- */
.pred-subtitle { text-align: center; color: var(--text-300); font-size: 1rem; margin-top: -0.5rem; }

.pred-balance {
  display: flex; align-items: center; justify-content: center; gap: 0.75rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent 50%), var(--bg-800);
  border: 1px solid var(--line-500); border-radius: var(--r-lg);
  padding: 0.75rem 1.5rem; max-width: 320px; margin: 0 auto;
  box-shadow: var(--shadow-sm);
}
.pred-balance__label { font-size: 0.9rem; color: var(--text-300); }
.pred-balance__value { font-family: var(--font-display); font-size: 1.4rem; color: var(--brand-400); }

.pred-filters { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; }
.pred-filter-btn {
  background: var(--bg-800); border: 1px solid var(--line-500); border-radius: var(--r-sm);
  padding: 0.4rem 1rem; color: var(--text-300); font-size: 0.85rem; cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.pred-filter-btn:hover { border-color: var(--brand-500); color: var(--text-100); }
.pred-filter-btn--active {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  border-color: var(--brand-500); color: #fff;
}

.pred-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.pred-loading, .pred-empty { grid-column: 1 / -1; text-align: center; color: var(--text-400); padding: 2rem 0; }

.pred-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent 50%), var(--bg-800);
  border: 1px solid var(--line-500); border-radius: var(--r-lg);
  padding: 1rem 1.2rem; cursor: pointer; display: flex; flex-direction: column; gap: 0.6rem;
  transition: border-color var(--t-smooth), transform var(--t-smooth), box-shadow var(--t-smooth);
}
.pred-card:hover { border-color: rgba(255,107,44,0.25); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }
.pred-card__header { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
.pred-card__bets { color: var(--text-400); }
.pred-card__title { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.3; }
.pred-card__options { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.pred-card__option { background: var(--bg-700); border-radius: 4px; padding: 0.2rem 0.5rem; font-size: 0.78rem; color: var(--text-300); }
.pred-card__footer { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--text-400); flex-wrap: wrap; gap: 0.25rem; }
.pred-card__result { color: var(--brand-400); }

.pred-badge {
  padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em;
}
.pred-badge--open { background: rgba(34,197,94,0.12); color: #22c55e; }
.pred-badge--closed { background: rgba(239,68,68,0.12); color: #ef4444; }
.pred-badge--resolved { background: rgba(59,130,246,0.12); color: #3b82f6; }

.pred-detail-modal { max-width: 540px; }
.pred-detail-desc { color: var(--text-300); font-size: 0.9rem; margin-bottom: 0.75rem; }
.pred-detail-meta { font-size: 0.85rem; color: var(--text-400); margin-bottom: 1rem; }
.pred-detail-options { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.pred-option-btn {
  background: var(--bg-700); border: 1px solid var(--bg-600); border-radius: var(--r-sm);
  padding: 0.6rem 1rem; text-align: left; cursor: pointer;
  transition: border-color var(--t-fast); display: flex; flex-direction: column; gap: 0.15rem;
  color: var(--text-200);
}
.pred-option-btn:hover:not(:disabled) { border-color: var(--brand-500); }
.pred-option-btn:disabled { opacity: 0.6; cursor: default; }
.pred-option-btn--mine { border-color: var(--brand-500); background: rgba(255,107,44,0.06); }
.pred-option-btn__name { font-weight: 600; }
.pred-option-btn__stats { font-size: 0.78rem; color: var(--text-400); }
.pred-option-btn__badge { font-size: 0.75rem; color: var(--brand-400); font-weight: 600; }

.pred-form-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.012), transparent 50%), var(--bg-800);
  border: 1px solid var(--line-500); border-radius: var(--r-lg);
  padding: 1.5rem; max-width: 520px; margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.pred-form-card__title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1rem; }
.pred-form-card__cost { font-size: 0.85rem; color: var(--text-400); font-weight: 400; }
.pred-form { display: flex; flex-direction: column; gap: 0.75rem; }
.pred-form__label { font-size: 0.85rem; font-weight: 600; color: var(--text-200); }
.pred-form__input {
  padding: 0.6rem 0.75rem; background: var(--bg-900); border: 1px solid var(--line-500);
  border-radius: var(--r-sm); color: var(--text-100); font-size: 0.9rem; font-family: inherit;
  transition: border-color var(--t-fast);
}
.pred-form__input:focus { outline: none; border-color: var(--brand-500); }
.pred-form__textarea { resize: vertical; }
.pred-form__options { display: flex; flex-direction: column; gap: 0.4rem; }
.pred-form__msg { font-size: 0.8rem; text-align: center; min-height: 1.2em; }
.pred-form__msg--success { color: var(--success-500); }
.pred-form__msg--error { color: var(--danger-500); }

@media (max-width: 600px) {
  .pred-list { grid-template-columns: 1fr; }
  .pred-balance { flex-direction: column; gap: 0.25rem; text-align: center; }
}

/* ---- 36. REPUTATION ----------------------------------------- */
.rep-summary { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.rep-summary__score { font-family: var(--font-display); font-size: 2rem; color: var(--text-200); }
.rep-summary__score--positive { color: #22c55e; }
.rep-summary__score--negative { color: #ef4444; }
.rep-summary__level {
  background: var(--bg-700); padding: 0.2rem 0.6rem; border-radius: 4px;
  font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--text-200);
}
.rep-summary__detail { font-size: 0.85rem; color: var(--text-400); }

.rep-actions { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.rep-btn { font-weight: 700; font-size: 0.85rem; border-radius: var(--r-sm); padding: 8px 16px; transition: background var(--t-fast); }
.rep-btn--positive { background: rgba(34,197,94,0.12); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }
.rep-btn--positive:hover { background: rgba(34,197,94,0.2); }
.rep-btn--negative { background: rgba(239,68,68,0.12); color: #ef4444; border: 1px solid rgba(239,68,68,0.25); }
.rep-btn--negative:hover { background: rgba(239,68,68,0.2); }
.rep-actions__msg { font-size: 0.8rem; min-height: 1em; }
.rep-actions__msg--success { color: var(--success-500); }
.rep-actions__msg--error { color: var(--danger-500); }

.rep-history__title { font-size: 0.9rem; font-weight: 600; color: var(--text-300); margin-bottom: 0.5rem; }
.rep-history__entry {
  display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0;
  font-size: 0.82rem; border-bottom: 1px solid var(--line-600);
}
.rep-history__entry:last-child { border-bottom: none; }
.rep-history__type { font-weight: 700; min-width: 3rem; }
.rep-history__entry--positive .rep-history__type { color: #22c55e; }
.rep-history__entry--negative .rep-history__type { color: #ef4444; }
.rep-history__comment { color: var(--text-300); flex: 1; }
.rep-history__date { color: var(--text-400); font-size: 0.75rem; white-space: nowrap; }

/* ---- 37. API DOCS ------------------------------------------- */
.api-docs-subtitle { text-align: center; color: var(--text-300); font-size: 1rem; margin-top: -0.5rem; }
.api-docs-container { display: flex; flex-direction: column; gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.api-docs-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.01), transparent 50%), var(--bg-800);
  border: 1px solid var(--line-500); border-radius: var(--r-lg); padding: 1.5rem;
}
.api-docs-card__title { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.03em; }
.api-docs-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.api-docs-table td, .api-docs-table th { padding: 0.5rem 0.75rem; text-align: left; border-bottom: 1px solid var(--line-600); }
.api-docs-table th { color: var(--text-300); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; }
.api-docs-table td:first-child { color: var(--text-200); font-weight: 500; white-space: nowrap; }
.api-docs-table code { background: var(--bg-700); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.82rem; }
.api-docs-code {
  background: var(--bg-900); border: 1px solid var(--line-500); border-radius: var(--r-sm);
  padding: 1rem; overflow-x: auto; font-size: 0.82rem; line-height: 1.5; color: var(--text-200); margin: 0.5rem 0;
}
.api-docs-note { font-size: 0.82rem; color: var(--text-400); margin-top: 0.5rem; }
.api-docs-endpoint { border-top: 1px solid var(--line-600); padding-top: 1.25rem; margin-top: 1.25rem; }
.api-docs-endpoint:first-of-type { border-top: none; margin-top: 0; padding-top: 0; }
.api-docs-endpoint__header { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.api-docs-endpoint__desc { font-size: 0.9rem; color: var(--text-300); margin-bottom: 0.75rem; }
.api-docs-endpoint h4 { font-size: 0.85rem; font-weight: 600; color: var(--text-200); margin: 0.75rem 0 0.35rem; text-transform: uppercase; }
.api-docs-method { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.api-docs-method--get { background: rgba(34,197,94,0.12); color: #22c55e; }
.api-docs-path { font-size: 0.88rem; color: var(--brand-400); }

@media (max-width: 600px) {
  .api-docs-table { font-size: 0.8rem; }
  .api-docs-table td, .api-docs-table th { padding: 0.35rem 0.4rem; }
  .api-docs-endpoint__header { flex-wrap: wrap; }
}

/* ---- 38. EXTERNAL LINKS (Faceit/Leetify) -------------------- */
.ext-links-list { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.ext-links-empty { color: var(--text-400); font-size: 0.875rem; }
.ext-link-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent 50%), var(--bg-800);
  border: 1px solid var(--line-500); border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5); display: flex; align-items: center; gap: var(--sp-3); min-width: 200px;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.ext-link-card:hover {
  border-color: rgba(255,107,44,0.2); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.ext-link-card__icon { font-size: 1.3rem; display: flex; align-items: center; }
.ext-link-card__svg { width: 24px; height: 24px; flex-shrink: 0; opacity: 0.9; }
.ext-link-card__fallback-icon { font-size: 1.2rem; }
.ext-link-card__info { display: flex; flex-direction: column; gap: 2px; }
.ext-link-card__name { font-weight: 600; font-size: 0.9375rem; color: var(--brand-400); text-decoration: none; }
.ext-link-card__name:hover { text-decoration: underline; }
.ext-link-card__stat { font-size: 0.8125rem; color: var(--text-300); font-weight: 500; }

.ext-links-manage__title { font-size: 0.9rem; font-weight: 600; color: var(--text-200); margin-bottom: 0.5rem; }
.ext-link-form { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.ext-link-form__select, .ext-link-form__input {
  padding: 0.5rem 0.65rem; background: var(--bg-900); border: 1px solid var(--line-500);
  border-radius: var(--r-sm); color: var(--text-100); font-size: 0.85rem; font-family: inherit;
  transition: border-color var(--t-fast);
}
.ext-link-form__select:focus, .ext-link-form__input:focus { outline: none; border-color: var(--brand-500); }
.ext-link-form__input { flex: 1; min-width: 120px; }
.ext-link-form__msg { font-size: 0.8rem; margin-top: 0.35rem; min-height: 1em; }
.ext-link-form__msg--success { color: var(--success-500); }
.ext-link-form__msg--error { color: var(--danger-500); }
