/* Estilos customizados para o Top Futebol */

:root {
  --primary-color: #198754;
  --secondary-color: #6c757d;
  --success-color: #198754;
  --danger-color: #dc3545;
  --warning-color: #ffc107;
  --info-color: #0dcaf0;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gradient-primary: linear-gradient(135deg, #198754, #20c997);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
}

body {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  font-family: "Inter", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Navbar moderna */
.navbar {
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(45deg, #fff, #e9ecef);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards de jogos modernos */
.game-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border-radius: var(--border-radius);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.game-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.game-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.game-card:hover::before {
  transform: scaleX(1);
}

/* Escudos dos times - ALTERADO PARA QUADRADOS */
.team-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 8px; /* Mudança: de 50% para 8px (quadrado com bordas arredondadas) */
  background: rgba(255, 255, 255, 0.9);
  padding: 4px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.team-logo-large {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 12px; /* Mudança: de 50% para 12px (quadrado com bordas arredondadas) */
  background: rgba(255, 255, 255, 0.9);
  padding: 6px;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.team-logo:hover,
.team-logo-large:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

.vs-text {
  font-weight: 800;
  color: var(--secondary-color);
  font-size: 1.3rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.game-time {
  background: var(--gradient-primary);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-weight: 600;
  display: inline-block;
  box-shadow: var(--shadow-sm);
  font-size: 0.95rem;
  letter-spacing: 0.5px;
}

.championship-badge {
  background: linear-gradient(45deg, var(--info-color), #17a2b8);
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.broadcasters-info {
  background: linear-gradient(45deg, var(--warning-color), #fd7e14);
  color: var(--dark-color);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Filtros e busca modernos */
.search-filters {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  padding: 2rem;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.filter-input {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  padding: 0.75rem 1rem;
  font-weight: 500;
}

.filter-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
  transform: translateY(-2px);
}

/* Página de detalhes do jogo */
.game-details-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.game-header {
  background: var(--gradient-primary);
  color: white;
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
}

.game-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.3;
}

.team-info {
  text-align: center;
  padding: 1rem;
  position: relative;
  z-index: 1;
}

.team-name {
  font-weight: 700;
  margin-top: 0.5rem;
  color: var(--dark-color);
  font-size: 1.1rem;
}

/* Admin styles modernos */
.admin-sidebar {
  background: linear-gradient(180deg, var(--dark-color), #343a40);
  min-height: calc(100vh - 56px);
  padding: 1rem 0;
  box-shadow: var(--shadow-md);
}

.admin-sidebar .nav-link {
  color: #adb5bd;
  padding: 1rem 1.5rem;
  border-radius: 0;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.admin-sidebar .nav-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--primary-color);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
  background: rgba(25, 135, 84, 0.1);
  color: white;
  transform: translateX(5px);
}

.admin-sidebar .nav-link:hover::before,
.admin-sidebar .nav-link.active::before {
  transform: scaleY(1);
}

.admin-content {
  padding: 2rem;
  background: rgba(248, 249, 250, 0.5);
}

.stats-card {
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--border-radius);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  transform: rotate(45deg);
}

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

.stats-number {
  font-size: 3rem;
  font-weight: 800;
  display: block;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Tabelas responsivas modernas */
.table-responsive {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: white;
}

.table th {
  background: var(--gradient-primary);
  color: white;
  border: none;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.table td {
  vertical-align: middle;
  border-color: #f8f9fa;
  padding: 1rem 0.75rem;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background-color: rgba(25, 135, 84, 0.05);
  transform: scale(1.01);
}

/* Botões modernos */
.btn {
  border-radius: 8px;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.85rem;
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #157347, #1a9b6b);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Alertas modernos */
.alert {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-sm);
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(45deg, rgba(25, 135, 84, 0.1), rgba(32, 201, 151, 0.1));
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background: linear-gradient(45deg, rgba(220, 53, 69, 0.1), rgba(255, 107, 107, 0.1));
  color: var(--danger-color);
  border-left: 4px solid var(--danger-color);
}

/* Placeholders para logos - ALTERADO PARA QUADRADOS */
.logo-placeholder {
  width: 45px;
  height: 45px;
  background: linear-gradient(45deg, #e9ecef, #f8f9fa);
  border-radius: 8px; /* Mudança: de 50% para 8px */
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 1.2rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.logo-placeholder-large {
  width: 70px;
  height: 70px;
  font-size: 1.8rem;
  border-radius: 12px; /* Mudança: de 50% para 12px */
  background: linear-gradient(45deg, #e9ecef, #f8f9fa);
  box-shadow: var(--shadow-md);
}

.logo-placeholder:hover,
.logo-placeholder-large:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-md);
}

/* Loading spinner moderno */
.loading-spinner {
  display: inline-block;
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Responsividade aprimorada */
@media (max-width: 768px) {
  .team-logo {
    width: 40px;
    height: 40px;
    /* Garantir que a imagem se ajuste corretamente */
    object-fit: contain;
  }

  .team-logo-large {
    width: 60px;
    height: 60px;
    /* Garantir que a imagem se ajuste corretamente */
    object-fit: contain;
  }

  .game-time {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
  }

  .vs-text {
    font-size: 1rem;
  }

  .search-filters {
    padding: 1rem;
  }

  .admin-content {
    padding: 1rem;
  }
}

@media (max-width: 576px) {
  .team-info {
    padding: 0.5rem;
  }

  .championship-badge,
  .broadcasters-info {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .stats-number {
    font-size: 2rem;
  }
}

/* Animações suaves */
.fade-in {
  animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Efeitos de hover para cards */
.card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: var(--shadow-sm);
  border-radius: var(--border-radius);
}

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

/* Footer moderno */
footer {
  background: linear-gradient(135deg, var(--dark-color), #343a40);
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
}

/* Melhorias para formulários */
.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.form-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  font-weight: 500;
}

.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

/* Paginação moderna */
.pagination .page-link {
  border-radius: 8px;
  margin: 0 2px;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  transition: all 0.3s ease;
}

.pagination .page-item.active .page-link {
  background: var(--gradient-primary);
  border: none;
  box-shadow: var(--shadow-sm);
}

.pagination .page-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* Animações */
/* Ajustar também os placeholders para manter consistência */
/* Placeholder para logos ausentes */
/* Adicionar regras para garantir consistência em dispositivos móveis */
@media (max-width: 768px) {
  .logo-placeholder {
    width: 35px;
    height: 35px;
  }

  .logo-placeholder-large {
    width: 50px;
    height: 50px;
  }
}
