@import url('[https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap](https://fonts.googleapis.com/css2?family=Lora:wght@400;700&display=swap)');

.ai-sw-settings { max-width: 1200px; margin: 20px auto; padding: 20px; background: #fff; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); }
.ai-sw-settings-container { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.ai-sw-section { flex: 1 1 400px; min-width: 300px; padding: 20px; background: #f9f9f9; border: 1px solid #ddd; border-radius: 5px; }

/* RECIPE CARD */
.ai-sw-recipe-card {
    max-width: 800px;
    margin: 40px auto;
    background: #fffefa;
    border: 1px solid #eee;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    font-family: 'Lora', serif;
}

.ai-sw-recipe-card .ai-sw-recipe-card-header {
    padding: 20px;
    background: linear-gradient(135deg, #DA003A 0%, #feb47b 100%);
    color: #fff;
    border-bottom: 1px solid #fde8d7;
    text-align: center;
}

.ai-sw-recipe-card .ai-sw-recipe-title {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    line-height: 1.2;
}

/* IMAGE */
.ai-sw-recipe-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 650px;
    object-fit: cover;
    border-radius: 0;
}

/* META */
.ai-sw-recipe-card .ai-sw-recipe-card-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 15px;
    padding: 15px 20px;
    background: #fff;
    border-bottom: 1px solid #eee;
}
.ai-sw-meta-item { display: flex; flex-direction: column; gap: 4px; }
.ai-sw-meta-label { font-weight: 600; color: #555; font-size: 0.85em; text-transform: uppercase; display: flex; align-items: center; gap: 6px; }
.ai-sw-meta-label i { display:flex; align-items:center; color: #DA003A; } /* SVG Color */
.ai-sw-meta-value { color: #333; font-size: 1em; font-weight: 400; }

/* BUTTONS */
.ai-sw-recipe-buttons-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 25px;
    background: #f9f9f9;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}
.ai-sw-recipe-print-btn, .ai-sw-recipe-pin-btn {
    background: #DA003A;
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 180px;
    text-decoration: none;
    line-height: 1;
}
.ai-sw-recipe-print-btn:hover, .ai-sw-recipe-pin-btn:hover { background: #ff6a4f; transform: translateY(-2px); color:#fff; }

/* ICONS inside buttons */
.ai-sw-recipe-print-btn svg, .ai-sw-recipe-pin-btn svg {
    pointer-events: none; /* Prevents clicks on icon from blocking button click */
}

/* CONTENT */
.ai-sw-recipe-description { padding: 20px; background: #fff; border-bottom: 1px solid #eee; }
.ai-sw-recipe-description h3 { color: #DA003A; font-size: 1.4em; margin-top: 0; margin-bottom: 10px; }

.ai-sw-recipe-card-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 25px 20px;
    background: #fff;
}
@media (min-width: 768px) { .ai-sw-recipe-card-content { grid-template-columns: 1fr 1.5fr; } }

.ai-sw-recipe-card h3 { color: #DA003A; font-size: 1.4em; margin-top: 0; margin-bottom: 15px; padding-bottom: 5px; border-bottom: 2px solid #fde8d7; }

/* INGREDIENTS */
.ai-sw-recipe-ingredients ul { list-style: none; padding: 0; margin: 0; }
.ai-sw-recipe-ingredients ul li { position: relative; padding: 8px 0 8px 20px; border-bottom: 1px dashed #eee; color: #444; line-height: 1.6; }
.ai-sw-recipe-ingredients ul li::before { content: ''; position: absolute; left: 0; top: 15px; transform: translateY(-50%); width: 6px; height: 6px; background: #DA003A; border-radius: 50%; }

/* INSTRUCTIONS */
.ai-sw-recipe-instructions ol { list-style: none; padding-left: 0; margin: 0; counter-reset: instruction-counter; }
.ai-sw-recipe-instructions ol li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px dashed #eee; color: #444; line-height: 1.7; counter-increment: instruction-counter; }
.ai-sw-recipe-instructions ol li::before { content: counter(instruction-counter); position: absolute; left: 0; top: 12px; width: 24px; height: 24px; background: #DA003A; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85em; font-weight: 600; line-height: 1; }

/* NUTRITION */
.ai-sw-recipe-nutrition {
    padding: 20px;
    background: #fcfcfc;
    border-radius: 5px;
    margin-top: 20px;
    grid-column: 1 / -1;
    border: 1px solid #eee;
}
.ai-sw-nutrition-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px 30px; }
.ai-sw-nutrition-list li { color: #444; font-size: 0.95em; border-bottom: 1px dotted #e1e1e1; padding-bottom: 5px; display: flex; justify-content: space-between; }
.ai-sw-nutrition-list li strong { color: #333; margin-right: 5px; }

/* JUMP BUTTON */
.jump-box { text-align: center; margin: 30px auto; }
.btn-jump {
    display: inline-block;
    padding: 15px 35px;
    background: #DA003A;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: 0.2s;
}
.btn-jump:hover { background: #ff6a4f; transform: translateY(-2px); color:#fff; }

@media print {
    body * { visibility: hidden; }
    .ai-sw-recipe-card, .ai-sw-recipe-card * { visibility: visible; }
    .ai-sw-recipe-card { 
        position: absolute; 
        left: 0; 
        top: 0; 
        width: 100%; 
        margin: 0; 
        border: none; 
        box-shadow:none; 
    }
    .ai-sw-recipe-buttons-section, .jump-box { display: none !important; }
}