/* ═══════════════════════════════════════════════════════════════════════════
   ELITE+ PAGE REVAMP v2 — Matches & Training
   Clean, Modern, 10x Better
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── SHARED: Clean Hero ───────────────────────────────────────────────── */
.revamp-hero {
  position: relative;
  padding: 32px 28px;
  margin: -20px -24px 28px -24px;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* Kill orbs and particles on all revamp pages */
.revamp-hero .hero-bg-effects,
.revamp-hero .hero-orb,
.revamp-hero .hero-particles,
.revamp-hero .hero-icon-ring {
  display: none !important;
}

/* Matches hero — subtle green tint */
.matches-hero-new {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.08) 0%,
    rgba(16, 16, 20, 1) 60%
  );
  border-bottom-color: rgba(34, 197, 94, 0.15);
}

/* Training hero — subtle blue tint */
.training-hero-new {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08) 0%,
    rgba(16, 16, 20, 1) 60%
  );
  border-bottom-color: rgba(99, 102, 241, 0.15);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Remove bouncing icon */
.hero-icon-wrap {
  display: none;
}

.hero-icon {
  animation: none !important;
}

.hero-text {
  flex: 1;
}

.hero-title {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
  letter-spacing: -0.3px;
  text-shadow: none;
}

.hero-subtitle {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
  font-weight: 400;
}

/* Hero quick-add button */
.hero-quick-add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hero-quick-add:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.hero-quick-add .plus-icon {
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

/* ── SHARED: Stats Strip ──────────────────────────────────────────────── */
.mega-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.mega-stat-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.2s ease;
  overflow: hidden;
}

.mega-stat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/* Remove all the gaudy glow circles */
.mega-stat-glow {
  display: none !important;
}

/* Remove per-type hover color explosions */
.mega-stat-card.wins:hover,
.mega-stat-card.draws:hover,
.mega-stat-card.losses:hover,
.mega-stat-card.goals:hover,
.mega-stat-card.assists:hover,
.mega-stat-card.sessions:hover,
.mega-stat-card.hours:hover,
.mega-stat-card.intensity:hover,
.mega-stat-card.streak:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.mega-stat-icon {
  font-size: 20px;
  margin-bottom: 6px;
  opacity: 0.7;
  filter: none;
}

.mega-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

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

.mega-stat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.mega-stat-badge.streak-badge {
  background: rgba(249, 115, 22, 0.15);
  color: #f97316;
  border-color: rgba(249, 115, 22, 0.2);
}

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

/* ── Hide PRO Panels & noise ──────────────────────────────────────────── */
.pro-insights-panel {
  display: none !important;
}

.drills-library-section {
  display: none !important;
}

/* Hide FABs — redundant with hero button */
.fab-button {
  display: none !important;
}

/* ── SHARED: Clean Toolbar ────────────────────────────────────────────── */
.revamp-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 0;
  background: none;
  border: none;
}

.toolbar-search {
  flex: 1;
  position: relative;
  max-width: 320px;
}

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

.search-input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(99, 102, 241, 0.3);
}

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

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

.filter-select {
  padding: 9px 12px;
  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: 13px;
  outline: none;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.4)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.filter-select:hover,
.filter-select:focus {
  border-color: rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.06);
}

.filter-select option {
  background: #1a1a24;
  color: #fff;
}

.btn-add-new {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 10px;
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-add-new:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-1px);
}

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

/* ═══════════════════════════════════════════════════════════════════════════
   MATCH CARDS — Complete Redesign
   ═══════════════════════════════════════════════════════════════════════════ */

.matches-list,
.revamp-list-container .matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.match-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.match-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Result badge — clean pill */
.match-result {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.match-result.W {
  background: rgba(34, 197, 94, 0.12);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.match-result.D {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.match-result.L {
  background: rgba(239, 68, 68, 0.12);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Match info */
.match-info {
  min-width: 0;
}

.match-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 3px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-meta {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0;
}

/* Match stats — inline chips */
.match-stats {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.match-stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 40px;
}

.match-stat-item .stat-num {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.match-stat-item .stat-lbl {
  font-size: 9px;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 3px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TRAINING CARDS — Complete Redesign
   ═══════════════════════════════════════════════════════════════════════════ */

.training-list-premium {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.training-card-premium {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.training-card-premium:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Type badge */
.training-type-badge {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 20px;
  flex-shrink: 0;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.training-type-badge.shooting {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.15);
}

.training-type-badge.dribbling {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.15);
}

.training-type-badge.passing {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.15);
}

.training-type-badge.fitness {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.15);
}

.training-type-badge.tactical {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.15);
}

.training-type-badge.mixed {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.15);
}

/* Training card body */
.training-card-body {
  min-width: 0;
  flex: 1;
}

.training-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.training-card-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.training-duration {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
}

.training-card-meta {
  margin-bottom: 8px;
}

.training-date {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* Intensity bar */
.training-intensity-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.intensity-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  overflow: hidden;
}

.intensity-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.5s ease;
}

.intensity-fill.low {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.intensity-fill.medium {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.intensity-fill.high {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.intensity-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  flex-shrink: 0;
  min-width: 32px;
  text-align: right;
}

.training-notes {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  margin: 8px 0 0;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EMPTY STATES — Motivational & Clean
   ═══════════════════════════════════════════════════════════════════════════ */

.empty-state-new {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.empty-icon-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
}

.empty-icon-wrap .empty-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.5);
}

/* Remove the animated pulse — too distracting */
.empty-icon-pulse {
  display: none !important;
}

.empty-title {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 6px 0;
}

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

/* CTA button */
.btn-primary-glow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 10px;
  color: #a5b4fc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  /* Kill the glow animation */
  box-shadow: none;
  animation: none;
}

.btn-primary-glow:hover {
  background: rgba(99, 102, 241, 0.25);
  border-color: rgba(99, 102, 241, 0.5);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.15);
}

/* Old empty state from app.js */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

.empty-state .empty-icon {
  font-size: 40px;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state h4 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 6px;
}

.empty-state p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 20px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════════ */

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

  .hero-title {
    font-size: 20px;
  }

  .hero-quick-add span:last-child {
    display: none;
  }

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

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

  .mega-stat-icon {
    font-size: 18px;
    margin-bottom: 4px;
  }

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

  .revamp-toolbar {
    flex-wrap: wrap;
  }

  .toolbar-search {
    max-width: none;
    width: 100%;
    order: 1;
  }

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

  .btn-add-new {
    order: 3;
  }

  .match-card {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 14px;
  }

  .match-stats {
    grid-column: 1 / -1;
    justify-content: flex-start;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    margin-top: 4px;
  }

  .match-result {
    width: 38px;
    height: 38px;
    font-size: 12px;
    border-radius: 10px;
  }

  .training-card-premium {
    grid-template-columns: 38px 1fr;
    gap: 10px;
    padding: 14px;
  }

  .training-type-badge {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .mega-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-quick-add {
    padding: 8px 12px;
  }

  .toolbar-filters {
    flex-direction: column;
    width: 100%;
  }

  .filter-select {
    width: 100%;
  }

  .btn-add-new {
    width: 100%;
    justify-content: center;
  }
}
