/* === Variáveis de Cor e Estilo - Paleta Neutra/Quente === */
:root {
    --bg-primary: #FDFBF7;    /* Fundo quase branco, levemente quente */
    --text-dark: #2C2C2C;      /* Preto suave para leitura */
    --text-light: #5A5A5A;     /* Cinza para parágrafos */
    --accent-color: #D4A373;   /* Um tom terroso/dourado para links e botões */
    --border-light: #E5E0D8;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Lato', sans-serif;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-dark);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.7;
}

/* === Tipografia === */
h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 400;
    line-height: 1.3;
}

h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

h3 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

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

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* === Header (Limpo e espaçado) === */
.site-header {
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-light);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.site-title {
    font-size: 2rem;
    font-family: var(--font-serif);
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.main-nav a {
    margin-left: 2.5rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

/* === Hero Section === */
.hero-section {
    padding: 4rem 0 6rem;
}

.flex-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.hero-text {
    flex: 1;
}

.hero-image {
    flex: 1;
    text-align: center;
}

.book-cover {
    max-width: 100%;
    height: auto;
    box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.book-subtitle {
    font-size: 1.3rem;
    font-family: var(--font-serif);
    font-style: italic;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.description {
    margin-bottom: 2.5rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

/* === Botões === */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 0;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--text-dark);
    color: white;
    border: 1px solid var(--text-dark);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-dark);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
}

.btn-secondary:hover {
    background-color: var(--text-dark);
    color: white;
}

/* === Seção de Detalhes === */
.details-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border-light);
}

.details-section p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    max-width: 800px;
}

.synopsis-full p {
    line-height: 1.8;
}

/* === Seção Autor (com foto) === */
.author-wrapper {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    align-items: start;
}

.author-photo {
    text-align: center;
}

.profile-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 4px;
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-light);
}

.author-content {
    max-width: 800px;
}

.author-bio-full p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* === Redes Sociais do Autor (Destaque) === */
.author-social {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
}

.author-social h4 {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
}

.social-links-author {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    background-color: transparent;
    border: 1px solid var(--border-light);
    border-radius: 30px;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 1.1rem;
}

.social-link:hover {
    background-color: var(--text-dark);
    color: white;
    border-color: var(--text-dark);
    transform: translateY(-2px);
}

/* Responsividade para seção autor */
@media (max-width: 768px) {
    .author-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .author-photo {
        text-align: center;
    }
    
    .profile-image {
        max-width: 200px;
    }
    
    .social-links-author {
        justify-content: center;
    }
    
    .social-link {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .social-links-author {
        flex-direction: column;
        align-items: stretch;
    }
    
    .social-link {
        justify-content: center;
    }
}


/* === Seção Download === */
.download-intro {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.download-options {
    margin: 2rem 0;
}

.download-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

/* === Footer === */
.site-footer {
    padding: 3rem 0 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

.footer-divider {
    margin-bottom: 2rem;
}

.regua-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.copyright-text {
    margin-bottom: 0.5rem;
}

.license-info {
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Redes Sociais no Rodapé (versão compacta) */
.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.footer-social a {
    color: var(--text-light);
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    color: var(--text-dark);
    transform: translateY(-2px);
}

/* === Responsividade === */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .main-nav a {
        margin: 0 1rem;
    }
    
    .flex-container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    h2 {
        font-size: 2.5rem;
    }
    
    .btn {
        margin-bottom: 1rem;
    }
    
    .book-subtitle {
        font-size: 1.1rem;
    }
    
    .social-links-author {
        justify-content: center;
    }
    
    .social-link {
        padding: 0.4rem 1rem;
        font-size: 0.9rem;
    }
}

/* === Botões de Download === */
.download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 2rem 0 1rem;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 14px 28px;
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--text-dark);
    border-radius: 0;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-download i {
    font-size: 1.2rem;
}

.btn-download:hover {
    background-color: var(--text-dark);
    color: white;
    transform: translateY(-2px);
}

/* Responsividade para botões de download */
@media (max-width: 768px) {
    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-download {
        justify-content: center;
    }
}

/* === Seção Vídeo - Layout Horizontal === */
.video-wrapper-horizontal {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.video-text {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--text-dark);
}

.video-text p:first-child {
    margin-bottom: 1rem;
}

.video-note-horizontal {
    font-size: 0.9rem;
    color: var(--text-light);
    font-style: italic;
}

.video-note-horizontal a {
    color: var(--text-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.video-note-horizontal a:hover {
    color: var(--accent-color);
}

.video-container-small {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Proporção 16:9 */
    height: 0;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.05);
}

.video-container-small iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Responsividade para layout horizontal */
@media (max-width: 900px) {
    .video-wrapper-horizontal {
        grid-template-columns: 1fr 320px;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .video-wrapper-horizontal {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-text {
        font-size: 1.1rem;
    }
    
    .video-container-small {
        max-width: 500px;
        margin: 0 auto;
    }
}