/* ============================================
   TOURNAMENTS PAGE - DARK THEME
   Perfect Chess Academy
   Base styles from: theme.css, base.css, sections.css
   ============================================ */

/* ============================================
   HERO SECTION (REDESIGNED)
   ============================================ */
.tournaments-hero {
  position: relative;
  min-height: 600px;
  padding: 8rem 0 6rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  overflow: hidden;
}

/* Chess Pattern Background */
.hero-chess-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 60px, var(--accent-primary) 60px, var(--accent-primary) 61px),
    repeating-linear-gradient(90deg, transparent, transparent 60px, var(--accent-primary) 60px, var(--accent-primary) 61px);
  animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
  0% {
    transform: translate(0, 0);
  }

  100% {
    transform: translate(60px, 60px);
  }
}

/* Breadcrumbs */
.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-primary);
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb-link:hover {
  color: var(--accent-primary);
  border-color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.1);
  transform: translateY(-2px);
}

.breadcrumb-separator {
  color: var(--text-muted);
  font-weight: 300;
}

.breadcrumb-current {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 8px;
}

/* Hero Content Wrapper - 2 Column Layout */
.hero-content-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Left Side: Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: rgba(var(--accent-primary-rgb), 0.15);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.3);
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-primary);
  align-self: flex-start;
  animation: fadeInUp 0.6s ease;
}

.hero-badge svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  animation: fadeInUp 0.6s ease 0.3s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Right Side: Stats Grid */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  animation: fadeIn 0.8s ease 0.4s both;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-primary);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(var(--accent-primary-rgb), 0.2);
}

.stat-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-primary-rgb), 0.15);
  border-radius: 12px;
  color: var(--accent-primary);
}

.stat-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  stroke-width: 2;
}

.stat-content {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: 0.5rem;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ============================================
   BUTTONS - Page-specific modifiers only
   (Base styles come from components.css)
   ============================================ */
.tournaments-hero .btn-primary svg {
  transition: transform 0.3s ease;
}

.tournaments-hero .btn-primary:hover svg {
  transform: translateX(4px);
}

.btn-large {
  padding: 1.125rem 2.25rem;
  font-size: 1.125rem;
}

/* ============================================
   FILTERS - CLEAN MINIMAL DESIGN
   ============================================ */
.filters-section {
  padding: 2rem 0 1.5rem;
  background: transparent;
  position: relative;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
}

/* Search Container */
.search-container {
  flex: 1;
  min-width: 200px;
  max-width: 320px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-container .search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.2s ease;
}

.search-container input {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 2.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  outline: none;
  transition: all 0.25s ease;
}

.search-container input::placeholder {
  color: var(--text-muted);
}

.search-container input:focus {
  border-color: var(--accent-primary);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.15);
}

.search-container input:focus+.search-icon,
.search-container:focus-within .search-icon {
  color: var(--accent-primary);
}

.clear-btn {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.clear-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.clear-btn.visible {
  display: flex;
}

/* Filter Pills Container */
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Pill Buttons */
.pill {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.pill.active {
  color: #0f172a;
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  font-weight: 600;
}

/* Results Summary */
.results-summary {
  text-align: center;
  padding: 1rem 0 0;
}

#resultsCount {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* ============================================
   TOURNAMENT CARDS - SIMPLIFIED
   ============================================ */
.tournament-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all 0.3s ease;
}

.tournament-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--accent-primary-rgb), 0.25);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.tournament-card.hidden {
  display: none;
}

/* Card Header with Badges */
.card-header {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.375rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-upcoming {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.badge-ongoing {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.badge-completed {
  background: rgba(100, 116, 139, 0.15);
  color: #94a3b8;
}

.badge-fide {
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-primary);
}

/* Card Title */
.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

/* Card Description */
.card-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

/* Card Meta (Date + Participants) */
.card-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.meta-item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.prize {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-primary);
}

.btn-card {
  padding: 0.625rem 1.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0f172a;
  background: var(--accent-primary);
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-card:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
}

/* ============================================
   RESPONSIVE FILTERS
   ============================================ */
@media (max-width: 900px) {
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
    padding: 1rem;
  }

  .search-container {
    max-width: 100%;
  }

  .filter-pills {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .filter-pills {
    gap: 0.375rem;
  }

  .pill {
    padding: 0.4rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================
   TOURNAMENT CARDS
   ============================================ */
.tournaments-section {
  background: var(--bg-primary);
}

.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr));
  gap: 2rem;
}

/* Ensure cards work on all screen sizes */
@media (max-width: 1200px) {
  .tournaments-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  }
}

@media (max-width: 768px) {
  .tournaments-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.tournament-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
}

.tournament-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.03) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tournament-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(var(--accent-primary-rgb), 0.1) inset;
}

.tournament-card:hover::before {
  opacity: 1;
}

.card-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid;
  backdrop-filter: blur(10px);
}

.badge-upcoming {
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border-color: rgba(59, 130, 246, 0.3);
}

.badge-ongoing {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-completed {
  background: rgba(100, 116, 139, 0.15);
  color: #64748b;
  border-color: rgba(100, 116, 139, 0.3);
}

.badge-fide {
  background: rgba(var(--accent-primary-rgb), 0.15);
  color: var(--accent-primary);
  border-color: rgba(var(--accent-primary-rgb), 0.3);
}

.badge-level {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border-color: rgba(168, 85, 247, 0.3);
}

.badge-level.beginner {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border-color: rgba(34, 197, 94, 0.3);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}

.card-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.card-info {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.info-row svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  stroke-width: 2;
}

/* Countdown Timer */
.countdown-timer {
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(var(--accent-primary-rgb), 0.08) 0%, rgba(251, 146, 60, 0.05) 100%);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.15);
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

.countdown-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-values {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.countdown-number {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-values>span {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-primary);
}

/* Card Footer */
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary);
  margin-top: auto;
}

.prize-pool {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-primary);
}

.prize-pool svg {
  stroke-width: 2;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1f2937;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  border-radius: 10px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--accent-primary-rgb), 0.4);
}

.btn-register svg {
  transition: transform 0.3s ease;
  stroke-width: 2;
}

.btn-register:hover svg {
  transform: translateX(4px);
}

/* Live Indicator */
.live-indicator {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--error);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--error);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.tournament-card.ongoing {
  position: relative;
  border-color: rgba(239, 68, 68, 0.3);
}

/* ============================================
   CHAMPIONS SECTION
   ============================================ */
.champions-section {
  background: var(--bg-secondary);
}

.champions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.champion-card {
  background: var(--bg-primary);
  border: 2px solid;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.champion-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, currentColor 0%, transparent 70%);
  opacity: 0.03;
  pointer-events: none;
}

.champion-card.gold {
  border-color: #fbbf24;
  color: #fbbf24;
}

.champion-card.silver {
  border-color: #94a3b8;
  color: #94a3b8;
}

.champion-card.bronze {
  border-color: #d97706;
  color: #d97706;
}

.champion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.champion-medal {
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1.5rem;
}

.champion-medal svg {
  width: 100%;
  height: 100%;
}

.champion-photo {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid currentColor;
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  font-size: 2rem;
  font-weight: 700;
  color: currentColor;
}

.champion-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.champion-title {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem 0;
}

.champion-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-primary);
}

.champion-stats .stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.champion-stats .stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: currentColor;
}

.champion-stats .stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   CALENDAR SECTION
   ============================================ */
.calendar-section {
  background: var(--bg-primary);
}

.calendar-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 3rem;
}

.calendar-month {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 2rem;
}

.month-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
}

.calendar-events {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calendar-event {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  transition: var(--transition);
}

.calendar-event:hover {
  border-color: var(--accent-primary);
  transform: translateX(8px);
}

.event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  padding: 1rem;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  border-radius: 12px;
  flex-shrink: 0;
}

.date-day {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.date-month {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.event-info h4 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.5rem 0;
}

.event-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem 0;
}

.event-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.15);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-cta {
  text-align: center;
}

/* ============================================
   HOW TO REGISTER SECTION
   ============================================ */
.how-to-section {
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.step-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-primary);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-primary);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #1f2937;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(var(--accent-primary-rgb), 0.3);
}

.step-icon {
  width: 4rem;
  height: 4rem;
  margin: 1.5rem auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.2);
  border-radius: 16px;
  color: var(--accent-primary);
}

.step-icon svg {
  width: 2rem;
  height: 2rem;
  stroke-width: 2;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 1rem 0;
}

.step-description {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  background: var(--bg-primary);
}

.faq-grid {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: var(--accent-primary);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  stroke-width: 2;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: var(--accent-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(var(--accent-primary-rgb), 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1.5rem 0;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0 0 2.5rem 0;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  display: none;
}

.empty-state svg {
  width: 5rem;
  height: 5rem;
  color: var(--text-muted);
  opacity: 0.3;
  margin-bottom: 1.5rem;
  stroke-width: 1.5;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem 0;
}

.empty-state p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin: 0 0 2rem 0;
}

.btn-reset {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 2px solid var(--border-secondary);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.btn-reset:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.08);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-content-wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Filters Mobile */
  .filters-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .search-group {
    width: 100%;
    margin: 0;
  }

  .filter-group {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .filter-buttons {
    width: max-content;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }

  .tournaments-hero {
    padding: 6rem 0 4rem;
    min-height: auto;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  /* Bento Grid Mobile - Stacked */
  .filters-section {
    padding: 1.75rem 0;
  }

  .filters-wrapper {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }

  /* Reset spans on mobile */
  .filter-group:nth-child(1),
  .filter-group:nth-child(2) {
    grid-column: span 1;
  }

  .filter-buttons {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap;
  }

  .filter-buttons::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
    padding: 0.5rem 0.875rem;
    font-size: 0.75rem;
  }

  .search-group {
    width: auto;
    min-width: 180px;
    margin: 0;
    border-right: none;
  }

  .search-input {
    width: 180px;
  }


  .filter-label {
    display: none;
  }

  .section-header {
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 2rem;
  }

  /* Tournament cards */
  .tournament-card {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.25rem;
  }

  .countdown-timer {
    padding: 1rem;
  }

  .champions-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .cta-buttons {
    flex-direction: column;
  }

  @media (max-width: 480px) {
    .container {
      padding: 0 1rem;
    }

    .hero-title {
      font-size: 1.875rem;
    }

    .hero-description {
      font-size: 0.9375rem;
    }

    /* Filters extra small screens */
    .filter-buttons {
      width: 100%;
    }

    .filter-btn {
      flex: 1 1 auto;
      min-width: 0;
      padding: 0.5rem 0.75rem;
      font-size: 0.75rem;
      white-space: nowrap;
    }

    .search-input {
      font-size: 0.875rem;
      padding: 0.625rem 2.5rem 0.625rem 2.5rem;
    }

    /* Tournament cards small mobile */
    .tournament-card {
      padding: 1.25rem;
    }

    .card-title {
      font-size: 1.125rem;
    }

    .card-description {
      font-size: 0.875rem;
    }

    .info-row {
      font-size: 0.875rem;
    }

    .countdown-number {
      font-size: 1.25rem;
    }

    .countdown-text {
      font-size: 0.6875rem;
    }

    .card-footer {
      flex-direction: column;
      align-items: stretch;
      gap: 0.75rem;
      padding-top: 1.25rem;
    }

    .prize-pool {
      justify-content: center;
    }

    .btn-register {
      width: 100%;
      justify-content: center;
    }
  }

  /* ============================================
   ACCESSIBILITY
   ============================================ */
  @media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  .filter-btn:focus-visible,
  .search-input:focus-visible,
  .btn:focus-visible,
  .faq-question:focus-visible {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
  }
}