/* =========== Configurações Globais e Variáveis =========== */
:root {
    --primary-color: #FF2800; /* Um vermelho vibrante para destaque */
    --dark-color: #1a1a1a;
    --medium-dark-color: #2b2b2b;
    --light-color: #f4f4f4;
    --grey-color: #888;
    --box-shadow-light: 0 4px 15px rgba(0, 0, 0, 0.2);
    --box-shadow-heavy: 0 8px 25px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --content-max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--dark-color);
    color: var(--light-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: var(--content-max-width);
    margin: 0 auto;
    padding: 0 15px;
}

/* =========== Estilos Gerais =========== */
h1, h2, h3 {
    font-weight: 700;
}

a {
    color: var(--primary-color);
    text-decoration: none;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-heavy);
}

.btn-secondary {
    background-color: var(--medium-dark-color);
    color: var(--light-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
}

/* =========== Cabeçalho e Navegação =========== */
.main-header {
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: var(--box-shadow-light);
}



.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Isso já centraliza verticalmente os itens */
    max-width: var(--content-max-width-desktop); 
    margin: 0 auto;
    padding: 0rem 5%; /* Ajuste o padding vertical se necessário */
    min-height: 80px; /* Defina uma altura mínima para o navbar */
}

/* Novo estilo para o logo de imagem */
.logo-img-link {
    display: flex; /* Mude para flex para melhor controle */
    align-items: center; /* Centraliza verticalmente dentro do link */
    height: 100%; /* Usa 100% da altura do navbar */
}

.logo-image {
    height: 50px; /* Defina uma altura fixa para a imagem */
    width: auto;
    display: block;
    object-fit: contain; /* Mantém a proporção da imagem */
}


.nav-menu {
    display: flex;
    align-items: center; /* Isso já centraliza verticalmente os itens */
}

.nav-menu li a {
    padding: 0.5rem 1rem;
    color: var(--light-color);
    font-weight: 400;
    transition: color 0.3s ease;
}

.nav-menu li a:hover {
    color: var(--primary-color);
}


/* =========== Modal de Login =========== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--medium-dark-color);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-heavy);
    width: 90%;
    max-width: 450px;
    text-align: center;
    position: relative;
    transform: translateY(-50px);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 28px;
    cursor: pointer;
}

.modal-content h2 {
    margin-bottom: 10px;
}

.modal-content p {
    color: var(--grey-color);
    margin-bottom: 25px;
}

.modal-content input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--grey-color);
    background-color: var(--dark-color);
    color: var(--light-color);
    border-radius: 8px;
}

.modal-actions {
    margin-top: 20px;
    font-size: 0.9em;
}

.modal-actions a {
    margin: 0 10px;
}



/* =========== Banner com Vídeo =========== */
.video-banner {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.video-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    z-index: 3;
    width: 80%;
    max-width: 800px;
}

.video-content h1 {
    font-size: 3.5em;
    margin-bottom: 0.5em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.video-content p {
    font-size: 1.5em;
    margin-bottom: 1.5em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Responsividade para o banner de vídeo */
@media (max-width: 768px) {
    .video-content h1 {
        font-size: 2.5em;
    }
    
    .video-content p {
        font-size: 1.2em;
    }
}

@media (max-width: 480px) {
    .video-content h1 {
        font-size: 2em;
    }
    
    .video-content p {
        font-size: 1em;
    }
}

/* =========== Secções de Conteúdo =========== */
.content-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.content-section h2 {
    font-size: 2.5em;
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.card {
    background: var(--medium-dark-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
}

.card:hover {
    transform: translateY(-10px); /* Efeito flutuante mais pronunciado */
    box-shadow: var(--box-shadow-heavy);
}

.card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card p {
    margin-bottom: 25px;
    color: var(--grey-color);
}

/* =========== Rodapé =========== */
.main-footer {
    background-color: var(--medium-dark-color);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.footer-section p {
    color: var(--grey-color);
    margin-bottom: 20px;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: var(--grey-color);
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--dark-color);
    color: var(--light-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.contact p {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid var(--grey-color);
    padding-top: 20px;
    text-align: center;
    font-size: 0.9rem;
    color: var(--grey-color);
}

/* =========== Design Responsivo =========== */
@media (max-width: 1024px) {
    .news-item.featured {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }

    .nav-menu {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-menu li a {
        padding: 0.5rem 0.7rem;
    }

    .news-hero h1 {
        font-size: 2.2rem;
    }

    .filter-options {
        gap: 5px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .social-links {
        justify-content: center;
    }

    .contact p {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .news-hero {
        padding: 60px 0;
    }

    .news-hero h1 {
        font-size: 1.8rem;
    }

    .news-container {
        grid-template-columns: 1fr;
    }

    .pagination {
        flex-wrap: wrap;
    }
}




/* Adicione isto ao final do seu style.css (antes dos media queries) */

.section-subtitle {
    color: var(--grey-color);
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Estilo para os ícones nos títulos das categorias */
.card h3 i {
    margin-right: 10px;
}

/* Estilo para o ícone de login */
.login-img-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-left: 10px;
}


/* =========== NOVOS ESTILOS ADICIONADOS =========== */

/* Container para logótipos dos desportos */
.sport-logo-container {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.sport-logo {
    width: 100px;
    height: 100px;
}

/* Galeria e vídeos com cantos arredondados */
.gallery-card {
    overflow: hidden;
}

.gallery-preview {
    height: 200px;
    border-radius: var(--border-radius);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-preview {
    transform: scale(1.05);
}

/* Botões "Ver Mais" com ícone */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    padding-right: 35px;
}

.btn-secondary::after {
    content: '→';
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(-10px);
}

.btn-secondary:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Botão principal "Ver Todas as Categorias" */
.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

/* Ajustes para os cards */
.card h3 {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card p {
    min-height: 60px;
    margin-bottom: 20px;
}


/* =========== NOVOS ESTILOS PARA CARDS CLICÁVEIS =========== */

/* Cards inteiros clicáveis */
.clickable-card {
    display: block;
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.clickable-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 40, 0, 0.2) !important;
}

/* Logos reais dos desportos */
.sport-logo-real {
    max-width: 160px;
    max-height: 120px;
    object-fit: contain;
}

.sport-icon {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.sport-logo-container {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Cantos arredondados para galeria/vídeos */
.gallery-preview {
    height: 180px;
    background: linear-gradient(135deg, var(--medium-dark-color), var(--dark-color));
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 40, 0, 0.1);
}

.clickable-card:hover .gallery-preview {
    background: linear-gradient(135deg, #FF2800, #ff5c33);
    transform: rotate(2deg);
}

.gallery-preview i {
    font-size: 60px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.clickable-card:hover .gallery-preview i {
    color: white;
    transform: scale(1.2);
}

/* Texto no rodapé do card */
.card-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-style: italic;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9em;
    text-align: center;
    transition: all 0.3s ease;
}

.clickable-card:hover .card-footer {
    color: white;
    border-top-color: var(--primary-color);
}

/* Setinha indicadora (aparece no hover) */
.clickable-card::after {
    content: '→';
    position: absolute;
    top: 20px;
    right: 20px;
    color: var(--primary-color);
    font-size: 24px;
    font-weight: bold;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.clickable-card:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* Secções especiais */
.gallery-section .card:hover {
    border: 2px solid rgba(255, 40, 0, 0.3);
}

.videos-section .gallery-preview {
    background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
}

.fun-section {
    background-color: rgba(255, 40, 0, 0.05) !important;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 1400px;
}

/* Subtítulos engraçados */
.section-subtitle {
    color: var(--grey-color);
    font-size: 1.1em;
    margin-bottom: 50px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    line-height: 1.6;
    font-style: italic;
}

/* Ajuste para parágrafos dentro dos cards */
.card p {
    min-height: 80px;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Efeito de clique visual */
.clickable-card:active {
    transform: translateY(-5px) scale(0.98);
}


/* ESTILO PARA BOTÃO CENTRALIZADO */
.center-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 40px 0;
    padding: 20px;
}

.btn1 {
    display: inline-block;
    padding: 15px 35px;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: var(--box-shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    font-size: 1.1em;
    text-align: center;
}

.btn1:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-heavy);
}


/* =========== BOTÕES SIMPLES MAS ELEGANTES =========== */
.section-button-container {
    display:flexbox;
    padding-top: 2%; /*mudar espaco na parte de cima do botao*/
}

.section-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--primary-color);
    color: white !important;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.2em;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 40, 0, 0.25);
}

.section-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.section-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 40, 0, 0.35);
    background: #FF3300;
}

.section-button:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 40, 0, 0.25);
}