@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;600;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;700&display=swap');

:root {
  --theme-color: #e10600; /*e10600*/
  --theme-background: #15151e; /*15151e*/
  --theme-shadow: #ff10004d; /*ff10004d*/
  --theme-shadow-hover: #ff100099; /*ff100099*/
  --text-color: #eee; /*ffffff*/
  --theme-card-background: linear-gradient(145deg, #555555 0%, #000000 100%); /*linear-gradient(145deg, #555555 0%, #000000 100%);*/
  --theme-header-footer-background: linear-gradient(145deg, #1c1c1c 0%, #000 100%); /*111111*/
}


/*HOME*/


body {
  
font-family: 'Orbitron', sans-serif;
background-color: var(--theme-background);
color: #eee;
border-radius: 6px;
overflow-x: hidden;
padding: 0;
margin: 0;
min-height: 100vh;
display: flex;
flex-direction: column;
}
main {
  flex: 1;
}

header {
  background: var(--theme-header-footer-background);

  padding: 20px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--theme-color);

  /* profundidade suave */
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.6);
}


header img {
height: 30px;
}

nav a {
margin-left: 25px;
text-decoration: none;
color: var(--text-color);
font-weight: 600;
transition: color 0.3s;
}

nav a:hover {
color: var(--theme-color);;
}

main {
    min-height: 700px;
}

h1 {
text-align: center;
color: var(--text-color);
padding: 16px;
margin-bottom: 30px;
border-radius: 8px;
font-size: 30px;
font-weight: bold;
margin-top: 100px
}

/**************************************************************************/
/* AJUSTES FOOTER */

footer {
  background: var(--theme-header-footer-background);
  color: var(--text-color);
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid var(--theme-color);

  width: 100%;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  /* Isso mantém o texto e ícones alinhados ao centro ou largura do site */

  margin: 0 auto;
  padding: 0 20px;
}
  .footer-content .developer {
    color: var(--text-color);       /* Discreto, cinza claro */
    font-size: 0.8rem; /* Um pouco menor que o restante */
    font-style: italic; /* Itálico suave */
  }
  
  .social-icons {
  display: flex;
  gap: 10px; /* Espaço entre os ícones */
}

.social-icons a {
  display: inline-block;
  width: 40px; /* Tamanho do "botão" */
  height: 40px;
  border-radius: 50%; /* Deixa redondo */
  overflow: hidden;
  background: var(--theme-header-footer-background); /* Cor de fundo do botão */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.2s;
}

.social-icons a img {
  width: 60%; /* O ícone dentro do botão */
  height: 60%;
}

.social-icons a:hover {
  transform: scale(1.1); /* Leve zoom no hover */
  background-color: #555; /* Cor muda quando passar o mouse */
  cursor: pointer;
}
.footer-note {
  font-size: 0.55rem; /* um pouco menor que o padrão */
  font-style: italic;  /* deixa em itálico */
  color: var(--text-color);         /* opcional: cor mais discreta */
  text-align: center;  /* opcional: centralizado */
  margin-top: 10px;    /* espaço acima do texto */
}

  /* Em telas maiores, colocar lado a lado */
  @media(min-width: 600px) {
    .footer-content {
      flex-direction: row;
      justify-content: space-between;
      width: 90%;
      margin: 0 auto;
    }
  }

  .card-driver-picture {
    width: 150px;
    height: auto;
    margin-top: 6px;
    transition: transform 0.3s ease;
  }



/**************************************************************************/
/* TABELA PADRÃO */

table {
font-family: 'Helvetica Neue', sans-serif;
width: 100%;
max-width: 1000px;
margin: 0 auto 40px;
border-collapse: collapse;
background-color: #fff;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
color: #0d0d0d;
}

thead {
background-color: black;
border: 1px solid #414141;
}

th, td {
padding: 4px;
text-align: left;
font-size: 12px;
white-space: nowrap;
font-weight: bold;
}

th {
background-color: #414141;
color: #fff;
}

th {
text-align: center;
}

tbody tr:nth-child(even) {
background-color: #f9f9f9;
}

tbody tr:hover {
background-color: #f1f1f1;
}

td img {
vertical-align: middle;
}


/**************************************************************************/
/* CUSTOMIZAÇÕES TABELAS */

#penaltyTable td {
text-align: center; 
}

th.date, td.date { width: 70px; }
th.time, td.time { width: 90px; }
th.circuit, td.circuit { width: 130px; }
th.qualy, td.qualy { width: 70px; }
th.sprint, td.sprint { width: 60px; text-align: center; }
th.percent, td.percent { width: 40px; text-align: center; }
th.winner, td.winner,
th.pole, td.pole,
th.fastest, td.fastest,
th.dotd, td.dotd,
th.cleanest, td.cleanest { width: 100px; }

.red-row {
background-color: #ffebee !important;
}

.red-row td {
font-weight: bold;
}

.p1-cell {
background-color: #fff9c4 !important; /* amarelo claro */
}
.p2-cell {
background-color: #e0e0e0 !important; /* prata/cinza claro */
}
.p3-cell {
background-color: #d7ccc8 !important; /* bronze/marrom claro */
}

/**************************************************************************/
/* CUSTOMIZAÇÕES TABELA WIKI */

#wikipediaStyleTable {
margin-top: 15px;

}

.zero-margin{
margin: 0px;
}

.container_1 {
margin:auto;
width: fit-content;
}


.ptoSquare {
font-weight: bold;
font-size: 12px;
text-align: center; /* centraliza o texto */
}

.round-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* BOTÕES SWITCH - PILOTOS/CONSTRUTORES */

.switch-container {
display: flex;
justify-content: center;
gap: 30px;
margin: 25px 0;
font-family: 'Helvetica Neue', sans-serif;
}

.switch-container span {
position: relative;
color: #ccc;
font-weight: 500;
font-size: 15px;
cursor: pointer;
padding: 4px 6px;
transition: all 0.2s ease;
text-transform: uppercase;
letter-spacing: 0.4px;
}

.switch-container span:hover {
color: var(--theme-color);
text-decoration: underline;
}

.switch-container span.active {
color: #ffffff;
font-weight: 600;
border-bottom: 2px solid var(--theme-color);
}

.switch-container span.active:hover {
color: var(--theme-color);
text-decoration: none;
}


/**************************************************************************/
/* CUSTOMIZAÇÕES TABELA DE EQUIPES  */

.zebra-light {
background-color: #f9f9f9;
}

.zebra-dark {
background-color: #f1f1f1;
}

/**************************************************************************/
/* CUSTOMIZAÇÕES TABELA RANKING */


/* Centraliza todos os TDs da tabela-ranking */
.tabela-ranking td {
  text-align: center !important;
}

/* Segunda coluna alinhada à esquerda */
.tabela-ranking td:nth-child(2),
.tabela-ranking th:nth-child(2) {
  text-align: left !important;
}



/**************************************************************************/
/**************************************************************************/
/* CUSTOMIZAÇÕES GERAL */

.flag {
width: 24px;
height: 15px;
object-fit: cover;
border-radius: 6px 2px 6px 2px;
border: 1px solid #000;
filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
margin-right: 6px;
}

/**************************************************************************/
/* DROPDOWN */

/* Dropdown container */
.dropdown {
position: relative;
text-align: center;
}

/* Dropdown trigger link */
.dropdown > a::after {
content: " ▾";
font-size: 12px;
}

/* Dropdown content hidden by default */
.dropdown-content {
display: none;
position: absolute;
top: 100%;
left: 0;
min-width: 160px;
z-index: 1;
border-top: none;
border-radius: 0 0 4px 4px;

}

/* Dropdown item links */
.dropdown-content a {
background-color: #3d3d3d;
width: 80px;
padding: 12px 16px; 
display: block;
font-size: 13px;
letter-spacing: 0.5px;
box-shadow: 0px 4px 8px rgba(0,0,0,0.2);
text-align: left;
}

/* Hover effect for dropdown items */
.dropdown-content a:hover {
background-color: rgb(0, 0, 0);
}

/* Show dropdown on hover */
.dropdown:hover .dropdown-content {
display: block;
}

/**************************************************************************/
/* CUSTOMIZAÇÕES CARD PILOTOS */

#cardsPilotos {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 20px;
padding: 20px;
}

.piloto-card {
background: var(--theme-card-background);
border: 1px solid #7e7e7e63;
border-radius: 16px;
width: 300px;
padding: 18px;
color: #f0f0f0;
font-family: 'Orbitron', 'Segoe UI', sans-serif;
box-shadow: 0 0 1px var(--theme-color);
transition: transform 0.2s ease, box-shadow 0.2s ease;

}

.piloto-card:hover {
transform: translateY(-6px);
box-shadow: 0 6px 15px var(--theme-color);
}

.card-inner {
display: flex;
flex-direction: column;
align-items: center;

}

.card-header {
display: flex;
flex-direction: column;
align-items: center;
margin-bottom: 14px;
}

.card-name {
font-size: 18px;
font-weight: 700;
margin: 0;
display: flex;
align-items: center;
gap: 8px;
text-align: center;
}

.card-name img.flag {
width: 32px; /* ou 36px, se quiser um pouco maior */
height: auto;
object-fit: contain;
border-radius: 6px 2px 6px 2px;
border: 1px solid #000;
filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.4));
margin-right: 6px;
}
.card-team {
margin-top: 6px;
}

.team-logo {
width:80px;
height: auto;
margin-top: 6px;
transition: transform 0.3s ease;
}

.team-logo:hover {
transform: scale(1.05);
}

.card-stats {
width: 100%;
display: flex;
flex-direction: column;
gap: 6px;
font-size: 13px;
color: #ccc;
}

.stat {
display: flex;
justify-content: space-between;
border-bottom: 1px dashed #333;
padding: 2px 0;
}



/**************************************************************************/
/* CUSTOMIZAÇÕES HEAD-TO-HEAD */


#headToHeadTable {
max-width: 900px;
margin: 30px auto;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
color: #eee;
}

.headtohead-card {
background: linear-gradient(145deg, #555555 0%, #000000 100%);
border-radius: 14px;
padding: 20px 30px;
margin-bottom: 24px;
box-shadow: 0 6px 15px var(--theme-shadow);
transition: box-shadow 0.3s ease;
}

.headtohead-card:hover {
box-shadow: 0 8px 24px var(--theme-shadow-hover);
}

.h2h-equipe {
font-size: 18px;
font-weight: 700;
letter-spacing: 1.1px;
color: var(--theme-color);
text-align: center;
margin-bottom: 14px;
text-transform: uppercase;
font-family: 'F1', Arial, sans-serif; /* se quiser fonte estilo F1 */
}

.h2h-matchup {
display: flex;
justify-content: space-between;
align-items: center;
}

.h2h-piloto {
display: flex;
align-items: center;
gap: 12px;
width: 38%;
font-weight: 600;
font-size: 20px;
white-space: nowrap;
}

.flag-h2h {
width: 32px;
height: 20px;
border-radius: 6px 2px 6px 2px;
border: 1px solid #000;
filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.7));
}

.team-logo {
width: 60px;
height: auto;
object-fit: contain;

}

.piloto-nome {
flex-shrink: 1;
color: #fff;
text-overflow: ellipsis;
overflow: hidden;
}

.h2h-score {
font-size: 28px;
font-weight: 700;
color: #ff3c3c;
user-select: none;
}

.h2h-score-mobile {
font-size: 10px;
font-weight: 700;
color: #ff3c3c;
user-select: none;
}

.h2h-score .x {
margin: 0 12px;
font-weight: 900;
color: #fff;
}


/**************************************************************************/
/* AJUSTES DE RESPONSIVIDADE */

/* Por padrão, mostra a desktop e esconde a mobile */
.desktop-table {
  display: block;
}
.mobile-table {
  display: none;
}

/* Quando for tela pequena (ex: menor que 768px), inverte */
@media (max-width: 768px) {
  .desktop-table {
    display: none;
  }
  .mobile-table {
    display: block;
  }
}

/*mobile table */

.mobile-table {
  padding-top: 100px;
}


    @media(max-width: 768px) {
      .news-cards {
        flex-direction: column;
        align-items: center;
      }

      .news-card {
        width: 90%;
      }

      .carousel {
        width: 100%;
      }
    }

/**************************************************************************/


  /******************** PENALTIES ***********************/

  
.penalties-section {
  max-width: 1100px;
  margin: 30px auto;
}

.penalties-table {
  width: 100%;
  border-collapse: collapse;
  background: #f5f5f5;
  color: #000;
  font-family: 'Titillium Web', sans-serif;
  font-size: 15px; /* fonte maior */
}

.penalties-table th {
  background: #111;
  color: white;
  padding: 6px 8px; /* mais compacto */
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.penalties-table td {
  padding: 5px 8px; /* ↓ altura da linha */
  border: 1px solid #00000025;
  line-height: 1.2;
}

.penalties-table tr:nth-child(even) {
  background: #ececec;
}

.penalties-table tr:hover {
  background: #dddddd;
  transition: 0.15s;
}

.penalties-table td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.penalties-table td:last-child {
  font-weight: 700;
  text-align: center;
}


/* ===== TABELA PONTUAÇÃO CENTRALIZADA ===== */
#pontuacaoTable {
  margin: auto;        /* centraliza horizontalmente */
  border-collapse: collapse;
  text-align: center;
}

#centralizar {
  text-align: center;
}

/* garante que o container não empurre para esquerda */
#pontuacaoTable-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* células */
#pontuacaoTable th,
#pontuacaoTable td {
  padding: 6px 10px;
}


/******************************************************/
/* CALENDAR  */


.carousel {
display: flex;
overflow-x: auto;
scroll-behavior: smooth;
gap: 20px;
padding: 10px;
scrollbar-width: none; /* Firefox */
}
.carousel::-webkit-scrollbar {
display: none;
}


.carousel-wrapper {
max-width: 1200px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
margin-bottom: 30px;
margin: 0 auto;
overflow-x: auto;
padding-bottom: 10px;
-webkit-overflow-scrolling: touch;
}

.calendar-container h2 {
font-size: 2.5rem;
margin-bottom: 40px;
letter-spacing: 2px;

}

.card-wrapper {
display: flex;
gap: 20px;
justify-content: center;
flex-wrap: wrap;
}

.calendar-card {
background: var(--theme-header-footer-background);
border: 1px solid #333;
border-radius: 14px;
padding: 20px 16px;
width: 200px;
min-width: 180px;
min-height: 260px; /* <-- define altura mínima consistente */
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
transition: transform 0.3s ease, box-shadow 0.3s ease;
box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
}

.calendar-card:hover {
transform: translateY(-5px);
box-shadow: 0 6px 15px var(--theme-shadow-hover);
}

.round {
color: var(--theme-color);
font-weight: bold;
font-size: 0.9rem;
margin-bottom: 5px;
}

.round-number {
font-size: 2rem;
font-weight: bold;
}



.location {
font-weight: 700;
font-size: 1.1rem;
margin-bottom: 6px;
color: #fff;
text-align: center;
}


.arrow {
background-color: transparent;
border: none;
font-size: 2rem;
color: #aaa;
cursor: pointer;
transition: color 0.2s;
}
.arrow:hover {
color: #fff;
}

.silver-trophy {
  filter: grayscale(100%) brightness(1.6) contrast(1.1);
}



/******************************************************/
/* Estilo do vídeo INDEX */
  .video-section {
    display: flex;
    justify-content: center;
    margin: 20px 0;
  }
  .video-section iframe {
    width: 100%;
    max-width: 800px;
    height: 450px;
    border: none;
    border-radius: 8px;
  }

  /* Estilo da Manchete */
  .headline-container {
    max-width: 800px;
    margin: -10px auto 30px auto; /* Encosta no vídeo e dá espaço para o calendário */
    padding: 0 10px;
  }

  .headline-badge {
    background-color: var(--theme-color);
    color: white;
    padding: 4px 12px;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
    display: inline-block;
    border-radius: 4px 4px 0 0;
  }

  .headline-text {
    background: #1f1f27;
    border-left: 4px solid var(--theme-color); /* Linha mais grossa estilo F1 */
    padding: 20px;
    font-size: 1.25rem;
    font-weight: 900;
    text-transform: uppercase;
    font-style: italic;
    letter-spacing: -0.5px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; /* Para não quebrar em telas pequenas */
    gap: 15px;
  }

  /* Botão de Inscrição Estilizado */
  .btn-inscricao {
    background-color: var(--theme-color);
    color: white !important;
    text-decoration: none !important;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-style: normal; /* Tira o itálico do h1 */
    transition: 0.3s;
    display: inline-block;
  }

  .btn-inscricao:hover {
    background-color: white;
    color: black !important;
    transform: scale(1.05);
  }

  /* Ajuste para o vídeo "travado" */
  .video-lock {
    pointer-events: none;
    width: 100%;
    max-width: 800px;
  }


  /* CONTAINER PDF */
.pdf-container {
  width: 100%;
  height: calc(100vh - 140px);

  box-sizing: border-box;
}

.pdf-viewer {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  background: #111;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
}

/**************************************************************************/
/* CONTATO COM ÍCONES */

.contact-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.contact-box {
  max-width: 800px;
  width: 100%;
  background: var(--theme-card-background);
  border-radius: 18px;
  padding: 35px 40px;
  border: 1px solid #7e7e7e63;
  box-shadow: 0 6px 20px rgba(0,0,0,0.6);
}

.league-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-color);
  margin-bottom: 35px;
}

.contact-block {
  text-align: center;
}

.contact-block h2 {
  font-size: 15px;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 6px;
}

.contact-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 18px;
}

/* ===== SOCIAL ICONS ===== */

.contact-socials {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.contact-socials a {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--theme-header-footer-background);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
  box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.contact-socials a img {
  width: 65%;
  height: 65%;
}

.contact-socials a:hover {
  transform: scale(1.15);
  background-color: #555;
  box-shadow: 0 0 12px var(--theme-shadow-hover);
}

/* divisor */

.contact-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    var(--theme-color),
    transparent
  );
  margin: 35px 0;
}