/* =================================
   1. CONFIGURAÇÕES GERAIS E VARIÁVEIS
   ================================= */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&family=Special+Elite&display=swap");

:root {
    --black: #1a1a1a;
    --red: #C3000F;
    --silver: #E0E0E0;
    --white: #FFFFFF;
    --red-dark: #73030d;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    background-color: var(--black);
    font-family: 'Roboto', sans-serif;
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--silver);
}
h1, h2, h3, h4, .hashtag, .menu ul li { font-family: 'Special Elite', monospace; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* =================================
   2. CABEÇALHO E MENU
   ================================= */
.main-header { height: 30rem; position: relative; color: var(--white); }
.main-header::before {
    content: ''; position: absolute; inset: 0;
    background: url(imagens/MILANBANNER.webp) center 40% no-repeat;
    background-size: cover; filter: brightness(0.6); z-index: 1;
}
.menu {
    position: absolute; bottom: 0; left: 0;
    width: 100%; height: 6rem;
    background: rgba(26, 26, 26, 0.75);
    backdrop-filter: blur(3px);
    border-top: 0.5rem double var(--red);
    display: flex; align-items: center;
    z-index: 3;
}
.logo-container { position: absolute; bottom: -1rem; left: 3rem; z-index: 4; }
.logo-image { height: 12rem; width: auto; }
.menu ul {
    display: flex;
    justify-content: space-evenly; /* ESPAÇAMENTO PROPORCIONAL */
    align-items: center;
    list-style: none;
    width: 100%;
    height: 100%;
    padding-left: 15rem; /* Espaço para a logo não sobrepor */
}
.menu ul li a {
    font-size: 1.8rem;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: all 0.4s ease;
    border-radius: 1rem;
    display: block;
}
.menu ul li a:hover {
    color: var(--white); background: var(--red-dark);
    font-weight: 700; transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* =================================
   3. LAYOUT PRINCIPAL E SIDEBAR
   ================================= */
.page-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
}
@media (min-width: 992px) {
    .page-wrapper { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); }
    .sidebar { position: sticky; top: 4rem; align-self: start; }
}

.main-section, .widget-section { 
    background: rgba(40, 40, 40, 0.3);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1rem; padding: 3rem; margin-bottom: 4rem;
}
.section-header { text-align: center; margin-bottom: 3rem; ,
    border-bottom: 2px solid var(--red); padding-bottom: 0.5rem; display: inline-block;
    width: fit-content; margin-left: auto; margin-right: auto;
}
.section-header h1 { font-size: 3.5rem; color: var(--white); ,
    border-bottom: 2px solid var(--white); padding-bottom: 0.5rem; display: inline-block;
}


.section-header h2 { font-size: 2.5rem; color: var(--red); 
    border-bottom: 2px solid var(--red); padding-bottom: 0.5rem; display: inline-block;
}

.widget-section .section-header h2 { color: var(--white); 
    border-bottom: 2px solid var(--white); 
}

.widget { margin-bottom: 3rem; 
}

.widget:last-child { margin-bottom: 0; 
}
.widget h3 { font-size: 2rem; margin-bottom: 1.5rem
; color: var(--red); border-bottom: 2px solid var(--red); padding-bottom: 0.5rem; }

/* =================================
   4. ARTIGO, ELENCO, VÍDEOS E LINKS 
   ================================= */
.lineup-display-container {
    display: flex;
    flex-wrap: wrap; /* Permite quebrar linha em telas menores */
    gap: 3rem;
    align-items: flex-start; /* Alinha o topo dos elementos */
    margin-bottom: 4rem;
    justify-content: center; /* Centraliza os itens quando há espaço */
    box-sizing: border-box;
    

}
.lineup-display-container > * {
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-radius: 1rem;
    background-color: rgba(26, 26, 26, 0.85);
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-sizing: border-box;


}
.field {
    flex: 1 1 500px; /* Cresce e encolhe, mas com base de 500px */
    position: relative;
    background: url('imagens/campo.png') center center no-repeat;
    background-size: contain; /* Garante que a imagem do campo seja totalmente visível */
    aspect-ratio: 5 / 7; /* Mantém a proporção do campo */
    min-height: 550px; /* Altura mínima para o campo ser visível */
    max-width: 600px; /* Limita a largura máxima do campo */
    border-radius: 1rem;
    overflow: hidden; /* Garante que os marcadores não saiam se algo for muito grande */
    box-sizing: border-box;

}


.player-marker {
    position: absolute;
    width: 80px; /* Tamanho da camisa */
    height: 70px;
    background: url('imagens/camisa.png') top center no-repeat;
    background-size: 50px; /* Tamanho da imagem da camisa dentro do marcador */
    transform: translate(-50%, -50%); /* Centraliza o marcador na posição (top, left) */
    transition: transform 0.3s ease;
    display: flex;
    justify-content: center;
    padding-top: 55px; /* Espaço para o nome abaixo da camisa */
    cursor: help; /* Indica que tem informação ao passar o mouse */
    z-index: 5; /* Garante que as camisas fiquem por cima do campo */
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1); /* Fundo leve para destacar a camisa */
    box-sizing: border-box;

}

.player-marker::after {
    content: attr(data-name); /* Pega o nome do atributo data-name */
    font-size: 1.2rem;
    color: #fff;
    text-shadow: 1px 1px 3px #000;
    background-color: rgba(0,0,0,0.6);
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    white-space: nowrap; /* Impede que o nome quebre em várias linhas */
    position: absolute;
    bottom: 5px; /* Ajusta a posição do nome abaixo da camisa */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0; /* Começa invisível */
    transition: opacity 0.3s ease;
}

.player-marker:hover::after {
    opacity: 1; /* Torna o nome visível ao passar o mouse */

}
.player-marker:hover { transform: translate(-50%, -50%) scale(1.15); z-index: 10; } /* Animação ao passar o mouse */



.roster-list-sidebar {
    flex: 1 1 350px; /* Permite que a lista tenha uma largura mínima, mas se ajusta */
    max-width: 450px; /* Limita a largura máxima da lista */
    background-color: rgba(26, 26, 26, 0.85);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    max-height: 550px; /* Limita a altura máxima */
    overflow-y: auto; /* Adiciona rolagem se o conteúdo for maior que a altura máxima */
    margin-top: 0; /* Alinha ao topo do campo */
    align-self: start; /* Garante que a lista comece no topo */
    font-size: 1.6rem;
    color: var(--silver);
    line-height: 1.4;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Rolagem suave */
    margin-left: 2rem; /* Espaçamento entre o campo e a lista */

}
.roster-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Duas colunas */
    gap: 2rem; /* Espaçamento entre os cards */
    list-style: none;
    padding: 0;
    margin: 0;

}
.position-group h2 {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 1.5rem;
    text-align: center;
    border-bottom: 2px solid var(--red);
    padding-bottom: 0.5rem;


}

/* =================================
   5. FOOTER E RESPONSIVIDADE
   ================================= */
footer { background-color: var(--black); text-align: center; padding: 4rem 2rem 2rem; border-top: 4px solid var(--red); }
.footer-hashtags { display: flex; justify-content: center; align-items: center; gap: 3rem; margin-bottom: 3rem; flex-wrap: wrap; }
.hashtag { font-size: 2.5rem; }
.footer-logo { height: 8rem; width: auto; }
.social-icons { display: flex; justify-content: center; flex-wrap: wrap; gap: 2.5rem; }
.social-icons a svg, .social-icons a img { height: 30px; width: 30px; transition: transform 0.3s ease; color: var(--white); fill: var(--white); }
.social-icons a:hover svg, .social-icons a:hover img { transform: scale(1.2); }
.copyright { margin-top: 4rem; font-size: 1.4rem; color: #666; }

@media (max-width: 991px) {
    .menu ul { padding-left: 12rem; }
}

@media (max-width: 768px) {
    html { font-size: 58%; }
    .main-header { height: 25rem; }
    .menu { justify-content: flex-end; padding-right: 1rem; }
    .menu ul { flex-wrap: wrap; justify-content: center; gap: 0.5rem 1rem; padding-left: 0; width: 100%; }
    .logo-container { left: 1rem; }
    .logo-image { height: 10rem; }
    .carousel-button { display: none; }
}

@media (max-width: 480px) {
    .main-section, .widget-section { padding: 2rem; }
    .menu ul { justify-content: flex-end; }
    .menu ul li a { padding: 0.8rem 1rem; }
    .footer-hashtags { flex-direction: column; gap: 1.5rem; }
}
@media (max-width: 360px) {
    html { font-size: 55%; }
    .main-header { height: 20rem; }
    .logo-image { height: 8rem; }
}
    .news-header h1 { font-size: 2.8rem; }
    .news-header h2 { font-size: 2rem; }
    .news-article p { font-size: 1.7rem; }
    .section-header h1 { font-size: 3rem; }
    .position-group h2 { font-size: 2.2rem; }
    .widget-section .section-header h2 { font-size: 2.2rem;
    } .link-card h3 { font-size: 1.6rem; }
}
    .link-card h3 { font-size: 1.6rem; }
}
