/* Tab Navigation */
.content-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.content-tab {
  padding: 0.5rem 1rem;
  border: none;
  background: #f0f0f0;
  cursor: pointer;
  border-radius: 4px;
}

.content-tab.active {
  background: #00439b;
  color: white;
}

/* Section Layout */
.content-section {
  display: none;
}

.content-section.active {
  display: block;
}

.matches-section {
  padding: 1rem;
}

.scrollable-container {
  height: 300px;
  overflow-y: auto;
  border: 1px solid #00439b;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 20px;
}

.matches-calendar {
  padding: 5px;
}

/* Estilo para a scrollbar */
.scrollable-container::-webkit-scrollbar {
  width: 8px;
}

.scrollable-container::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.scrollable-container::-webkit-scrollbar-thumb {
  background: #00439b;
  border-radius: 4px;
}

.scrollable-container::-webkit-scrollbar-thumb:hover {
  background: #003278;
}

/* Weekend Groups */
.weekend-group {
  margin: 0.75rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.weekend-group:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.matches-section h3 {
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #00439b;
  font-size: 1.4rem;
  font-weight: 600;
  padding-left: 0.5rem;
  border-left: 4px solid #00439b;
}

.weekend-header {
  background: #00439b;
  color: white;
  padding: 1rem;
  margin: 0;
  font-size: 1.3rem;
}

.weekend-games {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Match Items */
.match-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  min-width: 0;
  border-bottom: 1px solid #eee;
}

.match-item:last-child {
  border-bottom: none;
}

/* Team Containers */
.team-container-casa {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  min-width: 0;
}

.team-container-fora {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
}

/* Score Display - Move outside media queries */
.score-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.score-container .score {
  font-weight: bold;
  font-size: 1.8rem;
  background: #00439b;
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  min-width: 40px;
  text-align: center;
}

.score-container .match-date {
  font-size: 0.8rem;
  color: #666;
}

.penalties-score {
    font-size: 0.8em;
    color: #666;
    display: block;
    margin: -5px 0 2px 0;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
  .team-name {
    display: none;
  }

  .match-item {
    grid-template-columns: 60px auto 60px;
  }

  .score-container .score {
    font-size: 1.2rem;
  }
}

@media screen and (max-width: 480px) {
  .match-item {
    grid-template-columns: 60px auto 60px;
    padding: 0.6rem;
    gap: 0.3rem;
  }

  .team-container {
    min-width: 80px;
  }

  .team-logo {
    width: 25px;
    height: 25px;
  }
  .weekend-header {
    font-size: 0.9rem;
    padding: 0.4rem;
    text-align: center;
  }
}

.champions-section {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #ffffff);
    padding: 30px;
    margin: 30px 0;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: white;
}

.champions-header {
    text-align: center;
    font-size: 2em;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.champions-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.division-champion {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
}

.division-title {
    text-align: center;
    font-size: 1.5em;
    margin-bottom: 20px;
    color: #fdbb2d;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.champion-card {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    backdrop-filter: blur(5px);
}

.champion-logo {
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.3));
}

.champion-details {
    flex: 1;
}

.champion-name {
    font-size: 1.8em;
    margin-bottom: 10px;
    color: #fdbb2d;
}

.champion-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,0.2);
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.9em;
}

.finalists-section {
  background: linear-gradient(to right, #f8f8f8, #ffffff, #f8f8f8);
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.finalists-header {
  text-align: center;
  color: #00439b;
  margin-bottom: 20px;
  font-size: 1.5em;
}

.finalists-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.finalist-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.finalist-logo {
  object-fit: contain;
}

.finalist-name {
  font-weight: bold;
  color: #333;
  text-align: center;
}

.finalist-vs {
  font-size: 1.5em;
  font-weight: bold;
  color: #666;
}
