/* ---- RESET E ESTILOS GLOBAIS ---- */
:root {
    --bg-dark: #121212;
    --bg-card: #1E1E1E;
    --text-primary: #E0E0E0;
    --text-secondary: #B3B3B3;
    --accent-color: #ffda22;
    --accent-hover: #ffe76f;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex-grow: 1;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* ---- HEADER (TOPO) ---- */
.top-bar {
    background-color: #000000;
    padding: 1rem 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);

    /* Regras de centralização (permanecem as mesmas) */
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    width: 20rem;
    /* Correção para eliminar espaço extra abaixo da imagem */
    display: block; 
}

/* ---- SEÇÃO DE E-BOOKS ---- */
.ebooks-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    font-weight: 700;
}

.ebooks-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* ---- CARD DO E-BOOK ---- */
.ebook-card {
    background-color: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* ANIMAÇÃO AO PASSAR O MOUSE */
.ebook-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.ebook-cover {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.ebook-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ebook-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.ebook-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.ebook-button {
    display: block;
    background-color: var(--accent-color);
    color: #000000;
    text-align: center;
    padding: 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    margin-top: auto;
    transition: background-color 0.3s ease;
}

.ebook-button:hover {
    background-color: var(--accent-hover);
    color: #000000;
}


/* ---- RODAPÉ ---- */
.site-footer {
    background-color: #000000;
    color: var(--text-secondary);
    padding: 2rem 1.5rem 1rem;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 2rem;
    text-align: center;
}

.footer-social .fa-brands {
    font-size: 1.8rem;
    margin: 0 0.5rem;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid #222;
    padding-top: 1rem;
    font-size: 0.8rem;
}

/* ---- RESPONSIVIDADE ---- */
@media (max-width: 992px) {
    .ebooks-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colunas em tablets */
    }
}

@media (max-width: 600px) {
    .section-title {
        font-size: 2rem;
    }
    .ebooks-grid {
        grid-template-columns: 1fr; /* 1 coluna em celulares */
    }
    .footer-content {
        flex-direction: column;
        align-items: center;
    }
}
/* ---- ESTILOS DA PÁGINA DE DETALHES DO E-BOOK ---- */

.back-button {
    display: block;
    max-width: 1100px;
    margin: 1rem auto -1rem; /* Margem para alinhar com o container */
    padding: 0 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.back-button:hover {
    color: var(--accent-color);
}

.details-container {
    display: flex;
    flex-wrap: wrap; /* Permite que as colunas se ajustem em telas menores */
    max-width: 1100px;
    margin: 3rem auto;
    gap: 3rem; /* Espaço entre a imagem e as informações */
    padding: 0 1.5rem;
    align-items: flex-start; /* Alinha o topo da imagem com o topo do texto */
}

.details-cover-column {
    flex: 1; /* Ocupa 1 parte do espaço */
    min-width: 300px; /* Largura mínima antes de quebrar a linha */
}

.details-cover-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
}

.details-info-column {
    flex: 2; /* Ocupa 2 partes do espaço, dando mais área para o texto */
    min-width: 300px;
}

.details-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.details-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #333;
}

.details-description {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* --- NOVOS ESTILOS PARA A SEÇÃO DE PREÇO --- */
.price-section {
    margin: 2rem 0;
}

.old-price {
    font-size: 1.2rem;
    color: var(--text-secondary);
    text-decoration: line-through;
    margin-right: 0.75rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    vertical-align: middle;
}
/* --- FIM DOS NOVOS ESTILOS --- */


.buy-button-wrapper {
    margin-top: 1rem; /* Ajustado para alinhar melhor com o preço */
}

.buy-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    font-size: 1.2rem;
    font-weight: 700;
    text-align: center;
    padding: 1rem 3rem;
    border-radius: 8px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.buy-button:hover {
    background-color: var(--accent-hover);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 218, 34, 0.2);
}


/* ---- RESPONSIVIDADE PARA A PÁGINA DE DETALHES ---- */
@media (max-width: 768px) {
    .details-title {
        font-size: 2.2rem;
    }
    
    .details-container {
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .price-section, .buy-button-wrapper {
        text-align: center;
    }
    
    .back-button {
        margin-top: 0;
    }
}
/* ---- ESTILOS DA PÁGINA DE AGRADECIMENTO ---- */

.thank-you-main {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1; /* Faz o conteúdo principal ocupar o espaço disponível */
    padding: 2rem;
}

.thank-you-container {
    text-align: center;
    background-color: var(--bg-card);
    padding: 3rem 4rem;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.5);
    max-width: 600px;
}

.thank-you-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.thank-you-subtitle {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.back-to-home-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #000;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.back-to-home-button:hover {
    background-color: var(--accent-hover);
    color: #000;
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .thank-you-container {
        padding: 2rem 1.5rem;
    }

    .thank-you-title {
        font-size: 2rem;
    }

    .thank-you-subtitle {
        font-size: 1rem;
    }
}
