/*
Theme Name: Safor Child
Template: hello-elementor
Version: 1.0
*/

/* ------------------------------
   Header ACF
------------------------------ */
.header-container {
    background: linear-gradient(to right, #0a741d 100%, #18972f 55%, #50ff6f 75%, #bfffb1 85%, #b2ffb3 95%, #e8ffe8 100%);
    color: #fff;
    padding: 50px 20px;
    border-radius: 0 0 25px 25px;
    text-align: center;
    position: relative;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;       /* garante quebra automática */
    max-width: 1200px;
    margin: 0 auto;
}

/* Foto */
.player-photo {
    position: relative;
    width: 250px;
}

.player-photo img {
    width: 100%;
    display: block;
    border-radius: 12px;
}

.player-photo-shadow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgba(10,116,29,0.4), transparent);
    pointer-events: none;
}

/* Nome e posição */
.player-info {
    text-align: left;
}

.player-name { 
    font-size: 2.5rem; 
    font-weight: bold; 
    line-height: 1.2; 
}

.player-position { 
    font-size: 1.2rem; 
    margin-top: 10px; 
}

/* ------------------------------
   Estatísticas
------------------------------ */
.estatisticas {
    background: #18972f;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    max-width: 800px;
    margin: 30px auto 0 auto;
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.estat-num { font-size: 2rem; font-weight: bold; }
.estat-label { font-size: 0.9rem; }

/* ------------------------------
   Botão voltar
------------------------------ */
.btn-voltar {
    display: inline-block;
    background: linear-gradient(90deg, #0a741d, #18972f);
    color: #fff !important;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease, color 0.3s ease;
    margin: 20px auto 0;
}

.btn-voltar:hover {
    background: #0a741d;
    color: #000;
    transform: translateY(-2px);
}

/* ------------------------------
   Conteúdo
------------------------------ */
.player-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 40px auto;
    max-width: 1200px;
}

.datos-personales,
.trayectoria {
    flex: 1;
    min-width: 300px;
    background: #fff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.datos-personales h3,
.trayectoria h3 {
    margin-bottom: 20px;
    font-size: 1.4rem;
    font-weight: bold;
}

.datos-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 30px;
    font-size: 14px;
    color: #333;
}

.datos-grid i { color: #4a4aff; margin-right: 8px; }

.trayectoria ul { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
    font-size: 14px; 
}
.trayectoria li { 
    padding: 6px 0; 
    border-bottom: 1px solid #eee; 
}


/* ------------------------------
   Partidas
------------------------------ */

.partidas-container,
.resultados-container {
    max-width: 1200px;
    margin: 40px auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

/* Cards */
.match-card {
    width: 320px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    font-family: 'Arial', sans-serif;
    transition: transform 0.3s;
}

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

/* Cabeçalho do card (time e placar) */
.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #18972f 0%, #36b44a 100%);
    color: #fff;
    padding: 20px;
}

.match-header .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.match-header .team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 8px;
    border-radius: 50%;
    border: 2px solid #fff;
    padding: 2px;
    background: #fff;
}

.match-header .versus {
    font-size: 20px;
    font-weight: bold;
}

/* Body do card */
.match-body {
    padding: 20px;
    text-align: center;
}

.match-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
}

.match-date,
.match-location,
.match-transmissao {
    font-size: 14px;
    color: #333;
    margin: 5px 0;
}

.match-transmissao {
    color: #0b2447;
    font-weight: bold;
}

/* Botão Ao Vivo */
.btn-ao-vivo {
    display: inline-block;
    background: #18972f; 
    color: #fff !important; 
    font-weight: bold;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s, color 0.3s;
}

.btn-ao-vivo:hover {
    background: #00ff2e; 
    color: #000 !important; 
}

/* Resultados finais */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(90deg, #18972f 0%, #36b44a 100%);
    color: #fff;
    padding: 15px 20px;
    position: relative;
}

.results-header .team {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100px;
    text-align: center;
}

.results-header .team-left {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.results-header .team-right {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.results-header .team img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 50%;
    border: 2px solid #fff;
    padding: 2px;
    background: #fff;
    margin-bottom: 5px;
}

.results-header .team-name {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    max-width: 90px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.results-header .score {
    font-size: 45px;
    font-weight: bold;
    text-align: center;
    margin: 0 auto;
}

/* Responsivo */
@media(max-width:768px){
    /* Scroll horizontal para todos os containers */
    .partidas-container,
    .resultados-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        gap: 15px;
        padding: 10px;
        scroll-snap-type: x mandatory;
    }

    .partidas-container::-webkit-scrollbar,
    .resultados-container::-webkit-scrollbar {
        display: none;
    }

    .match-card {
        flex: 0 0 auto;
        width: 280px;
        scroll-snap-align: start;
    }

    .match-header .team img {
        width: 50px;
        height: 50px;
    }
}


.safor-noticias {
    margin: 40px auto;
    max-width: 1200px;
    padding: 0 20px;
    font-family: Arial, sans-serif;
}

/* Container principal */
.noticias-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* Notícia em destaque (1173x435 com imagem + texto ao lado) */
.noticia-destaque {
    display: flex;
    gap: 20px;
    align-items: center;
}
.noticia-destaque-img img {
    width: 735px;
    height: 435px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}
.noticia-destaque-texto {
    flex: 1;
}
.noticia-destaque-texto h3 {
    font-size: 28px;
    margin: 0;
}
.noticia-destaque-texto h3 a {
    color: #000;
    text-decoration: none;
}
.noticia-destaque-texto h3 a:hover {
    text-decoration: underline;
}

/* Miniaturas (268x151 com título embaixo) */
.noticias-secundarias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(268px, 1fr));
    gap: 20px;
}
.noticia-card {
    text-align: left;
}
.noticia-card .noticia-img img {
    width: 268px;
    height: 151px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.noticia-card h4 {
    font-size: 16px;
    margin: 8px 0 0;
    max-width: 268px; /* título não passa da largura da imagem */
}
.noticia-card h4 a {
    color: #000;
    text-decoration: none;
}
.noticia-card h4 a:hover {
    text-decoration: underline;
}

/* Estilo mobile */
@media (max-width: 768px) {
    /* Notícia em destaque: imagem acima e texto abaixo */
    .noticia-destaque {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    .noticia-destaque-img img {
        width: 100%;
        height: auto;
    }
    .noticia-destaque-texto h3 {
        font-size: 20px;
    }

    /* Miniaturas horizontais */
    .noticias-secundarias {
        display: flex;
        overflow-x: auto;
        gap: 15px;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch; /* smooth scrolling no iOS */
    }
    .noticia-card {
        flex: 0 0 auto; /* impede que as miniaturas encolham */
        width: 200px; /* largura da miniatura no mobile */
    }
    .noticia-card .noticia-img img {
        width: 100%;
        height: auto;
    }
    .noticia-card h4 {
        font-size: 14px;
        max-width: 200px;
    }
}
/* Botões de navegação */
.btn-noticia,
.navegacao-noticia a {
    display: inline-block;
    padding: 12px 24px;
    background: #18972f;
    color: #fff !important;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

.btn-noticia:hover,
.navegacao-noticia a:hover {
    background: #127824; /* verde mais escuro */
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.titulo-noticia {
    font-size: 32px;
    margin-top: 60px;
    margin-bottom: 20px;
}