/*
 * Pro Recipe Card Styles V3.0
 */
 :root {
    --prc-primary-color: #5D8736;
    --prc-text-dark: #2c3e50;
    --prc-text-light: #4a5568;
    --prc-bg-light: #f8f9fa;
    --prc-border-light: rgba(93, 135, 54, 0.1);
}

/* Main Card Container */
.prc-recipe-card {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: white;
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 900px;
    margin: 3rem auto;
    border: 1px solid var(--prc-border-light);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    animation: prcFadeInUp 0.8s forwards;
}
.prc-recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.15);
}

@keyframes prcFadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Image */
.prc-recipe-image {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.prc-image-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 50%);
}

/* Content */
.prc-recipe-content { padding: 2.5rem; }
.prc-recipe-title {
    font-size: 2.4rem; font-weight: 700; color: var(--prc-text-dark);
    margin-bottom: 0.5rem; line-height: 1.2; text-align: center;
}
.prc-recipe-description {
    font-size: 1.1rem; color: var(--prc-text-light); text-align: center;
    line-height: 1.6; margin: 0 auto 2rem auto; max-width: 85%;
}

/* Meta Section (Prep, Cook, etc.) */
.prc-recipe-meta {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem; background: linear-gradient(135deg, var(--prc-bg-light) 0%, #e9ecef 100%);
    padding: 1.5rem; border-radius: 16px; margin-bottom: 2.5rem; border: 1px solid var(--prc-border-light);
}
.prc-meta-item { text-align: center; }
.prc-meta-label {
    font-weight: 700; color: var(--prc-primary-color); font-size: 0.9rem;
    text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.prc-meta-label::before { font-size: 1.2rem; }
.prc-meta-label[data-icon="prep"]::before { content: '⏱️'; }
.prc-meta-label[data-icon="cook"]::before { content: '🔥'; }
.prc-meta-label[data-icon="total"]::before { content: '⏰'; }
.prc-meta-label[data-icon="yield"]::before { content: '👥'; }
.prc-meta-label[data-icon="calories"]::before { content: '⚡'; }
.prc-meta-value { font-size: 1.2rem; color: var(--prc-text-dark); font-weight: 600; }

/* Main Content Grid (Ingredients & Instructions) */
.prc-content-grid {
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 2.5rem; margin-bottom: 2.5rem;
}
.prc-ingredients h4, .prc-instructions h4 {
    font-size: 1.5rem; color: var(--prc-primary-color); margin-bottom: 1.5rem;
    font-weight: 700; padding-bottom: 0.8rem; border-bottom: 2px solid var(--prc-primary-color);
    display: flex; align-items: center; gap: 0.5rem;
}

/* Ingredients List */
.prc-ingredients ul { list-style: none; padding: 0; margin: 0; }
.prc-ingredients li {
    padding: 0.7rem 0 0.7rem 1.8rem; color: var(--prc-text-dark); position: relative;
    font-size: 1rem; border-bottom: 1px solid #f0f0f0; transition: all 0.2s ease;
}
.prc-ingredients li:last-child { border-bottom: none; }
.prc-ingredients li:hover { background: rgba(93, 135, 54, 0.05); }
.prc-ingredients li::before {
    content: '✓'; color: var(--prc-primary-color); font-weight: bold; position: absolute;
    left: 0; top: 50%; transform: translateY(-50%); font-size: 1.1rem;
}

/* Instructions List */
.prc-instructions ol { list-style: none; padding: 0; margin: 0; }
.prc-instruction-step {
    margin-bottom: 1.5rem; padding: 1rem; background: #fdfdfd; border-radius: 10px;
    border-left: 4px solid var(--prc-primary-color); box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.prc-step-number { font-weight: 700; color: var(--prc-primary-color); font-size: 1rem; margin-bottom: 0.5rem; }
.prc-step-text { color: var(--prc-text-dark); font-size: 1rem; line-height: 1.6; }

/* Action Buttons Section */
.prc-actions {
    border-top: 2px solid #e9ecef; padding-top: 2rem; display: flex;
    flex-direction: column; /* DESKTOP: Actions are in a column */
    align-items: flex-start; gap: 2rem;
}
.prc-share-container { width: 100%; }
.prc-share-title {
    font-size: 1.2rem; font-weight: 700; color: var(--prc-text-dark); margin-bottom: 1rem;
}
.prc-social-share {
    display: flex;
    flex-direction: column; /* DESKTOP: Social buttons are in a column */
    gap: 0.8rem;
}
.prc-social-btn, .prc-print-btn {
    padding: 0.8rem 1.5rem; border-radius: 8px; border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 0.75rem;
    font-size: 1rem; font-weight: 600; text-decoration: none;
    transition: all 0.2s ease;
}
.prc-social-btn i { font-size: 1.2rem; }
.prc-social-btn:hover, .prc-print-btn:hover { transform: scale(1.03); }

/* Button specific colors */
.prc-social-btn.pinterest { background: #E60023; color: white; }
.prc-social-btn.facebook { background: #1877F2; color: white; }
.prc-social-btn.whatsapp { background: #25D366; color: white; }
.prc-print-btn {
    background: var(--prc-text-dark); color: white; width: 100%;
}
.prc-print-btn:hover { background: black; }

/* Jump to Recipe Button */
#prc-jump-button {
    position: fixed; bottom: 20px; right: 20px; background: var(--prc-primary-color);
    color: white; border: none; border-radius: 50px; padding: 12px 20px;
    font-size: 1rem; font-weight: 600; cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: none; z-index: 1000;
}

/* MOBILE RESPONSIVE STYLES */
@media (max-width: 768px) {
    .prc-recipe-content {
        padding: 1.5rem;
    }

    .prc-recipe-image {
        height: 220px;
    }

    .prc-recipe-title {
        font-size: 1.8rem;
    }

    .prc-recipe-description {
        font-size: 1rem;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .prc-recipe-meta {
        grid-template-columns: 1fr 1fr;
    }

    .prc-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .prc-actions {
        flex-direction: column; /* same as desktop */
        align-items: flex-start;
    }

    .prc-share-container {
        width: 100%; /* match desktop */
    }

    .prc-share-title {
        display: block; /* show title */
    }

    .prc-social-share {
        flex-direction: column; /* same as desktop */
    }

    .prc-social-btn span {
        display: inline; /* show button text */
    }

    .prc-social-btn {
        width: 100%; /* full width */
        height: auto; /* auto height */
        border-radius: 8px; /* rectangular shape */
    }

    .prc-print-btn {
        width: 100%; /* full width like desktop */
    }

    .prc-print-btn span {
        display: inline; /* show print text */
    }
}






/* PRINT STYLES */
@media print {
    body * { visibility: hidden; }
    #prc-recipe-card, #prc-recipe-card * { visibility: visible; }
    #prc-recipe-card {
        position: absolute; left: 0; top: 0; width: 100%;
        max-width: 100%; box-shadow: none; border: none; margin: 0;
    }
    .prc-recipe-image, .prc-actions, #prc-jump-button { display: none !important; }
}