/**
 * Essência Company - Estilos específicos para a página Print
 */

/* Estilos do cabeçalho da página */
.print-header-section {
    position: relative;
    padding: 120px 0 80px;
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.5)), url('../img/principal/marcas/background.jpeg') center center no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #fff;
}

.print-header-section .highlight {
    color: #d1ff00; /* Mantemos o amarelo no cabeçalho sobre fundo escuro para bom contraste */
}

.print-header-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.print-header-text h1 {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 700;
    font-size: 3.5rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

.print-header-text p {
    font-family: 'Fahkwang', sans-serif;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.highlight {
    color: #d1ff00; /* Voltamos ao amarelo para melhor contraste com o fundo escuro */
}

.print-header-section .highlight {
    color: #d1ff00; /* Mantemos o amarelo no cabeçalho sobre fundo escuro */
}

/* Seção de revistas */
.print-revistas-section {
    padding: 80px 0;
    background-color: #fff;
}

.section-title {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
}

.revistas-container {
    display: flex;
    flex-direction: column;
    gap: 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.revista-card {
    display: flex;
    background-color: #042321; /* Fundo escuro para melhor contraste com texto branco e amarelo */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(209, 255, 0, 0.2);
}

.revista-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border-color: #d1ff00;
}

/* Variante com layout invertido (imagem à direita) */
.revista-card-alt {
    flex-direction: row-reverse;
}

.revista-image {
    flex: 0 0 35%;
    background-color: #042321; /* Cor consistente com o restante do card */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative; /* Para posicionar possíveis elementos absolutos */
    padding: 20px; /* Espaço para a revista respirar */
}

.revista-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease, opacity 0.3s ease;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.revista-card:hover .revista-image img {
    transform: scale(1.05);
}

.revista-content {
    flex: 0 0 65%;
    padding: 30px;
    color: #ffffff; /* Texto branco para melhor contraste com o fundo escuro */
}

.revista-logo {
    margin-bottom: 15px;
    max-width: 200px;
}

.revista-logo img {
    width: 100%;
    height: auto;
    max-height: 60px;
    object-fit: contain;
}

.revista-location {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 20px;
    display: inline-block;
    color: #ffffff; /* Branco para contraste com fundo escuro */
    position: relative;
}

.revista-location::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #d1ff00;
}

.revista-description {
    margin-bottom: 25px;
}

.revista-description p {
    font-family: 'Fahkwang', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9); /* Branco levemente transparente para texto de descrição */
}

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

.revista-link {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 500;
    text-decoration: none;
    padding: 8px 15px;
    border-radius: 5px;
    background-color: transparent;
    color: #ffffff;
    border: 1px solid #d1ff00;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 1rem;
}

.revista-link i {
    color: #d1ff00;
    background-color: rgba(255, 255, 255, 0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.revista-link:hover {
    background-color: #d1ff00;
    color: #2d5016;
    box-shadow: 0 3px 8px rgba(209, 255, 0, 0.3);
}

.revista-link:hover i {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Responsividade */
@media (max-width: 992px) {
    .print-header-text h1 {
        font-size: 3rem;
    }
    
    .revista-card,
    .revista-card-alt {
        flex-direction: column;
    }
    
    /* Garantir que a imagem apareça em cima */
    .revista-card-alt .revista-image {
        order: -1;
    }
    
    /* Ajustar altura da imagem */
    .revista-image {
        flex: 0 0 auto;
        max-height: 300px;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }
    
    /* Garantir que a imagem seja vista na totalidade */
    .revista-image img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .print-header-section {
        padding: 100px 0 60px;
    }
    
    .print-header-text h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .revistas-container {
        gap: 40px;
    }
    
    /* Otimizações adicionais para revistas em mobile */
    .revista-image {
        max-height: 250px;
        background-color: #042321; /* Mesmo que o fundo do card para continuidade visual */
    }
    
    .revista-image img {
        padding: 10px;
        max-height: 230px;
        margin: 0 auto;
        display: block;
    }
    
    /* Melhorar a aparência do conteúdo */
    .revista-content {
        padding: 25px 20px;
        text-align: center;
    }
    
    .revista-logo {
        margin: 0 auto 15px;
    }
    
    /* Garantir que os links fiquem bem alinhados */
    .revista-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .print-header-text h1 {
        font-size: 2rem;
    }
    
    .print-header-text p {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .revista-content {
        padding: 20px 15px;
    }
    
    .revista-title {
        font-size: 1.5rem;
    }
    
    .revista-location {
        font-size: 1rem;
    }
    
    /* Otimizações específicas para telas muito pequenas */
    .revista-card {
        margin: 0 10px;
        border-radius: 8px;
    }
    
    .revista-image {
        max-height: 220px;
    }
    
    .revista-image img {
        max-height: 200px;
    }
    
    /* Garantir que os links não quebrem em telas pequenas */
    .revista-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .revista-link {
        width: 100%;
        justify-content: center;
    }
}
