/* Tournament Page Styles */
:root {
  /* Colors */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-750: #334155;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;

  --yellow-400: #facc15;
  --green-500: #22c55e;
  --green-600: #16a34a;
  --blue-600: #2563eb;
  --purple-600: #9333ea;
  --pink-600: #db2777;
  --red-500: #ef4444;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Border Radius */
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;

  /* Shadows */
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--slate-900);
  color: white;
  line-height: 1.5;
}

/* Layout */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: var(--space-3);
}

@media (min-width: 640px) {
  .container {
    padding: var(--space-6);
  }
}

/* Tournament Frame */
.tournament-frame {
  background: linear-gradient(to right, var(--blue-600), var(--purple-600), var(--pink-600));
  padding: 1px;
  border-radius: var(--radius-3xl);
  box-shadow: var(--shadow-2xl);
  margin-bottom: var(--space-8);
}

.tournament-inner {
  background-color: var(--slate-800);
  border-radius: calc(var(--radius-3xl) - 2px);
  padding: var(--space-6);
}

/* Tournament Header */
.tournament-header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

@media (min-width: 640px) {
  .tournament-header {
    gap: var(--space-3);
    margin-bottom: var(--space-6);
  }
}

.tournament-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
}

@media (min-width: 640px) {
  .tournament-title {
    font-size: 1.875rem;
  }
}

/* Live Badge */
.live-badge {
  background-color: var(--green-500);
  color: white;
  padding: var(--space-1) var(--space-2);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
}

@media (min-width: 640px) {
  .live-badge {
    font-size: 0.875rem;
  }
}

.live-dot {
  width: 0.375rem;
  height: 0.375rem;
  background-color: white;
  border-radius: 50%;
  margin-right: var(--space-1);
  animation: pulse 2s infinite;
}

@media (min-width: 640px) {
  .live-dot {
    width: 0.5rem;
    height: 0.5rem;
    margin-right: var(--space-2);
  }
}

/* Tournament Card */
.tournament-card {
  background-color: var(--slate-700);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  margin-bottom: var(--space-8);
  border: 1px solid var(--slate-600);
  box-shadow: var(--shadow-xl);
}

.tournament-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 1024px) {
  .tournament-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Tournament Image */
.tournament-image-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  overflow: hidden;
}

@media (min-width: 640px) {
  .tournament-image-container {
    min-height: 192px;
  }
}

.tournament-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Tournament Details */
.tournament-details {
  padding: var(--space-4);
  background-color: var(--slate-750);
}

@media (min-width: 640px) {
  .tournament-details {
    padding: var(--space-8);
  }
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .info-grid {
    gap: var(--space-6);
    margin-bottom: var(--space-8);
  }
}

.info-box {
  background-color: var(--slate-600);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  border: 1px solid var(--slate-500);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .info-box {
    padding: var(--space-4);
  }
}

.info-label {
  color: var(--slate-300);
  font-size: 0.75rem;
  margin-bottom: var(--space-1);
}

@media (min-width: 640px) {
  .info-label {
    font-size: 0.875rem;
    margin-bottom: var(--space-2);
  }
}

.info-value {
  font-size: 1.125rem;
  font-weight: bold;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@media (min-width: 640px) {
  .info-value {
    font-size: 1.5rem;
  }
}

.info-value--prize {
  color: var(--yellow-400);
}

.info-value--white {
  color: white;
}

.info-value--small {
  font-size: 0.75rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .info-value--small {
    font-weight: 500;
  }
}

/* Countdown */
.countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

@media (min-width: 640px) {
  .countdown {
    gap: var(--space-3);
    margin-bottom: var(--space-8);
  }
}

.countdown-box {
  background-color: var(--slate-600);
  border: 1px solid var(--slate-500);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  text-align: center;
  min-width: 50px;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .countdown-box {
    padding: var(--space-3) var(--space-4);
    min-width: 70px;
  }
}

.countdown-value {
  font-size: 1.125rem;
  font-weight: bold;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

@media (min-width: 640px) {
  .countdown-value {
    font-size: 1.5rem;
  }
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--slate-300);
}

.countdown-separator {
  color: var(--slate-400);
  font-size: 1.125rem;
}

@media (min-width: 640px) {
  .countdown-separator {
    font-size: 1.5rem;
  }
}

/* Games Section */
.games-section {
  margin-bottom: var(--space-6);
}

.games-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-6);
}

.games-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.game-card {
  background-color: var(--slate-700);
  border-radius: var(--radius-xl);
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.2s ease;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-600);
  position: relative;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: var(--space-8) 0;
}

.empty-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--slate-400);
  margin-bottom: var(--space-2);
}

.empty-description {
  color: var(--slate-500);
  font-size: 0.875rem;
}

/* Animations */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}
