/* ===========================
   MATCH PAGE SPECIFIC STYLES
   =========================== */
.match-page {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem 3rem;
  min-height: calc(100vh - 120px);
}

.match-page-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 0;
}

/* Match Stage Bar */
.match-stage-bar {
  position: relative;
  z-index: 10;
  margin-bottom: 1.5rem;
}

.stage-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.8rem;
  background: rgba(0, 255, 136, 0.02);
  border: 1px solid rgba(0, 255, 136, 0.08);
  border-radius: 8px;
}

.stage-tab {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.stage-tab.active {
  color: var(--green-primary);
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
}

.stage-tab:hover {
  color: var(--green-dim);
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.preview-dot { background: var(--green-primary); box-shadow: 0 0 8px rgba(0, 255, 136, 0.5); }
.live-dot { background: var(--accent-red); }
.finished-dot { background: var(--text-dim); }

.stage-arrow {
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* Match Header */
.match-header-section {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.match-header-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--card-radius);
  backdrop-filter: blur(15px);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(0, 255, 136, 0.05);
}

.match-league-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.5rem;
  background: rgba(0, 255, 136, 0.04);
  border-bottom: 1px solid rgba(0, 255, 136, 0.08);
}

.league-tag {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: 2px;
}

.match-date {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.match-header-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 2rem;
}

.mh-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.mh-crest {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 255, 136, 0.1));
}

.mh-team-name {
  font-family: 'Orbitron', monospace;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.mh-form {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.mh-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.mh-vs-text {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--text-dim);
}

.mh-kickoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(0, 255, 136, 0.05);
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 6px;
  padding: 0.5rem 1rem;
}

.kickoff-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.5rem;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.kickoff-time {
  font-family: 'Orbitron', monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--green-primary);
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

/* Section Headings */
.section-heading {
  font-family: 'Orbitron', monospace;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--green-primary);
  letter-spacing: 2px;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  position: relative;
  z-index: 10;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.2);
}

.heading-icon {
  font-size: 0.7rem;
  animation: pulse-icon 2s ease-in-out infinite;
}

/* Intel Grid */
.intel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  position: relative;
  z-index: 10;
  margin-bottom: 2.5rem;
}

.intel-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.intel-card:hover {
  border-color: var(--bg-card-border-bright);
  box-shadow: var(--glow-spread);
}

.intel-card.full-width {
  grid-column: 1 / -1;
}

.intel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(0, 255, 136, 0.03);
  border-bottom: 1px solid rgba(0, 255, 136, 0.06);
}

.intel-card-header h3 {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1.5px;
}

.intel-badge {
  font-family: 'Orbitron', monospace;
  font-size: 0.5rem;
  font-weight: 600;
  color: var(--green-dim);
  padding: 0.2rem 0.5rem;
  border: 1px solid rgba(0, 255, 136, 0.15);
  border-radius: 3px;
  letter-spacing: 1px;
}

.intel-badge.critical {
  color: var(--accent-red);
  border-color: rgba(255, 68, 68, 0.3);
}

.intel-card-body {
  padding: 1rem;
}

.battle-matchup {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.battle-player {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.battle-portrait {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 255, 136, 0.2);
  filter: saturate(0.7);
}

.battle-name {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.battle-metric {
  font-size: 0.65rem;
  color: var(--text-dim);
}

.battle-metric strong {
  color: var(--green-primary);
}

.battle-vs {
  font-size: 1.2rem;
  color: var(--accent-orange);
}

.intel-description {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.intel-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.bar-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1s ease;
}

.home-fill {
  background: linear-gradient(90deg, var(--accent-red), #ff6666);
  box-shadow: 0 0 8px rgba(255, 68, 68, 0.3);
}

.away-fill {
  background: linear-gradient(90deg, var(--accent-blue), #66aaff);
  box-shadow: 0 0 8px rgba(68, 136, 255, 0.3);
}

.bar-value {
  font-family: 'Orbitron', monospace;
  font-size: 0.6rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Formation Display */
.formation-display {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.formation-team {
  text-align: center;
}

.formation-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

.formation-pitch {
  background: rgba(0, 30, 15, 0.4);
  border: 1px solid rgba(0, 255, 136, 0.08);
  border-radius: 6px;
  padding: 0.5rem;
}

.formation-svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}

/* Prediction Section */
.prediction-section {
  position: relative;
  z-index: 10;
  margin-bottom: 2rem;
}

.prediction-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: var(--card-radius);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
}

.prediction-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pred-outcome {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.pred-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  width: 100px;
  letter-spacing: 1px;
}

.pred-bar-wrap {
  flex: 1;
  height: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 5px;
  overflow: hidden;
}

.pred-bar {
  height: 100%;
  border-radius: 5px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-bar {
  background: linear-gradient(90deg, #cc0000, #ff4444);
  box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

.draw-bar {
  background: linear-gradient(90deg, #666, #999);
  box-shadow: 0 0 10px rgba(150, 150, 150, 0.2);
}

.away-bar {
  background: linear-gradient(90deg, #0066cc, #4488ff);
  box-shadow: 0 0 10px rgba(68, 136, 255, 0.3);
}

.pred-percent {
  font-family: 'Orbitron', monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--green-primary);
  width: 50px;
  text-align: right;
}

.pred-expected {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 255, 136, 0.08);
}

.pred-xg-label {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.pred-xg-score {
  font-family: 'Orbitron', monospace;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-primary);
  text-shadow: 0 0 15px rgba(0, 255, 136, 0.4);
}

/* Back to Hub */
.back-to-hub {
  text-align: center;
  padding: 2rem 0;
  position: relative;
  z-index: 10;
}

/* Responsive Match Page */
@media (max-width: 768px) {
  .match-page {
    padding: 1rem;
  }

  .match-header-teams {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
  }

  .mh-crest {
    width: 60px;
    height: 60px;
  }

  .mh-team-name {
    font-size: 1rem;
  }

  .intel-grid {
    grid-template-columns: 1fr;
  }

  .formation-display {
    grid-template-columns: 1fr;
  }

  .stage-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .battle-matchup {
    flex-direction: column;
    gap: 0.8rem;
  }
}