/*
Theme Name: GeneratePress Child - Cozy Craft
Theme URI: https://herbaf.com
Description: Custom high-performance child theme for GeneratePress with cozy pastel craft aesthetic, scallop wave borders, AI prompts box, Pinterest CTA bar, and mobile optimization.
Author: Antigravity
Author URI: https://herbaf.com
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   1. ROOT DESIGN TOKENS & COLOR PALETTE (COZY PASTEL AESTHETIC)
   ========================================================================== */
:root {
    /* Primary Pastel Palette */
    --herbaf-pink-primary: #ef75ac;
    --herbaf-pink-soft: #fbeaed;
    --herbaf-pink-light: #f7e5e8;
    --herbaf-pink-dark: #d95b94;
    
    --herbaf-mint: #a8cec5;
    --herbaf-mint-light: #daefe9;
    --herbaf-mint-dark: #6fa99d;

    --herbaf-lavender: #e0bbe4;
    --herbaf-lavender-light: #f3e5f5;
    
    --herbaf-peach: #f6e6d2;
    --herbaf-orange-accent: #f29147;
    
    /* Neutrals */
    --herbaf-text-dark: #222222;
    --herbaf-text-muted: #555555;
    --herbaf-border: rgba(0, 0, 0, 0.08);
    --herbaf-bg-card: #ffffff;
    
    /* Typography */
    --herbaf-font-body: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --herbaf-font-accent: 'Pacifico', cursive;
    --herbaf-font-heading: 'Poppins', sans-serif;

    /* Shadows & Radii */
    --herbaf-radius-sm: 8px;
    --herbaf-radius-md: 16px;
    --herbaf-radius-lg: 24px;
    --herbaf-radius-full: 9999px;
    --herbaf-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --herbaf-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --herbaf-shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   2. GLOBAL BASE STYLES & TYPOGRAPHY
   ========================================================================== */
body {
    font-family: var(--herbaf-font-body);
    color: var(--herbaf-text-dark);
    background-color: #faf8f7;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--herbaf-font-heading);
    font-weight: 700;
    color: var(--herbaf-text-dark);
    letter-spacing: -0.02em;
}

.font-accent, .accent-heading {
    font-family: var(--herbaf-font-accent) !important;
    font-weight: 400;
}

/* ==========================================================================
   3. SCALLOPED WAVY BORDER DIVIDERS
   ========================================================================== */
.scallop-divider-bottom {
    position: relative;
    background-color: var(--herbaf-pink-soft);
    padding-bottom: 2.5rem;
}

.scallop-divider-bottom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background: radial-gradient(circle at 10px -4px, transparent 12px, #faf8f7 13px);
    background-size: 20px 20px;
    background-repeat: repeat-x;
    z-index: 2;
}

/* ==========================================================================
   4. TOP ANNOUNCEMENT BAR & NAVIGATION
   ========================================================================== */
.herbaf-topbar {
    background-color: var(--herbaf-pink-light);
    border-bottom: 1px solid rgba(239, 117, 172, 0.15);
    padding: 8px 16px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.herbaf-topbar a {
    color: var(--herbaf-text-dark);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.herbaf-topbar a:hover {
    color: var(--herbaf-pink-primary);
}

.herbaf-category-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    background: #ffffff;
    border-bottom: 1px solid var(--herbaf-border);
}

.herbaf-cat-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--herbaf-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.herbaf-cat-pill.cat-animals { background: var(--herbaf-mint-light); color: #2d665a; }
.herbaf-cat-pill.cat-mini { background: var(--herbaf-pink-light); color: #9c2e5b; }
.herbaf-cat-pill.cat-dolls { background: var(--herbaf-lavender-light); color: #6a2c70; }
.herbaf-cat-pill.cat-fantasy { background: var(--herbaf-peach); color: #8d4f19; }
.herbaf-cat-pill.cat-seasonal { background: #ffeaa7; color: #8c6800; }

.herbaf-cat-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--herbaf-shadow-sm);
}

/* ==========================================================================
   5. SINGLE POST HERO & CONTENT STYLING
   ========================================================================== */
.single-post .entry-header {
    background-color: var(--herbaf-pink-soft);
    padding: 3rem 1.5rem 3.5rem;
    text-align: center;
    position: relative;
    margin-bottom: 2rem;
}

.single-post .entry-header::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 18px;
    background: radial-gradient(circle at 10px -4px, transparent 12px, #faf8f7 13px);
    background-size: 20px 20px;
    background-repeat: repeat-x;
}

.herbaf-breadcrumbs {
    font-size: 0.85rem;
    color: var(--herbaf-text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.herbaf-breadcrumbs a {
    color: var(--herbaf-text-muted);
    text-decoration: none;
}

.herbaf-breadcrumbs a:hover {
    color: var(--herbaf-pink-primary);
}

.single-post .entry-title {
    font-size: 2.25rem;
    line-height: 1.25;
    color: #1e1e1e;
    max-width: 800px;
    margin: 0 auto 1.25rem;
}

.herbaf-post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--herbaf-text-muted);
}

.herbaf-affiliate-disclosure {
    font-size: 0.775rem;
    color: #888888;
    margin-top: 1rem;
    font-style: italic;
}

.single .entry-content {
    max-width: 780px;
    margin: 0 auto;
    font-size: 1.05rem;
    line-height: 1.8;
}

.single .entry-content img {
    border-radius: var(--herbaf-radius-md);
    box-shadow: var(--herbaf-shadow-sm);
    transition: transform 0.25s ease;
}

.single .entry-content img:hover {
    transform: scale(1.01);
}

/* ==========================================================================
   6. AI ENGAGEMENT PROMPTS BOX
   ========================================================================== */
.herbaf-ai-box {
    background: #ffffff;
    border: 1.5px solid #f29147;
    border-radius: 16px;
    padding: 14px 16px;
    margin: 1.75rem 0;
    box-shadow: 0 4px 16px rgba(242, 145, 71, 0.08);
}

.herbaf-ai-top-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

.herbaf-ai-btn {
    background-color: #a8cec5;
    color: #174239;
    border: 1px solid rgba(23, 66, 57, 0.15);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}

.herbaf-ai-btn:hover {
    background-color: #85c7c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.herbaf-ai-bottom-row .herbaf-ai-btn {
    width: 100%;
    background-color: #daefe9;
    color: #1a4d42;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 0.925rem;
}

.herbaf-ai-bottom-row .herbaf-ai-btn:hover {
    background-color: #c4e6dd;
}

/* ==========================================================================
   7. PINTEREST SAVE PIN CTA BANNER
   ========================================================================== */
.herbaf-pin-bar-wrapper {
    position: relative;
    margin: 2rem 0 2.5rem;
}

.herbaf-pin-bar {
    background: linear-gradient(135deg, #c8232c 0%, #b81f27 100%);
    color: #ffffff;
    border-radius: 9999px;
    padding: 8px 10px 8px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(200, 35, 44, 0.25);
}

.pin-bar-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    font-family: 'Poppins', sans-serif;
}

.pin-bar-btn {
    background-color: #ffffff;
    color: #c8232c;
    border-radius: 9999px;
    padding: 8px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    font-family: 'Pacifico', cursive;
}

.pin-bar-btn:hover {
    background-color: #fce8ea;
    transform: scale(1.04);
}

.herbaf-pin-arrow {
    position: absolute;
    right: 32px;
    bottom: -32px;
    pointer-events: none;
    transform: rotate(5deg);
}

/* ==========================================================================
   8. PATTERN SUMMARY CARD
   ========================================================================== */
.herbaf-pattern-summary-card {
    background: #ffffff;
    border: 2px solid var(--herbaf-pink-soft, #fbeaed);
    border-radius: 18px;
    padding: 20px 24px;
    margin: 2.25rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.pattern-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px dashed #f7e5e8;
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.pattern-card-title {
    margin: 0;
    font-size: 1.35rem;
    color: #222222;
}

.pattern-difficulty-badge {
    background-color: #daefe9;
    color: #2d665a;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pattern-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
}

.pattern-info-item {
    background: #faf8f7;
    padding: 10px 14px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-label {
    font-size: 0.775rem;
    color: #777777;
    font-weight: 500;
}

.info-value {
    font-size: 0.95rem;
    color: #222222;
    font-weight: 700;
}

/* ==========================================================================
   9. RESPONSIVE ADJUSTMENTS (MOBILE FIRST)
   ========================================================================== */
@media (max-width: 768px) {
    .single-post .entry-header {
        padding: 2rem 1rem 2.5rem;
    }
    .single-post .entry-title {
        font-size: 1.65rem;
    }
    .herbaf-post-meta {
        flex-direction: column;
        gap: 6px;
    }
    .herbaf-category-bar {
        overflow-x: auto;
        justify-content: flex-start;
        padding: 8px 12px;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    .herbaf-ai-top-row {
        grid-template-columns: 1fr;
    }
    .herbaf-pin-bar {
        padding: 8px 12px 8px 16px;
    }
    .pin-bar-text {
        font-size: 0.95rem;
    }
    .pin-bar-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
    }
    .herbaf-pin-arrow {
        right: 16px;
        bottom: -28px;
        transform: scale(0.85);
    }
    .pattern-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
