/* ==========================================================
   FOREWAY PERFORMANCE — Design System
   ========================================================== */

/* === PAGE LAYOUT === */
.fw-perf-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* === BREADCRUMB === */
.fw-perf-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 1.25rem;
}
.fw-perf-breadcrumb a {
  color: #d9b260;
  text-decoration: none;
  transition: color 0.15s ease;
}
.fw-perf-breadcrumb a:hover {
  color: #b8892a;
}
.fw-perf-breadcrumb span {
  color: #9ca3af;
}

/* === HERO === */
.fw-perf-hero {
  margin-bottom: 1.75rem;
}
.fw-perf-hero h1 {
  font-size: 1.65rem;
  font-weight: 750;
  color: #111311;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.fw-perf-hero p {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0 0 14px;
}

/* === TIER BADGES (inline) === */
.fw-perf-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
  background: linear-gradient(135deg, #d9b260, #b8892a);
}
.fw-perf-tier-badge--plus {
  background: linear-gradient(135deg, #2d8a56, #1e6b3e);
}
/* Keep old class as alias */
.fw-perf-pro-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d9b260, #b8892a);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
}

/* === FILTER ROW === */
.fw-perf-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* === DATE RANGE FILTER === */
.fw-perf-date-filter {
  display: inline-flex;
  gap: 0;
  border-radius: 10px;
  border: 1px solid rgba(217, 178, 96, 0.2);
  overflow: hidden;
  background: #fff;
}
.fw-perf-date-btn {
  padding: 7px 14px;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.15s ease;
  border-right: 1px solid rgba(217, 178, 96, 0.12);
}
.fw-perf-date-btn:last-child {
  border-right: none;
}
.fw-perf-date-btn:hover {
  background: rgba(217, 178, 96, 0.06);
  color: #111311;
}
.fw-perf-date-btn.is-active {
  background: linear-gradient(135deg, rgba(217, 178, 96, 0.12), rgba(217, 178, 96, 0.06));
  color: #111311;
  font-weight: 600;
}
.fw-perf-range-select {
  padding: 7px 28px 7px 12px;
  border-radius: 10px;
  border: 1px solid rgba(217, 178, 96, 0.2);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  color: #111311;
  cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b7280'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.fw-perf-range-select:focus {
  outline: none;
  border-color: rgba(217, 178, 96, 0.5);
}

/* === SUMMARY STAT CARDS === */
.fw-perf-stats-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.fw-perf-stats-row::-webkit-scrollbar {
  display: none;
}

.fw-perf-stat {
  flex: 1 0 180px;
  min-width: 160px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(217, 178, 96, 0.15);
  border-left: 4px solid #d9b260;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: relative;
}
.fw-perf-stat__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.fw-perf-stat__value {
  font-size: 1.8rem;
  font-weight: 750;
  color: #111311;
  line-height: 1.1;
}
.fw-perf-stat__trend {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-top: 4px;
}
.fw-perf-stat__trend.is-up {
  color: #2d8a56;
}
.fw-perf-stat__trend.is-down {
  color: #c0392b;
}
.fw-perf-stat__sub {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 4px;
}
.fw-perf-stat__tip {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.7rem;
  color: #d1d5db;
  cursor: help;
}
.fw-perf-stat__tip:hover {
  color: #d9b260;
}

/* === CHART SECTIONS === */
.fw-perf-chart-section {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid rgba(217, 178, 96, 0.12);
  padding: 20px 22px 22px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(15, 23, 42, 0.05);
}
.fw-perf-chart-header {
  margin-bottom: 16px;
}
.fw-perf-chart-header h2 {
  font-size: 1rem;
  font-weight: 650;
  color: #111311;
  margin: 0;
}
.fw-perf-chart-header p {
  font-size: 0.8rem;
  color: #6b7280;
  margin: 4px 0 0;
}
.fw-perf-chart-wrap {
  position: relative;
  height: 320px;
}
.fw-perf-chart-wrap--doughnut {
  max-width: 380px;
  margin: 0 auto;
  height: 300px;
}

/* === DATA TABLE === */
.fw-perf-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fw-perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.fw-perf-table th {
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
  color: #6b7280;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid rgba(217, 178, 96, 0.12);
}
.fw-perf-table td {
  padding: 10px 12px;
  color: #111311;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.fw-perf-table tr:last-child td {
  border-bottom: none;
}
.fw-perf-table .is-best {
  color: #2d8a56;
  font-weight: 600;
}
.fw-perf-table .is-worst {
  color: #c0392b;
  font-weight: 600;
}
.fw-perf-table .is-good {
  color: #2d8a56;
  font-weight: 600;
}
.fw-perf-table .is-bad {
  color: #c0392b;
  font-weight: 600;
}
.fw-perf-table-title {
  font-size: 0.88rem;
  font-weight: 650;
  color: #111311;
  margin: 0 0 10px;
}
.fw-perf-tables-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* === OVERVIEW GRID (landing page section cards) === */
.fw-perf-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}
.fw-perf-overview-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(217, 178, 96, 0.15);
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.fw-perf-overview-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-color: rgba(217, 178, 96, 0.35);
}
.fw-perf-overview-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(217, 178, 96, 0.12), rgba(217, 178, 96, 0.04));
  color: #b8892a;
}
.fw-perf-overview-card__body {
  flex: 1;
  min-width: 0;
}
.fw-perf-overview-card__title {
  font-size: 0.88rem;
  font-weight: 650;
  color: #111311;
  margin-bottom: 2px;
}
.fw-perf-overview-card__stat {
  font-size: 0.78rem;
  color: #6b7280;
}
.fw-perf-overview-card__arrow {
  font-size: 0.75rem;
  color: #d1d5db;
  flex-shrink: 0;
  transition: color 0.15s ease, transform 0.15s ease;
}
.fw-perf-overview-card:hover .fw-perf-overview-card__arrow {
  color: #d9b260;
  transform: translateX(3px);
}

/* === BIG STAT (centered single stat) === */
.fw-perf-big-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 2rem 1rem;
}
.fw-perf-big-stat__value {
  font-size: 3rem;
  font-weight: 800;
  color: #111311;
  line-height: 1;
}
.fw-perf-big-stat__label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #374151;
  margin-top: 8px;
}
.fw-perf-big-stat__sub {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* === ENHANCED MODULE (hero stat top, detail grid below) === */
.fw-perf-module__stat {
  padding: 0.25rem 0 0;
}
.fw-perf-module__detail {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  margin-top: 1rem;
  padding-top: 1rem;
}

/* Module stat (big value) */
.fw-perf-mod-stat__value {
  font-size: 2.8rem;
  font-weight: 800;
  color: #111311;
  line-height: 1;
}
.fw-perf-mod-stat__label {
  font-size: 0.88rem;
  font-weight: 650;
  color: #374151;
  margin-top: 6px;
}
.fw-perf-mod-stat__sub {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* Module detail grid (breakdown columns) */
.fw-perf-mod-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.fw-perf-mod-detail-grid--3col {
  grid-template-columns: 1fr 1fr 1fr;
}
.fw-perf-mod-detail__heading {
  font-size: 0.7rem;
  font-weight: 650;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.fw-perf-mod-detail__rows {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.fw-perf-mod-detail__row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: #374151;
}
.fw-perf-mod-detail__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fw-perf-mod-detail__val {
  margin-left: auto;
  font-weight: 650;
  color: #111311;
  white-space: nowrap;
}
.fw-perf-mod-detail__pct {
  font-weight: 400;
  color: #9ca3af;
  font-size: 0.68rem;
}
.fw-perf-mod-detail__meta {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 10px;
}

/* Chart + breakdown side-by-side within a detail column */
.fw-perf-mod-chart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.fw-perf-mod-chart-row__chart {
  flex: 0 0 110px;
  height: 110px;
  position: relative;
}

/* HTML bar rows for footer comparisons */
.fw-perf-html-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fw-perf-html-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}
.fw-perf-html-bar__label {
  flex: 0 0 80px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-align: right;
}
.fw-perf-html-bar__track {
  flex: 1;
  height: 22px;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.fw-perf-html-bar__fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.4s ease;
  min-width: 2px;
}
.fw-perf-html-bar__value {
  flex: 0 0 50px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #111311;
}

/* Compact variant for many bars (e.g. 18 holes) */
.fw-perf-html-bars--compact {
  gap: 5px;
}
.fw-perf-html-bars--compact .fw-perf-html-bar__label {
  flex: 0 0 32px;
  font-size: 0.7rem;
}
.fw-perf-html-bars--compact .fw-perf-html-bar__track {
  height: 18px;
}
.fw-perf-html-bars--compact .fw-perf-html-bar__value {
  flex: 0 0 42px;
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .fw-perf-mod-detail-grid,
  .fw-perf-mod-detail-grid--3col {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .fw-perf-html-bar__label {
    flex: 0 0 60px;
  }
}

/* === STREAKS ROW === */
.fw-perf-streaks-row {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: stretch;
  padding: 2rem 1rem;
  height: 100%;
}
.fw-perf-streak {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}
.fw-perf-streak--good {
  background: rgba(45, 138, 86, 0.04);
  border-color: rgba(45, 138, 86, 0.15);
}
.fw-perf-streak--bad {
  background: rgba(192, 57, 43, 0.04);
  border-color: rgba(192, 57, 43, 0.15);
}
.fw-perf-streak__icon {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.fw-perf-streak--good .fw-perf-streak__icon { color: #2d8a56; }
.fw-perf-streak--bad .fw-perf-streak__icon { color: #c0392b; }
.fw-perf-streak--current {
  background: rgba(217, 178, 96, 0.04);
  border-color: rgba(217, 178, 96, 0.2);
}
.fw-perf-streak--current .fw-perf-streak__icon { color: #d9b260; }
.fw-perf-streak__value {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111311;
  line-height: 1;
}
.fw-perf-streak__label {
  font-size: 0.85rem;
  font-weight: 650;
  color: #374151;
  margin-top: 6px;
}
.fw-perf-streak__sub {
  font-size: 0.72rem;
  color: #9ca3af;
  margin-top: 4px;
}

/* === FORM COMPARISON === */
.fw-perf-form-compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 2rem 1rem;
}
.fw-perf-form-block {
  text-align: center;
  flex: 0 0 auto;
}
.fw-perf-form-block__label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.fw-perf-form-block__score {
  font-size: 2.4rem;
  font-weight: 800;
  color: #111311;
  line-height: 1;
}
.fw-perf-form-block__sub {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 6px;
}
.fw-perf-form-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 650;
}
.fw-perf-form-arrow i {
  font-size: 1.1rem;
}
.fw-perf-form-arrow.is-improving {
  color: #2d8a56;
}
.fw-perf-form-arrow.is-declining {
  color: #c0392b;
}

/* === PAR TYPE SCORING === */
.fw-perf-par-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 0.5rem 0;
}
.fw-perf-par-type-card {
  background: #fafaf9;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 18px;
}
.fw-perf-par-type-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 10px;
}
.fw-perf-par-type-card__par {
  font-size: 0.82rem;
  font-weight: 650;
  color: #374151;
}
.fw-perf-par-type-card__avg {
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}
.fw-perf-par-type-card__footer {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 0.72rem;
  color: #9ca3af;
}

/* === TIER GATING — LOCKED OVERLAY === */
.fw-perf-locked {
  position: relative;
  overflow: hidden;
}
.fw-perf-locked__content {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
  opacity: 0.6;
}
.fw-perf-locked__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 5;
  text-align: center;
  padding: 20px;
}
.fw-perf-locked__overlay i {
  font-size: 1.4rem;
  color: #d9b260;
  margin-bottom: 4px;
}
.fw-perf-locked__overlay p {
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  margin: 0;
}
.fw-perf-locked__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d9b260, #b8892a);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 12px rgba(217, 178, 96, 0.3);
}
.fw-perf-locked__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 178, 96, 0.4);
}

/* Full-page lock (AI Insights for non-Pro users) */
.fw-perf-locked__fullpage {
  text-align: center;
  padding: 4rem 2rem;
}
.fw-perf-locked__fullpage i {
  font-size: 2.5rem;
  color: #d9b260;
  margin-bottom: 16px;
  display: block;
}
.fw-perf-locked__fullpage h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111311;
  margin: 0 0 10px;
}
.fw-perf-locked__fullpage p {
  font-size: 0.92rem;
  color: #6b7280;
  max-width: 480px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.fw-perf-locked__fullpage .fw-perf-locked__cta {
  padding: 12px 32px;
  font-size: 0.88rem;
}

/* === EMPTY STATE === */
.fw-perf-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: #6b7280;
}
.fw-perf-empty i {
  font-size: 2rem;
  color: #d1d5db;
  margin-bottom: 12px;
  display: block;
}
.fw-perf-empty h3 {
  font-size: 1.05rem;
  font-weight: 650;
  color: #374151;
  margin: 0 0 6px;
}
.fw-perf-empty p {
  font-size: 0.85rem;
  margin: 0;
}

/* === AI INSIGHTS === */
.fw-perf-ai-section {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid rgba(217, 178, 96, 0.12);
  padding: 20px 22px;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.fw-perf-ai-section h3 {
  font-size: 0.95rem;
  font-weight: 650;
  color: #111311;
  margin: 0 0 10px;
}
.fw-perf-ai-section p {
  font-size: 0.86rem;
  color: #374151;
  line-height: 1.6;
  margin: 0;
}

.fw-perf-ai-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.fw-perf-ai-item {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 16px 18px;
  margin-bottom: 10px;
}
.fw-perf-ai-item__area {
  font-size: 0.82rem;
  font-weight: 650;
  color: #111311;
  margin-bottom: 4px;
}
.fw-perf-ai-item__detail {
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 4px;
}
.fw-perf-ai-item__stat {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
}

.fw-perf-ai-strength .fw-perf-ai-item {
  border-left: 4px solid #2d8a56;
}
.fw-perf-ai-weakness .fw-perf-ai-item {
  border-left: 4px solid #c0392b;
}
.fw-perf-ai-strength h3 { color: #2d8a56; }
.fw-perf-ai-weakness h3 { color: #c0392b; }

/* Action plan */
.fw-perf-ai-action {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-left: 4px solid #d9b260;
  padding: 16px 18px;
  margin-bottom: 10px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fw-perf-ai-action__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(217, 178, 96, 0.15), rgba(217, 178, 96, 0.06));
  color: #b8892a;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fw-perf-ai-action__body {
  flex: 1;
}
.fw-perf-ai-action__focus {
  font-size: 0.85rem;
  font-weight: 650;
  color: #111311;
  margin-bottom: 4px;
}
.fw-perf-ai-action__drill {
  font-size: 0.8rem;
  color: #374151;
  line-height: 1.5;
  margin-bottom: 4px;
}
.fw-perf-ai-action__target {
  font-size: 0.72rem;
  font-weight: 600;
  color: #d9b260;
}

/* AI loading state */
.fw-perf-ai-loading {
  text-align: center;
  padding: 4rem 2rem;
}
.fw-perf-ai-loading p {
  font-size: 0.88rem;
  color: #6b7280;
  margin-top: 16px;
}
.fw-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(217, 178, 96, 0.2);
  border-top-color: #d9b260;
  border-radius: 50%;
  animation: fwSpin 0.8s linear infinite;
  margin: 0 auto;
}
@keyframes fwSpin {
  to { transform: rotate(360deg); }
}

/* AI meta line */
.fw-perf-ai-meta {
  font-size: 0.72rem;
  color: #9ca3af;
  text-align: center;
  padding-top: 8px;
}

/* Regenerate button */
.fw-perf-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  border: 1.5px solid rgba(217, 178, 96, 0.3);
  background: transparent;
  color: #b8892a;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.fw-perf-btn-outline:hover {
  background: rgba(217, 178, 96, 0.06);
  border-color: #d9b260;
}

/* === SCROLL REVEAL === */
.perf-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.perf-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 768px) {
  .fw-perf-page {
    padding: 1.5rem 1rem 3rem;
  }

  .fw-perf-hero h1 {
    font-size: 1.35rem;
  }

  .fw-perf-overview-grid {
    grid-template-columns: 1fr;
  }

  .fw-perf-ai-columns {
    grid-template-columns: 1fr;
  }

  .fw-perf-tables-grid {
    grid-template-columns: 1fr;
  }

  .fw-perf-streaks-row {
    flex-direction: column;
    align-items: center;
  }

  .fw-perf-form-compare {
    flex-direction: column;
    gap: 1rem;
  }

  .fw-perf-par-type-grid {
    grid-template-columns: 1fr;
  }

  .fw-perf-chart-wrap {
    height: 260px;
  }

  .fw-perf-stat {
    min-width: 140px;
    flex: 0 0 auto;
  }
  .fw-perf-stat__value {
    font-size: 1.5rem;
  }

  .fw-perf-date-filter {
    flex-wrap: wrap;
  }
  .fw-perf-date-btn {
    padding: 6px 11px;
    font-size: 0.72rem;
  }
}

@media (max-width: 480px) {
  .fw-perf-page {
    padding: 1rem 0.75rem 2.5rem;
  }

  .fw-perf-hero h1 {
    font-size: 1.2rem;
  }

  .fw-perf-chart-section {
    padding: 14px 14px 16px;
    border-radius: 16px;
  }

  .fw-perf-chart-wrap {
    height: 220px;
  }

  .fw-perf-stat {
    min-width: 130px;
    padding: 12px 14px;
  }
  .fw-perf-stat__value {
    font-size: 1.3rem;
  }

  .fw-perf-overview-card {
    padding: 14px 16px;
    gap: 12px;
  }

  .fw-perf-ai-action {
    flex-direction: column;
    gap: 8px;
  }

  .fw-perf-locked__fullpage {
    padding: 2.5rem 1.5rem;
  }
}
