/* Recipe Card Styles */

:root {
    --color-recipe-primary: #e67e22;
    --color-recipe-secondary: #f39c12;
    --color-recipe-dark: #d35400;
    --color-recipe-light: #fdf2e9;
}

/* Recipe Mode Button */
.mode-btn.mode-recipe.active {
    background-color: var(--color-recipe-dark);
}

/* Recipe Content */
.recipe-preview-panel {
    background: var(--color-surface);
}

/* Recipe Card in Preview */
.recipe-card {
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 16px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.4;
    max-width: 384px;
    margin: 0 auto;
}

.recipe-title {
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    margin: 0 0 8px 0;
    color: var(--color-recipe-dark);
}

.recipe-subtitle {
    font-size: 14px;
    font-weight: bold;
    margin: 12px 0 6px 0;
    color: var(--color-recipe-primary);
}

.recipe-divider {
    text-align: center;
    color: var(--color-recipe-secondary);
    margin: 8px 0;
    overflow: hidden;
}

.recipe-text {
    margin: 4px 0;
    font-size: 11px;
}

.recipe-ingredient {
    margin: 3px 0 3px 8px;
    font-size: 11px;
}

.recipe-step {
    margin: 4px 0;
    font-size: 11px;
}

.recipe-footer {
    text-align: center;
    font-size: 10px;
    color: #888;
    margin-top: 12px;
}

/* Recipe Summary */
.recipe-summary {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    background: var(--color-surface);
    border-radius: 4px;
}

.recipe-summary .summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
}

.recipe-summary .summary-label {
    color: var(--color-text-secondary);
}

.recipe-summary .summary-value {
    font-weight: 600;
    color: var(--color-recipe-primary);
}

/* Recipe Config Panel */
.recipe-config-panel .input-group {
    margin-bottom: 12px;
}

.recipe-ingredients-list,
.recipe-instructions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
    padding: 8px;
    background: var(--color-surface);
    border-radius: 4px;
    margin-bottom: 8px;
}

.recipe-ingredient-item,
.recipe-instruction-item {
    display: flex;
    gap: 8px;
    align-items: center;
}

.recipe-ingredient-item input,
.recipe-instruction-item textarea {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    font-size: 12px;
}

.recipe-ingredient-item .remove-btn,
.recipe-instruction-item .remove-btn {
    padding: 4px 8px;
    background: var(--color-error);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.recipe-ingredient-item .remove-btn:hover,
.recipe-instruction-item .remove-btn:hover {
    background: #c0392b;
}

/* Recipe Category Colors */
.recipe-category-breakfast { border-left: 3px solid #f39c12; }
.recipe-category-lunch { border-left: 3px solid #e67e22; }
.recipe-category-dinner { border-left: 3px solid #d35400; }
.recipe-category-dessert { border-left: 3px solid #9b59b6; }
.recipe-category-snack { border-left: 3px solid #27ae60; }

/* Time badges */
.recipe-time-badge {
    display: inline-block;
    padding: 2px 6px;
    background: var(--color-recipe-light);
    color: var(--color-recipe-dark);
    border-radius: 4px;
    font-size: 10px;
    margin-right: 4px;
}

/* Responsive */
@media (max-width: 640px) {
    .recipe-card {
        font-size: 10px;
        padding: 12px;
    }
    
    .recipe-title {
        font-size: 14px;
    }
    
    .recipe-subtitle {
        font-size: 12px;
    }
}