/* Protezione da scroll orizzontale */
html, body { 
  overflow-x: hidden; 
  max-width: 100vw; 
}

/* Adattamento tema chiaro */
.bg-dark {
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-electric) 100%) !important;
  color: var(--text-light) !important;
}

.bg-light {
  background-color: #f8f9fa !important;
  color: var(--dark-primary) !important;
}

.card {
  border: none;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.table {
  color: var(--dark-primary);
  border-color: rgba(0,0,0,0.1);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(0,0,0,0.05);
}

.table thead {
  background: var(--primary-electric);
  color: var(--text-light);
  border-bottom: 2px solid var(--primary-deep);
}

.table thead th {
  font-weight: 600;
  padding: 1rem;
}

.table tbody td {
  padding: 0.75rem;
  vertical-align: middle;
}

.tournament-badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
}

.badge-active {
  background: var(--accent-coral);
  color: white;
}

.badge-upcoming {
  background: var(--accent-yellow);
  color: var(--dark-primary);
}

.badge-ended {
  background: #6c757d;
  color: white;
}

.prize-highlight {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-coral);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.feature-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-card);
  border-radius: 50%;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
  color: var(--text-light);
}

.cta-section {
  background: var(--gradient-hero);
  color: var(--text-light);
  padding: 3rem 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  margin: 3rem 0;
}

.btn-primary {
  background: var(--accent-coral);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 50px;
  transition: var(--transition);
}

.btn-primary:hover {
  background: var(--accent-yellow);
  color: var(--dark-primary);
  transform: scale(1.05);
}

.info-box {
  background: linear-gradient(135deg, rgba(255,107,107,0.1) 0%, rgba(255,204,92,0.1) 100%);
  border-left: 4px solid var(--accent-coral);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .prize-highlight {
    font-size: 1.5rem;
  }
  
  .cta-section {
    padding: 2rem 1rem;
  }
}