@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #c9a300;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table,
.table-responsive thead,
.table-responsive tbody,
.table-responsive th,
.table-responsive td,
.table-responsive tr {
  width: 100%;
}

.table-responsive table {
  display: table;
  width: auto;
  min-width: 100%;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 0.75rem;
  text-align: left;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .table-responsive th,
  .table-responsive td {
    padding: 0.65rem;
    font-size: 0.95rem;
  }
}

header {
  position: relative;
  z-index: 10;
}

.navbar {
  padding: 0;
}

.nav {
  gap: 1rem;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  transition: 0.2s;
}

.nav-link:hover {
  color: #c9a300 !important;
}

.podium-container {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  max-width: 1400px;
}

.card {
  position: relative;
  width: 500px;
  height: 360px;
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

/* Card de 1º lugar - Laranja */
.card-first {
  background: linear-gradient(135deg, #ff8c00 0%, #0f172a 100%);
  height: 380px;
}

/* Card de 2º lugar - Laranja mais claro */
.card-second {
  background: linear-gradient(135deg, #c0c0c0 0%, #0f172a 100%);
}

/* Card de 3º lugar - Azul Red Bull */
.card-third {
  background: linear-gradient(135deg, #8a681e 0%, #0f172a 100%);
}

/* Padrão pontilhado de fundo */
.dotted-pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 8px 8px;
  pointer-events: none;
}

/* Posição */
.position {
  font-size: 48px;
  font-weight: 900;
  color: white;
  z-index: 2;
}

.position-suffix {
  font-size: 24px;
  font-weight: 700;
  vertical-align: super;
}

/* Informações do piloto */
.driver-info {
  position: relative;
  z-index: 2;
}

.driver-name {
  font-size: 32px;
  font-weight: 400;
  color: white;
  margin-bottom: 5px;
}

.last-name {
  font-weight: 900;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 4px;
}

.team {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.team-logo {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0;
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Bandeiras */
.flag-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
}

.flag-au {
  background: linear-gradient(to bottom, #012169 50%, white 50%);
}

.flag-gb {
  background:
    linear-gradient(
      to right,
      transparent 45%,
      white 45%,
      white 55%,
      transparent 55%
    ),
    linear-gradient(
      to bottom,
      transparent 45%,
      white 45%,
      white 55%,
      transparent 55%
    ),
    linear-gradient(
      135deg,
      transparent 48%,
      white 48%,
      white 52%,
      transparent 52%
    ),
    linear-gradient(
      45deg,
      transparent 48%,
      white 48%,
      white 52%,
      transparent 52%
    ),
    #012169;
}

.flag-nl {
  background: linear-gradient(
    to bottom,
    #ae1c28 33.33%,
    white 33.33%,
    white 66.66%,
    #21468b 66.66%
  );
}

.driver-image {
  position: absolute;
  right: -150px;
  bottom: 0px;
  width: 500px;
  height: 340px;
  z-index: 1;
  overflow: hidden;
}

.driver-image img.driver-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0%;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.5));
}
/* Pontos */
.points {
  font-size: 56px;
  font-weight: 900;
  color: white;
  z-index: 2;
}

.pts-label {
  font-size: 20px;
  font-weight: 700;
}

/* Responsividade */
@media (max-width: 1400px) {
  .podium-container {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 420px;
  }

  .card-first {
    order: 1;
  }

  .card-second {
    order: 2;
  }

  .card-third {
    order: 3;
  }
}

@media (max-width: 480px) {
  .card {
    height: 280px;
    padding: 20px;
  }

  .position {
    font-size: 36px;
  }

  .driver-name {
    font-size: 24px;
  }

  .points {
    font-size: 42px;
  }

  .driver-image {
    width: 380px;
    height: 240px;
    right: -80px;
  }
}

/* ===================================
   SIDEBAR - FORÇAR MENU AMARELO
   =================================== */

/* Força o item ativo ficar amarelo */
.sidebar-item.bg-yellow-400,
.sidebar-item.sidebar-active {
  background-color: #facc15 !important;
  color: white !important;
  box-shadow: 0 10px 15px -3px rgba(250, 204, 21, 0.3) !important;
}

/* Força o container do ícone */
.sidebar-item.bg-yellow-400 .w-8,
.sidebar-item.sidebar-active .w-8,
.sidebar-item.bg-yellow-400 .bg-yellow-500,
.sidebar-item.sidebar-active .bg-yellow-500 {
  background-color: rgba(234, 179, 8, 0.4) !important;
}

/* FORÇA O ÍCONE SVG FICAR BRANCO - MÁXIMA PRIORIDADE */
.sidebar-item.bg-yellow-400 svg,
.sidebar-item.sidebar-active svg,
.sidebar-item.bg-yellow-400 svg.text-white,
.sidebar-item.sidebar-active svg.text-white,
.sidebar-item.bg-yellow-400 svg.text-racing-gold,
.sidebar-item.sidebar-active svg.text-racing-gold {
  color: white !important;
  fill: white !important;
}

/* Força o texto ficar branco */
.sidebar-item.bg-yellow-400 span,
.sidebar-item.sidebar-active span {
  color: white !important;
}

.ft-label.temporada {
  color: #c9a300;
}

.ft-label.navegacao {
  color: #c9a300;
}

.ft-label.campeonato {
  color: #c9a300;
}
