/* 
* Soroz.online Futbol İstatistikleri CSS
* Tailwind ile birlikte çalışan özel stiller
*/

/* Temel Animasyonlar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
} 

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.7);
}

/* Tablo Stilleri */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.94rem;
}

.data-table th {
  background-color: rgba(30, 41, 59, 0.8);
  color: #f8fafc;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid rgba(100, 116, 139, 0.3);
  position: sticky;
  top: 0;
  z-index: 10;
}

.data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(71, 85, 105, 0.2);
  color: #e2e8f0;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background-color: rgba(30, 41, 59, 0.5);
  transition: background-color 0.2s ease;
}

/* Takım logoları ve oyuncu resimleri */
.team-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  margin-right: 8px;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.team-logo-small {
  width: 20px;
  height: 20px;
  object-fit: contain;
  vertical-align: middle;
}

.player-img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
  margin-right: 8px;
  border: 2px solid rgba(59, 130, 246, 0.5);
}

/* Lig butonları */
.league-button {
  background-color: rgba(30, 64, 175, 0.2);
  color: #e2e8f0;
  padding: 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(59, 130, 246, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.league-button:hover {
  background-color: rgba(30, 64, 175, 0.4);
  border-color: rgba(59, 130, 246, 0.5);
  transform: translateY(-2px);
}

.league-button.active {
  background-color: rgba(30, 64, 175, 0.6);
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.league-button img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Yükleme Animasyonu */
.loading-spinner {
  display: inline-block;
  color: #3b82f6;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

/* Skeleton yükleme efekti */
.skeleton {
  background: linear-gradient(90deg, rgba(41, 55, 75, 0.5) 25%, rgba(51, 65, 85, 0.6) 50%, rgba(41, 55, 75, 0.5) 75%);
  background-size: 1000px 100%;
  border-radius: 4px;
  animation: shimmer 2s infinite linear;
}

.skeleton-row {
  height: 40px;
  margin-bottom: 8px;
}

/* Fixture (Maç) Kartları */
.fixture-card {
  background-color: rgba(30, 41, 59, 0.4);
  border-radius: 0.5rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(71, 85, 105, 0.3);
  transition: all 0.3s ease;
}

.fixture-card:hover {
  background-color: rgba(30, 41, 59, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.fixture-date {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}

.fixture-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fixture-team {
  display: flex;
  align-items: center;
  flex: 1;
}

.fixture-team.home {
  justify-content: flex-end;
  text-align: right;
}

.fixture-team.away {
  justify-content: flex-start;
  text-align: left;
}

.fixture-vs {
  padding: 0 0.75rem;
  font-weight: bold;
  color: #94a3b8;
}

/* Responsive tasarım */
@media (max-width: 768px) {
  .data-table {
    font-size: 0.8rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.5rem 0.75rem;
  }
  
  .team-logo {
    width: 20px;
    height: 20px;
  }
  
  .team-logo-small {
    width: 16px;
    height: 16px;
  }
  
  .player-img {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 640px) {
  .data-table {
    font-size: 0.75rem;
  }
  
  .league-button {
    padding: 0.5rem;
    font-size: 0.8rem;
  }
  
  .league-button img {
    width: 16px;
    height: 16px;
  }
}