/* ==========================================================================
   RENEGADES SPORTS ARENA - MLB & TOURNAMENTS EXTENSIONS STYLE SHEET
   Aesthetic Fusion: Apple + Nike + MLB + ICC Academy
   ========================================================================== */

:root {
  --color-mlb-blue: #002D72;
  --color-mlb-red: #C41E3A;
  --color-gold: #FFD700;
  --color-grass: #10B981;
  --glass-bg: rgba(20, 20, 20, 0.6);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glow-orange: rgba(255, 107, 0, 0.4);
  --glow-blue: rgba(0, 102, 204, 0.4);
}

/* ==========================================================================
   STADIUM LIGHTS & ATMOSPHERE
   ========================================================================== */
.stadium-lights-section {
  position: relative;
  background-color: #070708;
  overflow: hidden;
  background-image: 
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255, 107, 0, 0.12) 0%, transparent 80%),
    radial-gradient(circle 300px at 15% 10%, rgba(0, 102, 204, 0.15) 0%, transparent 70%),
    radial-gradient(circle 300px at 85% 10%, rgba(255, 107, 0, 0.15) 0%, transparent 70%);
}

.stadium-lights-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 350px;
  background: 
    linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%),
    linear-gradient(225deg, transparent 40%, rgba(255,255,255,0.03) 50%, transparent 60%);
  background-size: 120px 200px;
  opacity: 0.3;
  pointer-events: none;
}

/* Floating particles container */
.particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--accent-primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatUp 8s infinite linear;
}

@keyframes floatUp {
  0% {
    transform: translateY(100%) translateX(0);
    opacity: 0;
  }
  50% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-20px) translateX(20px);
    opacity: 0;
  }
}

/* ==========================================================================
   MLB DEVELOPMENT SECTION
   ========================================================================== */
.mlb-badge-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 45, 114, 0.25);
  border: 1px solid rgba(0, 102, 240, 0.4);
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #58A6FF;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 15px rgba(0, 102, 240, 0.2);
  text-transform: uppercase;
}

.mlb-program-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 3.5rem;
  z-index: 2;
  position: relative;
}

.mlb-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 2.5rem;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.mlb-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, transparent 70%, rgba(255, 107, 0, 0.05) 100%);
  pointer-events: none;
}

.mlb-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 107, 0, 0.3);
  box-shadow: 0 20px 40px rgba(255, 107, 0, 0.1);
}

.mlb-card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.mlb-card-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: 0.5px;
}

.mlb-card-bullet {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.mlb-card-bullet svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  margin-top: 3px;
}

/* Cinematic Full-width Quote */
.cinematic-quote-wrap {
  padding: 6rem 0;
  position: relative;
  text-align: center;
  z-index: 2;
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: rgba(10, 10, 10, 0.4);
}

.cinematic-quote-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  line-height: 1.4;
  color: #fff;
  max-width: 950px;
  margin: 0 auto 2rem;
  font-style: italic;
  font-weight: 800;
}

.cinematic-quote-author {
  font-size: 1.1rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-family: var(--font-display);
  font-weight: 700;
}

/* ==========================================================================
   TOURNAMENT DASHBOARD MODULE
   ========================================================================== */
.tournament-dashboard {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin-top: 3rem;
  box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.dashboard-tabs {
  display: flex;
  gap: 1rem;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.dashboard-tabs::-webkit-scrollbar {
  display: none;
}

.dash-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.dash-tab-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.dash-tab-btn.active {
  color: #fff;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  box-shadow: 0 0 15px rgba(255, 107, 0, 0.3);
}

/* Tournament Card grids */
.tournaments-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.tournament-card {
  background: rgba(15, 15, 15, 0.5);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.tournament-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.tournament-card-header {
  position: relative;
  height: 180px;
  background: #111;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
}

.tournament-card-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, rgba(10, 10, 10, 0.95) 0%, rgba(10, 10, 10, 0.2) 100%);
}

.tournament-sport-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent-primary);
  color: #fff;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tournament-status-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tournament-status-badge.open {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid #10B981;
}

.tournament-status-badge.closed {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid #EF4444;
}

.tournament-status-badge.upcoming {
  background: rgba(59, 130, 246, 0.15);
  color: #3B82F6;
  border: 1px solid #3B82F6;
}

.tournament-name-title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.2;
}

.tournament-card-body {
  padding: 1.5rem;
  flex-grow: 1;
}

.tournament-meta-detail {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tournament-meta-detail svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.tournament-card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 0 1.5rem 1.5rem;
}

.tournament-card-actions .btn {
  padding: 0.6rem 0.2rem;
  font-size: 0.75rem;
  text-align: center;
  font-weight: 800;
}

/* ==========================================================================
   BRACKETS SYSTEM
   ========================================================================== */
.fixtures-panel-container {
  color: #fff;
}

.bracket-wrapper {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  padding: 2rem 1rem;
  align-items: center;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  height: 100%;
  min-width: 260px;
}

.bracket-round-title {
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--accent-primary);
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.bracket-match {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  padding: 0.75rem;
  margin: 1.5rem 0;
  position: relative;
  transition: all 0.3s ease;
}

.bracket-match::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 1.5rem;
  height: 1px;
  background: var(--glass-border);
}

.bracket-round:last-child .bracket-match::after {
  display: none;
}

.bracket-team-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  border-radius: 4px;
}

.bracket-team-row.winner {
  background: rgba(16, 185, 129, 0.08);
  font-weight: 700;
}

.bracket-team-row.winner .bracket-team-score {
  color: #10B981;
}

.bracket-team-name {
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 150px;
}

.bracket-team-score {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-secondary);
}

/* ==========================================================================
   LIVE SCORE TILES
   ========================================================================== */
.live-scores-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.live-score-card {
  background: linear-gradient(135deg, rgba(30, 20, 10, 0.4) 0%, rgba(10, 10, 10, 0.6) 100%);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.15);
}

.live-score-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
}

.live-indicator-dot {
  width: 8px;
  height: 8px;
  background: #EF4444;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.6; }
}

.live-score-teams {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.live-team-score-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.live-team-info {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.live-team-score-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
}

.live-score-details-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
  border-top: 1px dashed rgba(255,255,255,0.06);
  padding-top: 0.75rem;
}

/* Baseball inning box styling */
.baseball-diamond-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0,0,0,0.3);
  padding: 0.8rem;
  border-radius: 8px;
  margin-top: 1rem;
}

.baseball-runs-hits-errors-table {
  font-size: 0.75rem;
  text-align: center;
  width: 120px;
}

.baseball-runs-hits-errors-table th, .baseball-runs-hits-errors-table td {
  padding: 0.2rem;
  font-weight: 800;
}

/* ==========================================================================
   REGISTRATION STEP MODAL & UPI SCANNER
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(10px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content-card {
  background: #0f1012;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  width: 100%;
  max-width: 600px;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0,0,0,0.8);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal-close-btn:hover {
  color: #fff;
}

/* Registration Form steps */
.registration-step {
  display: none;
}

.registration-step.active {
  display: block;
}

.registration-step-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.steps-indicator-bar {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.step-dot {
  flex-grow: 1;
  height: 4px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.step-dot.active {
  background: var(--accent-primary);
  box-shadow: 0 0 10px rgba(255, 107, 0, 0.4);
}

.step-dot.completed {
  background: var(--color-grass);
}

/* Simulated UPI QR Panel */
.upi-sim-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #15161a;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: center;
}

.upi-qrcode-image {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  width: 200px;
  height: 200px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

/* Printable QR Ticket */
.ticket-pass {
  background: linear-gradient(135deg, #181a20 0%, #0c0d10 100%);
  border: 2px dashed var(--accent-primary);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
  margin-top: 1.5rem;
}

.ticket-pass::before, .ticket-pass::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  background: #0f1012;
  border-radius: 50%;
  transform: translateY(-50%);
  border: 1px solid var(--glass-border);
  z-index: 10;
}

.ticket-pass::before { left: -11px; }
.ticket-pass::after { right: -11px; }

.ticket-header {
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ticket-body-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

.ticket-details {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.ticket-info-group {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ticket-info-group strong {
  display: block;
  font-size: 1rem;
  color: #fff;
  font-family: var(--font-display);
}

.ticket-qr-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.ticket-qr-container img {
  background: #fff;
  padding: 0.5rem;
  border-radius: 6px;
  width: 120px;
  height: 120px;
  margin-bottom: 0.5rem;
}

.ticket-pass-id {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--accent-primary);
}

/* ==========================================================================
   FINAL BRAND SECTION
   ========================================================================== */
.final-brand-section {
  text-align: center;
  background: linear-gradient(180deg, #070708 0%, #000 100%);
  border-top: 1px solid var(--glass-border);
  padding: 8rem 0;
  position: relative;
}

.brand-showcase-title {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.brand-showcase-title span {
  color: var(--accent-primary);
}

.brand-tagline-row {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}

.brand-tagline-item {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand-icon-feature-row {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  margin-top: 5rem;
}

.brand-icon-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 160px;
}

.brand-icon-feature-circle {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: all 0.3s ease;
}

.brand-icon-feature-item:hover .brand-icon-feature-circle {
  transform: scale(1.1);
  border-color: var(--accent-primary);
  box-shadow: 0 0 20px rgba(255, 107, 0, 0.2);
}

.brand-icon-feature-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.3;
}

/* ==========================================================================
   SKELETON LOADER SCREEN
   ========================================================================== */
.skeleton-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  height: 350px;
  position: relative;
  overflow: hidden;
}

.skeleton-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
  transform: translateX(-100%);
  animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
  100% {
    transform: translateX(100%);
  }
}

/* ==========================================================================
   MEDIA QUERY RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  .brand-showcase-title {
    font-size: 2.5rem;
  }
  .brand-tagline-row {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .brand-icon-feature-row {
    gap: 2rem;
  }
  .ticket-body-grid {
    grid-template-columns: 1fr;
  }
  .ticket-pass::before, .ticket-pass::after {
    display: none;
  }
  .cinematic-quote-title {
    font-size: 1.6rem;
  }
  .dashboard-tabs {
    justify-content: flex-start;
  }
}

/* MLB Tournaments Responsive Overrides */
@media (max-width: 768px) {
  .ticket-body-grid,
  .mlb-baseball-grid,
  .baseball-features-grid,
  .tournaments-grid,
  .stats-table-container,
  .match-center-layout,
  [class*="-grid"] {
    grid-template-columns: 1fr !important;
  }
}
