/* =========================================
   HOMEPAGE: HERO SECTION
   ========================================= */
/* Compact Spacing for Home Page Sections */
.hero-grid-section,
.latest-recipes-section,
.newsletter-section,
.my-favorites-section {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    margin-bottom: 0 !important;
}

/* Desktop Grid Styles */
.hero-grid {
    display: block !important;
    column-count: 4 !important;
    column-gap: 20px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
}

.latest-grid {
    margin-bottom: 20px !important;
}

/* Mobile Interaction Fixes */
@media (max-width: 768px) {
    .hero-grid {
        column-count: 1 !important;
        /* Force single column on mobile */
        padding: 10px !important;
    }

    .hero-item,
    .pinterest-card {
        display: inline-block !important;
        /* Prevents column breaks splitting cards */
        width: 100% !important;
        margin-bottom: 25px !important;
        break-inside: avoid !important;
    }

    .pin-item-global {
        width: 100% !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
    }

    /* Make text readable on mobile */
    .pin-card-title {
        font-size: 18px !important;
    }

    .hero-grid-section {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* =========================================
   HOMEPAGE: ABOUT ME SECTION
   ========================================= */
.about-me-section {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    padding: 40px 0;
    color: white;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.about-me-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.about-me-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    padding: 50px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.about-me-image {
    flex: 0 0 300px;
    position: relative;
}

.about-me-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.about-me-content {
    flex: 1;
}

.about-me-subtitle {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 13px;
    font-weight: 700;
    color: #C4A86C;
    margin-bottom: 10px;
    display: block;
}

.about-me-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px;
    line-height: 1.1;
    color: #fff;
}

.about-me-text {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #d1d5db;
    margin-bottom: 30px;
    max-width: 600px;
}

.chef-specs {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 11px;
    text-transform: uppercase;
    color: #9ca3af;
    letter-spacing: 0.5px;
}

.spec-val {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.about-socials {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
    background: #C4A86C;
    color: #fff;
    transform: translateY(-3px);
    border-color: #C4A86C;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.about-me-btn {
    display: inline-block;
    background: #C4A86C;
    color: #fff;
    padding: 16px 36px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 14px;
}

.about-me-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    background: #b09355;
}

@media (max-width: 900px) {
    .about-me-wrapper {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 40px;
    }

    .about-me-text {
        margin-left: auto;
        margin-right: auto;
    }

    .about-socials {
        justify-content: center;
    }

    .chef-specs {
        justify-content: center;
    }
}

/* =========================================
   SINGLE POST: CONTENT & RECIPE CARD
   ========================================= */

/* Action Buttons */
.meta-actions-group {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    /* Allow wrapping on very small screens */
}

.meta-action-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #5f6368;
    text-decoration: none;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.meta-action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #fff;
    border-color: #d1d5db;
}

/* SPECIFIC COLORS */
.meta-action-btn.save-recipe-btn:hover {
    color: #ff385c;
}

.meta-action-btn.pin-it {
    color: #E60023;
}

/* Pinterest red by default */
.meta-action-btn.pin-it:hover {
    background: #E60023;
    color: #fff;
    border-color: #E60023;
}

.meta-action-btn.copy-link:hover {
    color: #3b82f6;
}

.meta-action-btn svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Badges */
.meta-action-btn .btn-save-count,
.meta-action-btn .btn-count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #E60023;
    color: white;
    font-size: 10px;
    font-weight: 800;
    height: 18px;
    min-width: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    padding: 0 5px;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.meta-action-btn.is-saved {
    color: #ff385c;
    border-color: #ff385c;
}

.meta-action-btn.is-saved svg {
    fill: #ff385c;
}

/* Responsive Content Styles */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.entry-content p {
    font-size: 1.15rem;
    /* Slightly larger for readability */
    line-height: 1.8;
    margin-bottom: 24px;
    color: #2d3436;
    font-weight: 400;
}

/* --- MODERN POST THUMBNAIL --- */
.post-thumbnail {
    margin-bottom: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    /* Soft Premium Shadow */
    position: relative;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.post-thumbnail:hover img {
    transform: scale(1.02);
    /* Subtle zoom effect */
}

/* --- MODERN RECIPE CARD DESIGN (My Custom CSS) --- */
.recipe-essentials-section {
    margin-top: 50px;
    padding-top: 40px;
    position: relative;
}

/* 1. Highlights Grid */
.recipe-highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.highlight-item {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-5px);
    border-color: #C4A86C;
    /* Brand Gold Accent */
}

.highlight-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}

.highlight-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.highlight-label {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* 2. Ingredients List (Paper Card Look) */
.recipe-ingredients-wrap {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* Decorative top accent */
.recipe-ingredients-wrap::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #C4A86C, #967834);
}

.ingredients-header {
    margin-top: 0;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.8rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.5px;
}

.ingredients-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.ingredients-list li {
    padding: 16px 0;
    border-bottom: 1px dashed #e0e0e0;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 1.1rem;
    color: #4b5563;
    transition: background 0.2s;
}

.ingredients-list li:last-child {
    border-bottom: none;
}

.ingredients-list li:hover {
    background: #fafafa;
    padding-left: 10px;
    /* Slight nudge on hover */
    border-radius: 8px;
}

.check-icon {
    color: #C4A86C;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .entry-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 20px;
    }

    .entry-content p {
        font-size: 1.05rem !important;
        line-height: 1.7 !important;
    }

    /* Full width card on mobile for impact */
    .post-thumbnail {
        border-radius: 12px;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
        margin-bottom: 30px;
        box-shadow: none;
        /* Cleaner on mobile */
    }

    .post-thumbnail img {
        border-radius: 0;
    }

    /* Stack Highlights Grid */
    .recipe-highlights-grid {
        grid-template-columns: 1fr;
        /* Stack vertically for clear reading */
        gap: 15px;
    }

    .highlight-item {
        flex-direction: row;
        /* Horizontal layout on mobile saves space */
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 15px 25px;
    }

    .highlight-icon {
        font-size: 24px;
        margin-bottom: 0;
        margin-right: 15px;
    }

    .highlight-text-wrapper {
        text-align: right;
    }

    .recipe-ingredients-wrap {
        padding: 25px;
    }

    .ingredients-header {
        font-size: 1.5rem;
    }

    .ingredients-list li {
        padding: 12px 0;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .meta-info-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .meta-divider {
        display: none;
    }
}

/* =========================================
   THIRD PARTY PLUGIN: CARTE RECIPIC OVERRIDES
   ========================================= */

/* General Card Improvements (Global) */
.cr-card,
.cr-card * {
    box-sizing: border-box !important;
}

.cr-card {
    border: none !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden !important;
    border-radius: 20px !important;
    font-family: var(--font-body, 'Inter', sans-serif) !important;
    margin: 40px auto !important;
    max-width: 100% !important;
    width: 100% !important;
}

.cr-header {
    background: linear-gradient(to bottom, #ffffff, #f9fafb) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    display: flex !important;
}

.cr-title {
    font-family: var(--font-heading, 'Playfair Display', serif) !important;
    color: #1a1a2e !important;
}

/* Action Buttons (Print/Pin) */
.cr-btn {
    border-radius: 50px !important;
    padding: 12px 28px !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.cr-btn-print {
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    color: #374151 !important;
    display: inline-flex !important;
}

.cr-btn-print:hover {
    background: #f3f4f6 !important;
    transform: translateY(-2px) !important;
}

.cr-btn-pin {
    box-shadow: 0 4px 15px rgba(230, 0, 35, 0.3) !important;
    display: inline-flex !important;
}

/* Ingredients Checkboxes */
.cr-ing-check {
    border-color: #C4A86C !important;
}

.cr-ingredient-item.checked .cr-ing-check {
    background: #C4A86C !important;
    border-color: #C4A86C !important;
}

/* Mobile Specific Overrides */
@media (max-width: 768px) {

    /* Restore Card Look on Mobile */
    .cr-card {
        margin: 20px 0 !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid rgba(0, 0, 0, 0.03) !important;
    }

    /* Better Header Layout */
    .cr-header {
        flex-direction: column !important;
        /* Stack Vertical */
        padding: 25px 20px !important;
        gap: 20px !important;
        text-align: center !important;
    }

    .cr-header-content {
        width: 100% !important;
        display: block !important;
    }

    /* Image adjustments */
    .cr-img-container {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin-bottom: 20px !important;
        aspect-ratio: 4/3 !important;
    }

    .cr-header-img {
        margin-bottom: 0 !important;
        border-radius: 12px !important;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1) !important;
        width: 100% !important;
        display: block !important;
    }

    /* Typography */
    .cr-title {
        font-size: 1.8rem !important;
        margin-bottom: 12px !important;
        line-height: 1.2 !important;
        display: block !important;
    }

    .cr-desc {
        font-size: 1rem !important;
        line-height: 1.6 !important;
        margin-bottom: 25px !important;
        color: #4b5563 !important;
        display: block !important;
    }

    /* Buttons Layout: Side by Side Pills */
    .cr-action-btns {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 15px !important;
        width: 100% !important;
        justify-content: center !important;
    }

    .cr-btn {
        width: auto !important;
        flex: 1 !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        margin: 0 !important;
    }

    /* Metrics Bar - Grid for better fit */
    .cr-time-row {
        padding: 20px !important;
        gap: 15px !important;
        display: flex !important;
        flex-wrap: wrap !important;
        /* Allow wrap if needed */
        justify-content: center !important;
        background: #fdfdfd !important;
    }

    .cr-time-item {
        border-bottom: none !important;
        border-right: 1px solid #eee !important;
        padding: 0 10px !important;
        flex: 1 !important;
        min-width: 80px !important;
    }

    .cr-time-item:last-child {
        border-right: none !important;
    }

    .cr-time-val {
        font-size: 1.1rem !important;
    }

    /* Main Content Padding */
    .cr-main-content {
        padding: 30px 20px !important;
    }

    /* Ingredients List */
    .cr-ingredient-item {
        padding: 14px 0 !important;
        font-size: 1.05rem !important;
    }
}