/* ============================================
   RECIPE BLOCKS - ADMIN STYLES
   Minimal & Clean Design
============================================ */

/* --------------------------------------------
   INGREDIENTS BLOCK
-------------------------------------------- */

.cfy-ingredients-editor {
    background: #f8f6f3;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
}

.cfy-ingredients-editor .cfy-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cfy-ingredients-editor .cfy-editor-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: #1a1a1a;
}

.cfy-ingredients-editor .cfy-item-count {
    background: #e67e22;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cfy-ingredients-editor .cfy-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #e8e0d8;
}

.cfy-ingredients-editor .cfy-row input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.cfy-ingredients-editor .cfy-qty-input { width: 70px; }
.cfy-ingredients-editor .cfy-unit-input { width: 90px; }
.cfy-ingredients-editor .cfy-name-input { flex: 1; min-width: 150px; }

.cfy-ingredients-editor .cfy-add-btn {
    background: #e67e22 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    margin-top: 10px !important;
    cursor: pointer !important;
}

.cfy-ingredients-editor .cfy-add-btn:hover {
    background: #d35400 !important;
}

.cfy-ingredients-editor .cfy-remove-btn {
    background: #e74c3c !important;
    color: #fff !important;
    border: none !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

.cfy-ingredients-editor .cfy-remove-btn:hover {
    background: #c0392b !important;
}

/* --------------------------------------------
   NUTRITION BLOCK
-------------------------------------------- */

.cfy-nutrition-editor {
    background: #f8f6f3;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
}

.cfy-nutrition-editor .cfy-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cfy-nutrition-editor .cfy-editor-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: #1a1a1a;
}

.cfy-nutrition-editor .cfy-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    padding: 8px;
    background: #fff;
    border-radius: 6px;
    align-items: center;
    flex-wrap: wrap;
    border: 1px solid #e8e0d8;
}

.cfy-nutrition-editor .cfy-row input {
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.cfy-nutrition-editor .cfy-icon-input { width: 50px; }
.cfy-nutrition-editor .cfy-value-input { width: 100px; }
.cfy-nutrition-editor .cfy-label-input { flex: 1; min-width: 100px; }

.cfy-nutrition-editor .cfy-add-btn {
    background: #27ae60 !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    margin-top: 10px !important;
    cursor: pointer !important;
}

.cfy-nutrition-editor .cfy-add-btn:hover {
    background: #1e8449 !important;
}

.cfy-nutrition-editor .cfy-remove-btn {
    background: #e74c3c !important;
    color: #fff !important;
    border: none !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
}

/* --------------------------------------------
   FAQ BLOCK
-------------------------------------------- */

.cfy-faq-editor {
    background: #f8f6f3;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e8e0d8;
}

.cfy-faq-editor .cfy-editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cfy-faq-editor .cfy-editor-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    color: #1a1a1a;
}

.cfy-faq-editor .cfy-item-count {
    background: #3498db;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.cfy-faq-editor .cfy-faq-row {
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e8e0d8;
}

.cfy-faq-editor .cfy-faq-row input,
.cfy-faq-editor .cfy-faq-row textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
}

.cfy-faq-editor .cfy-faq-row textarea {
    min-height: 80px;
    resize: vertical;
}

.cfy-faq-editor .cfy-question-input {
    margin-bottom: 8px;
}

.cfy-faq-editor .cfy-add-btn {
    background: #3498db !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 20px !important;
    border-radius: 4px !important;
    margin-top: 10px !important;
    cursor: pointer !important;
}

.cfy-faq-editor .cfy-add-btn:hover {
    background: #2980b9 !important;
}

.cfy-faq-editor .cfy-remove-btn {
    background: #e74c3c !important;
    color: #fff !important;
    border: none !important;
    padding: 4px 10px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    margin-top: 6px !important;
}

/* --------------------------------------------
   DARK MODE SUPPORT
-------------------------------------------- */

body.dark .cfy-ingredients-editor,
body.dark .cfy-nutrition-editor,
body.dark .cfy-faq-editor {
    background: #2a2a2a;
    border-color: #444;
}

body.dark .cfy-ingredients-editor .cfy-row,
body.dark .cfy-nutrition-editor .cfy-row,
body.dark .cfy-faq-editor .cfy-faq-row {
    background: #1e1e1e;
    border-color: #444;
}

body.dark .cfy-ingredients-editor .cfy-row input,
body.dark .cfy-nutrition-editor .cfy-row input,
body.dark .cfy-faq-editor .cfy-faq-row input,
body.dark .cfy-faq-editor .cfy-faq-row textarea {
    background: #2a2a2a;
    border-color: #555;
    color: #fff;
}

body.dark .cfy-ingredients-editor .cfy-editor-header h3,
body.dark .cfy-nutrition-editor .cfy-editor-header h3,
body.dark .cfy-faq-editor .cfy-editor-header h3 {
    color: #fff;
}

body.dark .cfy-ingredients-editor .cfy-item-count {
    background: #e67e22;
}

body.dark .cfy-faq-editor .cfy-item-count {
    background: #3498db;
}