/* FFoFT Tournament - Esports Dark Gaming Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;900&family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --primary-glow: #00ff88;
  --primary-dark: #059669;
  --bg-dark: #070a12;
  --card-bg: rgba(15, 23, 42, 0.75);
  --card-border: rgba(16, 185, 129, 0.25);
  --font-display: 'Orbitron', sans-serif;
  --font-gaming: 'Rajdhani', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-dark);
  font-family: var(--font-body);
  color: #e2e8f0;
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(0, 255, 136, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
    linear-gradient(rgba(7, 10, 18, 0.95), rgba(7, 10, 18, 0.98)),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.25) 2px, rgba(0, 0, 0, 0.25) 4px);
  min-height: 100vh;
}

.font-display {
  font-family: var(--font-display);
}

.font-gaming {
  font-family: var(--font-gaming);
}

/* Cyber Hexagon & Glow Accents */
.glow-border {
  border: 1px solid var(--card-border);
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.12), inset 0 0 15px rgba(0, 255, 136, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-border:hover {
  border-color: rgba(0, 255, 136, 0.6);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.25), inset 0 0 20px rgba(0, 255, 136, 0.08);
}

.glow-text {
  text-shadow: 0 0 12px rgba(0, 255, 136, 0.65);
}

.glow-box-primary {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

/* Bracket Container & Connector Lines */
.bracket-wrapper {
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: thin;
  scrollbar-color: #10b981 #0b1120;
}

.bracket-wrapper::-webkit-scrollbar {
  height: 8px;
}
.bracket-wrapper::-webkit-scrollbar-track {
  background: #0b1120;
  border-radius: 4px;
}
.bracket-wrapper::-webkit-scrollbar-thumb {
  background: #10b981;
  border-radius: 4px;
}

.bracket-round {
  min-width: 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

/* Match Card */
.match-card {
  position: relative;
  background: rgba(13, 20, 36, 0.85);
  border: 1px solid rgba(52, 211, 153, 0.2);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover {
  transform: translateY(-2px);
  border-color: #10b981;
  box-shadow: 0 8px 24px rgba(0, 255, 136, 0.15);
}

.match-card.is-live {
  border-color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
  animation: livePulse 2s infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
  50% { box-shadow: 0 0 25px rgba(239, 68, 68, 0.5); }
  100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.2); }
}

/* Match Team / Player Row */
.player-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 8px;
  transition: background 0.2s ease;
  cursor: pointer;
}

.player-slot:hover {
  background: rgba(255, 255, 255, 0.05);
}

.player-slot.is-winner {
  background: linear-gradient(90deg, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-left: 3px solid #10b981;
}

.player-slot.is-loser {
  opacity: 0.5;
}

/* Rank Badges */
.badge-gm {
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  color: #fff;
}
.badge-master {
  background: linear-gradient(135deg, #8b5cf6, #ec4899);
  color: #fff;
}
.badge-heroic {
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
}
.badge-diamond {
  background: linear-gradient(135deg, #06b6d4, #3b82f6);
  color: #fff;
}

/* Custom Modal Animation */
.modal-enter {
  animation: modalFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
