/* Football Card Styling */
@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0,0,0); }
  40%, 43% { transform: translate3d(0, -30px, 0); }
  70% { transform: translate3d(0, -15px, 0); }
  90% { transform: translate3d(0, -4px, 0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

.football-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border: 2px solid transparent;
  border-image: linear-gradient(145deg, #e2e8f0, #cbd5e0) 1;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.football-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.football-card:hover::before {
  left: 100%;
}

.football-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border-image: linear-gradient(145deg, #3b82f6, #06b6d4) 1;
}

.football-card.correct {
  border-image: linear-gradient(145deg, #10b981, #34d399) 1;
  background: linear-gradient(145deg, #ecfdf5 0%, #f0fdf4 100%);
}

.football-card.correct:hover {
  border-image: linear-gradient(145deg, #059669, #10b981) 1;
}

.team-logo {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.team-logo:hover {
  transform: rotate(5deg) scale(1.1);
}

.prediction-button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid transparent;
}

.prediction-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.prediction-button:hover::before {
  left: 100%;
}

.prediction-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.prediction-button.selected {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border-color: #d97706;
  color: white;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.4);
}

.prediction-button.home-win {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  border-color: #1e40af;
}

.prediction-button.draw {
  background: linear-gradient(135deg, #64748b, #475569);
  border-color: #334155;
}

.prediction-button.away-win {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #b91c1c;
}

.countdown-timer {
  font-family: 'Courier New', monospace;
  font-weight: bold;
  color: #dc2626;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.countdown-timer.urgent {
  animation: pulse 1s infinite;
  color: #ef4444;
}

.difficulty-badge {
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.difficulty-very-easy { background: linear-gradient(135deg, #10b981, #34d399); color: white; }
.difficulty-easy { background: linear-gradient(135deg, #3b82f6, #60a5fa); color: white; }
.difficulty-medium { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: white; }
.difficulty-hard { background: linear-gradient(135deg, #f97316, #fb923c); color: white; }
.difficulty-very-hard { background: linear-gradient(135deg, #ef4444, #f87171); color: white; }
.difficulty-nightmare { background: linear-gradient(135deg, #7c2d12, #dc2626); color: white; }

.score-badge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: white;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  box-shadow: 0 2px 8px rgba(251, 191, 36, 0.4);
}

.game-countdown {
  background: linear-gradient(135deg, #1f2937, #374151);
  color: white;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  margin-bottom: 24px;
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  padding: 20px;
}

.stagger-animation {
  animation: slideInUp 0.6s ease-out forwards;
  opacity: 0;
}

.bet-now-button {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.bet-now-button::after {
  content: '¡';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2em;
  transition: right 0.3s ease;
}

.bet-now-button:hover::after {
  right: 8px;
}

.loading-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* Status indicators */
.status-live {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  animation: pulse 2s infinite;
}

.status-finished {
  background: linear-gradient(135deg, #10b981, #059669);
  color: white;
}

.status-upcoming {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: white;
}

/* Responsive design */
@media (max-width: 768px) {
  .match-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
  }
  
  .football-card:hover {
    transform: none;
  }
}