/* ═══════════════════════════════════════════════════════════════════════════
   ELITE+ PREMIUM POLISH
   Visual hierarchy, spacing, typography & depth refinements
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════════════════
   1. HERO SECTIONS - Smaller, cleaner, more purposeful
   ═══════════════════════════════════════════════════════════════════════════ */

.revamp-hero {
  /* Reduce height by ~30% */
  padding: 24px 24px 28px 24px;
  margin: -20px -20px 28px -20px;

  /* Dark glass card instead of muddy gradient */
  background: linear-gradient(145deg, rgba(22, 22, 30, 0.95) 0%, rgba(16, 16, 22, 0.98) 100%);
  border-bottom: none;
  border-radius: 0 0 20px 20px;

  /* Subtle top accent instead of full gradient */
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 24px rgba(0, 0, 0, 0.3);
}

/* Thin accent borders on top */
.matches-hero-new {
  border-top: 2px solid rgba(34, 197, 94, 0.5);
}

.training-hero-new {
  border-top: 2px solid rgba(59, 130, 246, 0.5);
}

.goals-hero-new {
  border-top: 2px solid rgba(245, 158, 11, 0.5);
}

.compare-hero-new {
  border-top: 2px solid rgba(6, 182, 212, 0.5);
}

.reports-hero-new {
  border-top: 2px solid rgba(168, 85, 247, 0.5);
}

.recovery-hero-new {
  border-top: 2px solid rgba(20, 184, 166, 0.5);
}

/* Reduce orb intensity - subtle radial glow behind icon only */
.hero-bg-effects {
  opacity: 0.5;
}

.hero-orb {
  filter: blur(80px);
  opacity: 0.25;
}

.hero-orb-1 {
  width: 150px;
  height: 150px;
  top: -40px;
  right: auto;
  left: 10px;
}

.hero-orb-2 {
  display: none;
}

/* Tighter hero content layout */
.hero-content {
  gap: 16px;
}

/* Smaller icon wrap */
.hero-icon-wrap {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.hero-icon {
  font-size: 32px;
}

.hero-icon-ring {
  border-width: 1.5px;
  opacity: 0.6;
}

/* Typography hierarchy */
.hero-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0 0 2px 0;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Quick Add button in hero header */
.hero-content {
  position: relative;
}

.hero-quick-add {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(99, 102, 241, 0.15));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hero-quick-add:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(99, 102, 241, 0.25));
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.25);
  transform: translateY(-50%) translateY(-1px);
}

.hero-quick-add .plus-icon {
  font-size: 16px;
  font-weight: 400;
}

/* Matches hero button */
.matches-hero-new .hero-quick-add {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(16, 185, 129, 0.15));
  border-color: rgba(34, 197, 94, 0.3);
}

.matches-hero-new .hero-quick-add:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(16, 185, 129, 0.25));
  border-color: rgba(34, 197, 94, 0.5);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
}

/* Training hero button */
.training-hero-new .hero-quick-add {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(99, 102, 241, 0.15));
  border-color: rgba(59, 130, 246, 0.3);
}

.training-hero-new .hero-quick-add:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(99, 102, 241, 0.25));
  border-color: rgba(59, 130, 246, 0.5);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

/* Goals hero button */
.goals-hero-new .hero-quick-add {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(249, 115, 22, 0.15));
  border-color: rgba(245, 158, 11, 0.3);
}

/* Compare hero button */
.compare-hero-new .hero-quick-add {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(34, 211, 238, 0.15));
  border-color: rgba(6, 182, 212, 0.3);
}

.compare-hero-new .hero-quick-add:hover {
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.3), rgba(34, 211, 238, 0.25));
  border-color: rgba(6, 182, 212, 0.5);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.25);
}

/* Reports hero button */
.reports-hero-new .hero-quick-add {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(192, 132, 252, 0.15));
  border-color: rgba(168, 85, 247, 0.3);
}

.reports-hero-new .hero-quick-add:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(192, 132, 252, 0.25));
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.25);
}

/* Recovery hero button */
.recovery-hero-new .hero-quick-add {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(45, 212, 191, 0.15));
  border-color: rgba(20, 184, 166, 0.3);
}

.recovery-hero-new .hero-quick-add:hover {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.3), rgba(45, 212, 191, 0.25));
  border-color: rgba(20, 184, 166, 0.5);
  box-shadow: 0 4px 20px rgba(20, 184, 166, 0.25);
}

.goals-hero-new .hero-quick-add:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.3), rgba(249, 115, 22, 0.25));
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════════
   2. STATS CARDS - Premium dashboard look
   ═══════════════════════════════════════════════════════════════════════════ */

/* Section label above stats */
.stats-section-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 12px;
  padding-left: 2px;
}

.mega-stats-grid {
  gap: 12px;
  margin-bottom: 28px;
}

.mega-stat-card {
  /* Taller, more padding */
  padding: 24px 16px 20px 16px;
  border-radius: 16px;

  /* Softer borders, subtle shadow */
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.95) 0%, rgba(18, 18, 26, 0.98) 100%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);

  /* Remove competing glow */
  overflow: visible;
}

.mega-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

/* Hide the internal glow orbs */
.mega-stat-glow {
  display: none;
}

/* Bigger number, smaller label */
.mega-stat-icon {
  font-size: 24px;
  margin-bottom: 10px;
  opacity: 0.9;
}

.mega-stat-value {
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -1px;
}

.mega-stat-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 500;
}

/* Primary stat highlight (Active Goals / Total Matches / Sessions) */
.mega-stat-card.primary-stat,
.mega-stat-card.active-goals,
.mega-stat-card:first-child {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(139, 92, 246, 0.1),
    inset 0 1px 0 rgba(139, 92, 246, 0.1);
}

/* Goals page primary stat */
.goals-overview .mega-stat-card.active-goals {
  border-color: rgba(245, 158, 11, 0.25);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(245, 158, 11, 0.1),
    inset 0 1px 0 rgba(245, 158, 11, 0.1);
}

/* Matches page primary stat */
#matchesMegaStats .mega-stat-card:first-child {
  border-color: rgba(34, 197, 94, 0.25);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(34, 197, 94, 0.1),
    inset 0 1px 0 rgba(34, 197, 94, 0.1);
}

/* Training page primary stat */
#trainingMegaStats .mega-stat-card:first-child {
  border-color: rgba(59, 130, 246, 0.25);
  box-shadow:
    0 2px 12px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(59, 130, 246, 0.1),
    inset 0 1px 0 rgba(59, 130, 246, 0.1);
}

/* Secondary stats lower contrast */
.mega-stat-card:not(.primary-stat):not(.active-goals):not(:first-child) {
  opacity: 0.85;
}

.mega-stat-card:not(.primary-stat):not(.active-goals):not(:first-child):hover {
  opacity: 1;
}

/* Win rate badge refinement */
.mega-stat-badge {
  top: 10px;
  right: 10px;
  font-size: 9px;
  padding: 2px 7px;
  opacity: 0.9;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3. EMPTY STATE - Designed, not just built
   ═══════════════════════════════════════════════════════════════════════════ */

.empty-state-new {
  padding: 48px 24px;
  text-align: center;
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.6) 0%, rgba(18, 18, 26, 0.8) 100%);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin: 8px 0;
}

.empty-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 20px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-icon {
  font-size: 36px;
  position: relative;
  z-index: 1;
}

.empty-icon-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  animation: emptyPulse 2s ease-out infinite;
}

@keyframes emptyPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

.empty-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
}

.empty-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 24px 0;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Enhanced CTA button */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.35);
}

.btn-primary-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45);
}

/* ═══════════════════════════════════════════════════════════════════════════
   4. GOAL TEMPLATES SECTION
   ═══════════════════════════════════════════════════════════════════════════ */

.goal-templates-section {
  margin-bottom: 28px;
}

.goal-templates-section .section-header {
  margin-bottom: 14px;
}

.goal-templates-section .section-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

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

.goal-template-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.goal-template-btn:hover {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.3);
  color: #fff;
}

.template-icon {
  font-size: 16px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   5. PRO INSIGHTS PANEL REFINEMENT
   ═══════════════════════════════════════════════════════════════════════════ */

.pro-insights-panel {
  gap: 12px;
  margin-bottom: 28px;
}

.pro-insight-card {
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(145deg, rgba(26, 26, 36, 0.9) 0%, rgba(18, 18, 26, 0.95) 100%);
}

.pro-insight-card:hover {
  border-color: rgba(139, 92, 246, 0.25);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.pro-insight-card.premium:hover {
  border-color: rgba(245, 158, 11, 0.25);
}

/* ═══════════════════════════════════════════════════════════════════════════
   6. TOOLBAR REFINEMENT
   ═══════════════════════════════════════════════════════════════════════════ */

.revamp-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.btn-add-new {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(99, 102, 241, 0.1));
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-add-new:hover {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(99, 102, 241, 0.2));
  border-color: rgba(139, 92, 246, 0.5);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.2);
}

.btn-add-new .btn-icon {
  font-size: 16px;
  font-weight: 400;
}

.toolbar-search {
  flex: 1;
  min-width: 200px;
  position: relative;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.4);
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 38px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
}

.search-input:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.toolbar-filters {
  display: flex;
  gap: 8px;
}

.filter-select {
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  cursor: pointer;
  min-width: 130px;
}

.filter-select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.4);
}

/* ═══════════════════════════════════════════════════════════════════════════
   7. FAB BUTTON REFINEMENT
   ═══════════════════════════════════════════════════════════════════════════ */

.fab-button {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transition: all 0.3s ease;
  z-index: 100;
}

.fab-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.5);
}

.matches-fab {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 4px 20px rgba(34, 197, 94, 0.4);
}

.matches-fab:hover {
  box-shadow: 0 6px 28px rgba(34, 197, 94, 0.5);
}

.training-fab {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.training-fab:hover {
  box-shadow: 0 6px 28px rgba(59, 130, 246, 0.5);
}

.goals-fab {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.goals-fab:hover {
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.5);
}

.fab-icon {
  font-weight: 300;
  line-height: 1;
}

.fab-pulse {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 2px solid currentColor;
  opacity: 0;
  animation: fabPulse 2s ease-out infinite;
}

@keyframes fabPulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   8. SPACING & ALIGNMENT CONSISTENCY
   ═══════════════════════════════════════════════════════════════════════════ */

/* Consistent section spacing */
.pro-insights-panel,
.goal-templates-section,
.revamp-toolbar,
.revamp-list-container,
#goalsContent {
  padding-left: 0;
  padding-right: 0;
}

/* Consistent corner radius */
.mega-stat-card,
.pro-insight-card,
.empty-state-new,
.goal-template-btn,
.filter-select,
.search-input,
.btn-add-new {
  border-radius: 16px;
}

.goal-template-btn,
.filter-select,
.search-input,
.btn-add-new {
  border-radius: 10px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   9. SUGGESTED GOALS IN PRO CARD
   ═══════════════════════════════════════════════════════════════════════════ */

.suggested-goals {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.suggested-goal {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: rgba(139, 92, 246, 0.08);
  border-radius: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.sg-icon {
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   10. WEEKLY REPORT PREVIEW
   ═══════════════════════════════════════════════════════════════════════════ */

.weekly-report-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.report-preview-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.report-icon {
  font-size: 14px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   11. RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .revamp-hero {
    padding: 20px 16px 24px 16px;
    margin: -16px -16px 24px -16px;
  }

  .hero-quick-add {
    position: static;
    transform: none;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
  }

  .hero-content {
    flex-wrap: wrap;
  }

  .hero-text {
    flex: 1;
    min-width: 150px;
  }

  .mega-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .mega-stat-value {
    font-size: 28px;
  }

  .revamp-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-search {
    order: 1;
  }

  .toolbar-filters {
    order: 2;
    flex-wrap: wrap;
  }

  .btn-add-new {
    order: 0;
    justify-content: center;
  }

  .fab-button {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 18px;
  }

  .hero-subtitle {
    font-size: 12px;
  }

  .mega-stat-value {
    font-size: 24px;
  }

  .mega-stat-card {
    padding: 18px 12px 16px 12px;
  }

  .goal-templates-grid {
    flex-direction: column;
  }

  .goal-template-btn {
    width: 100%;
    justify-content: center;
  }
}
