/* ============================================
   style.css - Archivo principal del tema
   ============================================ */

/*
Theme Name: Ricardo Arcega
Theme URI: https://ricardoarcega.com
Author: Ricardo Arcega
Author URI: https://ricardoarcega.com
Description: Tema personalizado para autor de libros sobre gatos
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ricardo-arcega
*/

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

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f7f4;
}

.site-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 2rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.site-title {
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.site-title a {
    color: white;
    text-decoration: none;
}

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

.main-navigation a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.main-navigation a:hover {
    color: #e8b86d;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                linear-gradient(135deg, #4a5568 0%, #718096 100%);
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

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

.hero-content p {
    font-size: 1.5rem;
    font-style: italic;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

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

.page-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    border-bottom: 3px solid #e8b86d;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
}

.about-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
}

/* Estilos para la página de libros */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 2rem;
}

.book-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.book-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.book-thumbnail {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.book-info {
    padding: 2rem;
}

.book-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.book-excerpt {
    margin-bottom: 1.5rem;
    color: #555;
    line-height: 1.8;
}

.buy-options {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.buy-btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.buy-amazon {
    background: #ff9900;
    color: white;
}

.buy-amazon:hover {
    background: #e68a00;
}

.buy-paypal {
    background: #0070ba;
    color: white;
}

.buy-paypal:hover {
    background: #005ea6;
}

.buy-email {
    background: #34495e;
    color: white;
}

.buy-email:hover {
    background: #2c3e50;
}

/* Estilos para el blog */
.blog-posts {
    display: grid;
    gap: 2rem;
    margin-top: 2rem;
}

.blog-post {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.blog-post:hover {
    transform: translateX(10px);
}

.blog-post h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    border: none;
    display: block;
}

.blog-post h2 a {
    color: #2c3e50;
    text-decoration: none;
}

.blog-post h2 a:hover {
    color: #e8b86d;
}

.post-meta {
    color: #888;
    font-style: italic;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.post-excerpt {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.read-more {
    display: inline-block;
    color: #e8b86d;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    color: #d4a353;
}

/* Post individual */
.single-post {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.post-content {
    font-size: 1.1rem;
    line-height: 1.8;
}

.post-content p {
    margin-bottom: 1.5rem;
}

.post-content h2,
.post-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 2rem 0;
}

/* Formulario de contacto */
.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    max-width: 600px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.submit-btn:hover {
    background: #34495e;
}

.site-footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content p {
    margin: 0.5rem 0;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 2rem;
    }
}

/* Utilidades */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}
/* Estilos adicionales para las nuevas plantillas */

.book-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-top: 2rem;
}

.book-cover-large img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.book-detail-info h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
    color: #2c3e50;
}

.book-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.book-description p {
    margin-bottom: 1.5rem;
}

.pagination {
    margin-top: 3rem;
    text-align: center;
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 5px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.pagination a:hover {
    background: #e8b86d;
    color: white;
}

.pagination .current {
    background: #2c3e50;
    color: white;
}

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e8b86d;
}

.post-navigation a {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.post-navigation a:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.nav-next {
    text-align: right;
}

.post-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.paypal-button {
    margin: 1rem 0;
}

.contact-intro {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .book-detail-grid {
        grid-template-columns: 1fr;
    }
    
    .post-navigation {
        grid-template-columns: 1fr;
    }
    
    .nav-next {
        text-align: left;
    }
}