/*
Theme Name: Guia dos Livros
Description: Tema elegante para blog de recomendações de livros com links de afiliado
Author: Seu Nome
Version: 1.0
*/

/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #2d1810;
    background-color: #fdfcfa;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(253, 252, 250, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e6ddd4;
    padding: 1rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.site-title {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, #5d4037, #bf7549);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    text-decoration: none;
    color: #2d1810;
    transition: color 0.3s ease;
}

.main-nav a:hover {
    color: #5d4037;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #5d4037, #bf7549);
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-highlight {
    background: linear-gradient(135deg, #f4d03f, #bf7549);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #f5f1eb;
    color: #5d4037;
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Blog Grid */
.blog-section {
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2d1810;
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Book Card */
.book-card {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(45, 24, 16, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e6ddd4;
}

.book-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(45, 24, 16, 0.15);
}

.book-cover {
    aspect-ratio: 3/4;
    overflow: hidden;
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.book-card:hover .book-cover img {
    transform: scale(1.05);
}

.book-info {
    padding: 1.5rem;
}

.book-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.book-category {
    background: #f5f1eb;
    color: #5d4037;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.book-time {
    color: #8b7355;
    font-size: 0.8rem;
}

.book-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.book-author {
    color: #8b7355;
    margin-bottom: 1rem;
}

.book-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    display: flex;
    gap: 0.125rem;
}

.star {
    color: #f4d03f;
}

.star.empty {
    color: #e6ddd4;
}

.book-description {
    color: #8b7355;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.book-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    flex: 1;
}

.btn-outline-small {
    background: transparent;
    color: #5d4037;
    border: 1px solid #e6ddd4;
}

/* Single Post */
.post-header {
    padding: 2rem 0;
}

.post-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.post-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.post-main {
    line-height: 1.8;
}

.post-main h2 {
    color: #5d4037;
    margin: 2rem 0 1rem;
    font-size: 1.5rem;
}

.post-main h3 {
    color: #5d4037;
    margin: 1.5rem 0 0.75rem;
    font-size: 1.25rem;
}

.post-main p {
    margin-bottom: 1rem;
}

.post-main ul, .post-main ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.cta-card {
    background: linear-gradient(135deg, rgba(93, 64, 55, 0.05), rgba(191, 117, 73, 0.05));
    border: 1px solid rgba(93, 64, 55, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin: 3rem 0;
}

/* Footer */
.site-footer {
    background: #5d4037;
    color: white;
    padding: 3rem 0;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1.2rem;
    }
    
    .post-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}