/* Finca Montezuma - Modern Blog and Editorial Style Guide */

:root {
    --blog-cream: #FDFBF7;
    --blog-sand: #F6F4F1;
    --blog-teal: #2A9D8F;
    --blog-orange: #CD6821;
    --blog-text: #4A403A;
    --blog-dark: #1A1A1A;
    --blog-gold: #E9C46A;
    --blog-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --blog-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);
    --organic-radius: 20px;
}

/* --- Base Body Override for Blog Pages --- */
body.blog-modern-theme {
    background-color: var(--blog-cream);
    color: var(--blog-text);
    font-family: 'Bitter', serif;
    line-height: 1.8;
}

/* --- Article Hero Section --- */
.article-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 4rem 2rem;
    margin-bottom: 4rem;
}

.article-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(11, 61, 51, 0.75));
    z-index: 1;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.article-category {
    font-family: 'Lato', 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--blog-gold);
    display: block;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.article-hero-title {
    font-family: 'Playfair Display', 'Bitter', serif;
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.article-meta {
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* --- Core Article Layout Container --- */
.article-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

@media (min-width: 992px) {
    .article-container {
        grid-template-columns: 8fr 4fr;
    }
}

.article-content {
    font-size: 1.15rem;
    color: var(--blog-text);
}

.article-content p {
    margin-bottom: 2rem;
}

/* Elegant Typography Accents */
.article-content p:first-of-type::first-letter {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    float: left;
    line-height: 0.8;
    padding-right: 12px;
    padding-top: 4px;
    color: var(--blog-orange);
    font-weight: bold;
}

.article-content blockquote {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.7;
    color: var(--blog-orange);
    border-left: 4px solid var(--blog-teal);
    padding: 1rem 1.5rem 1rem 2rem;
    margin: 3rem 0;
    background: rgba(42, 157, 143, 0.03);
    border-radius: 0 16px 16px 0;
}

.article-content blockquote::before {
    content: "“";
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: rgba(42, 157, 143, 0.15);
    font-family: serif;
}

/* --- Premium Recipe & Highlight Widgets (Sidebar) --- */
.blog-sidebar {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.sidebar-widget {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--organic-radius);
    padding: 2.5rem 2rem;
    box-shadow: var(--blog-shadow);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--blog-shadow-hover);
    transform: translateY(-4px);
}

.sidebar-widget-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--blog-orange);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(205, 104, 33, 0.1);
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Recipe Details Grid */
.recipe-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
    background: var(--blog-sand);
    padding: 1rem;
    border-radius: 12px;
}

.recipe-meta-item {
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: var(--blog-text);
}

.recipe-meta-item strong {
    font-family: 'Lato', sans-serif;
    color: var(--blog-orange);
    font-size: 1.05rem;
}

.recipe-section-heading {
    font-family: 'Lato', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--blog-teal);
    margin-bottom: 1rem;
}

.recipe-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.recipe-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.recipe-list li::before {
    content: "•";
    position: absolute;
    left: 0.25rem;
    color: var(--blog-teal);
    font-weight: bold;
    font-size: 1.2rem;
}

/* --- Blog Main Page Layout (`blog.php`) --- */
.blog-hero {
    background: linear-gradient(rgba(11, 61, 51, 0.8), rgba(5, 20, 13, 0.9)), url('../assets/home-images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    padding: 4rem 2rem;
}

.blog-hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
}

.blog-hero-content p {
    font-family: 'Bitter', serif;
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.85);
}

/* Blog Posts Grid System */
.blog-grid-section {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .blog-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Modern Post Cards */
.blog-card {
    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: var(--organic-radius);
    overflow: hidden;
    box-shadow: var(--blog-shadow);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    box-shadow: var(--blog-shadow-hover);
    transform: translateY(-8px);
}

.blog-card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.blog-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.blog-card-content {
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-category {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--blog-teal);
    margin-bottom: 0.75rem;
}

.blog-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--blog-text);
    line-height: 1.3;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
    color: var(--blog-orange);
}

.blog-card-excerpt {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(74, 64, 58, 0.85);
    margin-bottom: 2rem;
    flex-grow: 1;
}

/* Button Micro-Animations (Rule 11 Matching) */
.blog-card-btn {
    align-self: flex-start;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--blog-orange);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.blog-card-btn svg {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card-btn:hover {
    color: var(--blog-teal);
}

/* Sliding Forward Action Arrow (Rule 11) */
.blog-card-btn:hover svg {
    transform: translateX(5px);
}

/* --- Pagination Elements --- */
.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5rem;
}

.pagination-btn {
    min-width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #ffffff;
    color: var(--blog-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.pagination-btn:hover {
    background: var(--blog-teal);
    color: #ffffff;
    border-color: var(--blog-teal);
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: var(--blog-orange);
    color: #ffffff;
    border-color: var(--blog-orange);
}

/* --- Search Bar on Blog Page --- */
.blog-search-container {
    max-width: 600px;
    margin: -24px auto 0 auto;
    position: relative;
    z-index: 10;
    padding: 0 2rem;
}

.blog-search-form {
    display: flex;
    background: #ffffff;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.04);
}

.blog-search-input {
    flex-grow: 1;
    border: none;
    padding: 1.2rem 1.8rem;
    font-size: 1rem;
    font-family: 'Bitter', serif;
    color: var(--blog-text);
    outline: none;
}

.blog-search-input::placeholder {
    color: rgba(74, 64, 58, 0.5);
}

.blog-search-submit {
    background: var(--blog-teal);
    color: #ffffff;
    border: none;
    padding: 0 2rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.blog-search-submit:hover {
    background: var(--blog-orange);
}
