/* ===== AI RECIPE GENERATOR CSS ===== */

/* Disclaimer */
.rec-disclaimer {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fffbeb; border: 2px solid #fde68a;
    border-radius: 14px; padding: 14px 18px;
    margin-bottom: 22px; font-size: 13px; color: #78350f; line-height: 1.7;
}
.rec-disc-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.rec-disclaimer strong { color: #92400e; }

/* Layout */
.rec-wrapper { margin-bottom: 28px; }
.rec-grid    { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; }

/* Cards */
.rec-input-card,
.rec-output-card {
    background: #fff; border: 2px solid #e5e7eb;
    border-radius: 20px; padding: 24px;
}
.rec-output-card { border-color: #bbf7d0; }
.rec-card-title  { font-size: 16px; font-weight: 800; color: #1f2937; margin-bottom: 18px; }

/* Step Labels */
.rec-field  { margin-bottom: 16px; }
.rec-label  {
    display: flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 8px;
}
.rec-step-num {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff; font-size: 10px; font-weight: 900;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.rec-req { color: #ef4444; }
.rec-opt { color: #9ca3af; font-weight: 400; font-size: 11px; }

/* Textarea */
.rec-textarea {
    width: 100%; min-height: 100px; border: 2px solid #e5e7eb;
    border-radius: 12px; padding: 12px 14px; font-size: 14px;
    font-family: inherit; resize: vertical; outline: none;
    transition: border-color 0.2s; box-sizing: border-box;
    color: #1f2937; line-height: 1.7;
}
.rec-textarea:focus { border-color: #10b981; }
.rec-char-count { font-size: 11px; color: #9ca3af; text-align: right; margin-top: 3px; }

/* Region Grid */
.rec-region-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.region-btn {
    background: #f8fafc; border: 2px solid #e5e7eb; border-radius: 10px;
    padding: 8px 5px; cursor: pointer; transition: all 0.2s;
    display: flex; flex-direction: column; align-items: center; gap: 3px;
    font-size: 18px;
}
.region-btn span { font-size: 10px; font-weight: 700; color: #374151; }
.region-btn:hover { border-color: #10b981; transform: translateY(-2px); }
.region-btn.active { background: linear-gradient(135deg, #10b981, #059669); border-color: #059669; }
.region-btn.active span { color: #fff; }

/* Regional Dish Suggestions */
.region-dish-suggestions {
    display: flex; flex-wrap: wrap; gap: 6px;
    min-height: 34px;
}
.dish-suggest-btn {
    background: #f0fdf4; border: 1.5px solid #86efac;
    border-radius: 20px; padding: 5px 12px;
    font-size: 12px; font-weight: 600; color: #065f46;
    cursor: pointer; transition: all 0.2s;
}
.dish-suggest-btn:hover {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff; border-color: #059669;
    transform: translateY(-1px);
}

/* Meal Group */
.rec-meal-group { display: flex; gap: 6px; flex-wrap: wrap; }
.meal-btn {
    background: #f8fafc; border: 2px solid #e5e7eb; border-radius: 8px;
    padding: 7px 9px; font-size: 12px; font-weight: 700; color: #374151;
    cursor: pointer; transition: all 0.2s;
}
.meal-btn:hover { border-color: #10b981; }
.meal-btn.active { background: linear-gradient(135deg, #10b981, #059669); border-color: #059669; color: #fff; }

/* Chips */
.rec-chips-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ing-chip {
    background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 20px;
    padding: 5px 11px; font-size: 12px; font-weight: 600; color: #065f46;
    cursor: pointer; transition: all 0.2s;
}
.ing-chip:hover { background: #dcfce7; border-color: #10b981; }
.ing-chip.selected { background: linear-gradient(135deg, #10b981, #059669); border-color: #059669; color: #fff; }

/* Scenarios */
.rec-scenarios { display: flex; flex-wrap: wrap; gap: 6px; }
.scenario-btn {
    background: #faf5ff; border: 1.5px solid #ddd6fe; border-radius: 20px;
    padding: 5px 11px; font-size: 12px; font-weight: 600; color: #6d28d9;
    cursor: pointer; transition: all 0.2s;
}
.scenario-btn:hover { background: #ede9fe; border-color: #7c3aed; }

/* Count + Lang Row */
.rec-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rec-count-group { display: flex; gap: 5px; flex-wrap: wrap; }
.rec-count-btn {
    background: #f8fafc; border: 2px solid #e5e7eb; border-radius: 7px;
    padding: 7px 10px; font-size: 13px; font-weight: 800; color: #374151;
    cursor: pointer; transition: all 0.2s; min-width: 36px;
}
.rec-count-btn:hover { border-color: #10b981; }
.rec-count-btn.active { background: linear-gradient(135deg, #10b981, #059669); border-color: #059669; color: #fff; }

.rec-lang-group { display: flex; flex-direction: column; gap: 5px; }
.rec-lang-btn {
    background: #f8fafc; border: 2px solid #e5e7eb; border-radius: 8px;
    padding: 7px 10px; font-size: 12px; font-weight: 700; color: #374151;
    cursor: pointer; transition: all 0.2s; text-align: center;
}
.rec-lang-btn:hover { border-color: #10b981; }
.rec-lang-btn.active { background: linear-gradient(135deg, #10b981, #059669); border-color: #059669; color: #fff; }

/* Generate Button */
.rec-generate-btn {
    width: 100%; background: linear-gradient(135deg, #10b981, #059669);
    color: #fff; border: none; border-radius: 14px; padding: 16px;
    font-size: 17px; font-weight: 800; cursor: pointer; transition: all 0.25s;
    box-shadow: 0 4px 16px rgba(16,185,129,0.35); margin-top: 6px;
}
.rec-generate-btn:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.45); }
.rec-generate-btn:disabled { opacity: 0.7; cursor: not-allowed; }

/* Placeholder */
.rec-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 380px; gap: 10px; text-align: center; }
.rph-icon  { font-size: 58px; }
.rph-title { font-size: 17px; font-weight: 800; color: #374151; }
.rph-sub   { font-size: 13px; color: #9ca3af; margin-bottom: 8px; }
.rph-tips  { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 320px; }
.rph-tip   { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 10px; padding: 8px 14px; font-size: 12px; color: #166534; text-align: left; }

/* Loading */
.rec-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 380px; gap: 14px; }
.rec-loader-pot { font-size: 52px; animation: pot-rock 1s ease-in-out infinite alternate; display: inline-block; }
@keyframes pot-rock { from { transform: translateY(0) rotate(-4deg); } to { transform: translateY(-10px) rotate(4deg); } }
.rec-loading-title { font-size: 16px; font-weight: 800; color: #374151; }
.rec-loading-steps { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 280px; }
.rec-lstep { font-size: 13px; color: #9ca3af; padding: 6px 14px; border-radius: 20px; transition: all 0.4s; }
.rec-lstep.active { color: #065f46; background: #d1fae5; font-weight: 600; }

/* Results Header */
.rec-results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid #d1fae5; }
.rec-result-badge { font-size: 13px; font-weight: 800; color: #065f46; background: #d1fae5; padding: 4px 12px; border-radius: 20px; border: 1.5px solid #86efac; }
.rec-new-btn { background: #fff; border: 2px solid #86efac; border-radius: 8px; padding: 6px 14px; font-size: 12px; font-weight: 700; color: #065f46; cursor: pointer; transition: all 0.2s; }
.rec-new-btn:hover { background: #f0fdf4; border-color: #10b981; }

/* Recipes List */
.recipes-list { display: flex; flex-direction: column; gap: 18px; }

/* Recipe Card */
.recipe-card { background: #fff; border: 2px solid #d1fae5; border-radius: 16px; overflow: hidden; transition: all 0.2s; }
.recipe-card:hover { border-color: #10b981; box-shadow: 0 4px 16px rgba(16,185,129,0.1); }

/* Recipe Image */
.recipe-img-wrap { position: relative; width: 100%; height: 180px; overflow: hidden; background: #f0fdf4; }
.recipe-img      { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; display: block; }
.recipe-card:hover .recipe-img { transform: scale(1.04); }
.recipe-img-fallback {
    width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 8px;
    background: linear-gradient(135deg, #d1fae5, #a7f3d0);
    font-size: 52px;
}
.recipe-img-fallback-name { font-size: 14px; font-weight: 700; color: #065f46; text-align: center; padding: 0 16px; }
.recipe-img-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%); padding: 18px 14px 10px; }
.recipe-name-on-img { font-size: 16px; font-weight: 900; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,0.5); line-height: 1.3; }
.recipe-name-en     { font-size: 11px; color: rgba(255,255,255,0.8); margin-top: 1px; }
.recipe-veg-badge   { position: absolute; top: 8px; right: 8px; background: #fff; border-radius: 6px; padding: 2px 8px; font-size: 10px; font-weight: 800; color: #166534; border: 1.5px solid #86efac; }

/* Meta Row */
.recipe-meta-row { display: flex; gap: 5px; flex-wrap: wrap; padding: 10px 14px; background: #f9fffe; border-bottom: 1px solid #f0fdf4; }
.recipe-meta-pill { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; display: flex; align-items: center; gap: 3px; }
.pill-time   { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.pill-diff   { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.pill-serves { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.pill-region { background: #faf5ff; color: #6d28d9; border: 1px solid #ddd6fe; }
.pill-cal    { background: #fff5f5; color: #991b1b; border: 1px solid #fecaca; }

/* Recipe Body */
.recipe-body { padding: 14px; }
.recipe-description { font-size: 13px; color: #6b7280; line-height: 1.7; margin-bottom: 12px; background: #f9fafb; border-radius: 8px; padding: 9px 12px; border-left: 3px solid #10b981; }

/* Tabs */
.recipe-tabs { display: flex; gap: 5px; margin-bottom: 12px; }
.rtab { background: #f3f4f6; border: none; border-radius: 8px; padding: 6px 12px; font-size: 12px; font-weight: 700; color: #6b7280; cursor: pointer; transition: all 0.2s; }
.rtab.active { background: #10b981; color: #fff; }
.rtab-content { display: none; }
.rtab-content.active { display: block; }

/* Ingredients */
.ingredients-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.ingredients-list li { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: #374151; padding: 7px 10px; background: #f9fafb; border-radius: 8px; border-left: 3px solid #10b981; line-height: 1.5; }
.ing-bullet { color: #10b981; flex-shrink: 0; margin-top: 1px; }

/* Steps */
.steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.step-item  { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #f9fafb; border-radius: 10px; border: 1px solid #e5e7eb; }
.step-num   { background: linear-gradient(135deg, #10b981, #059669); color: #fff; font-size: 11px; font-weight: 900; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.step-text  { font-size: 13px; color: #374151; line-height: 1.75; }

/* Notes */
.recipe-notes { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.safety-note { background: #fffbeb; border: 1.5px solid #fde68a; border-radius: 9px; padding: 9px 12px; font-size: 12px; color: #78350f; line-height: 1.6; display: flex; gap: 7px; align-items: flex-start; }
.pro-tip     { background: #f0fdf4; border: 1.5px solid #86efac; border-radius: 9px; padding: 9px 12px; font-size: 12px; color: #065f46; line-height: 1.6; display: flex; gap: 7px; align-items: flex-start; }
.serve-with  { background: #eff6ff; border: 1.5px solid #bfdbfe; border-radius: 9px; padding: 9px 12px; font-size: 12px; color: #1e40af; line-height: 1.6; display: flex; gap: 7px; align-items: flex-start; }

/* Recipe Footer */
.recipe-footer { padding: 10px 14px; border-top: 1px solid #f0fdf4; display: flex; gap: 7px; }
.recipe-copy-btn, .recipe-share-btn { flex: 1; padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 700; cursor: pointer; transition: all 0.2s; border: 2px solid; }
.recipe-copy-btn  { background: #fff; border-color: #86efac; color: #065f46; }
.recipe-copy-btn:hover { background: #f0fdf4; border-color: #10b981; }
.recipe-share-btn { background: #25d366; border-color: #25d366; color: #fff; }
.recipe-share-btn:hover { background: #22c55e; }

/* Error */
.rec-error { display: flex; align-items: center; gap: 8px; padding: 18px; background: #fff5f5; border-radius: 12px; color: #dc2626; font-size: 14px; min-height: 70px; }

/* Info Box */
.info-box { background: linear-gradient(135deg, #f0fdf4, #dcfce7); border-radius: 16px; padding: 26px; margin-bottom: 24px; border: 2px solid rgba(16,185,129,0.15); }
.info-box h4 { color: #14532d; font-size: 20px; margin-bottom: 16px; }
.info-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.info-item   { background: #fff; border-radius: 12px; padding: 14px; font-size: 13px; color: #374151; line-height: 1.6; border: 2px solid rgba(16,185,129,0.1); }
.info-item strong { display: block; color: #10b981; font-size: 13px; font-weight: 700; margin-bottom: 3px; }

/* SEO */
.seo-content { padding: 70px 20px; background: #fff; }
.content-article { max-width: 900px; margin: 0 auto; line-height: 1.8; }
.content-article h2 { font-size: 26px; font-weight: 800; margin-top: 32px; margin-bottom: 14px; color: #333; }
.content-article h2:first-child { margin-top: 0; }
.content-article h3 { font-size: 19px; font-weight: 700; margin-top: 22px; margin-bottom: 10px; color: #444; }
.content-article p  { margin-bottom: 14px; color: #666; font-size: 16px; }
.content-article strong { color: #333; font-weight: 700; }

/* Responsive */
@media (max-width: 960px) { .rec-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
    .rec-input-card, .rec-output-card { padding: 14px; }
    .rec-region-grid { grid-template-columns: repeat(3, 1fr); }
    .rec-row-2 { grid-template-columns: 1fr; }
    .rec-lang-group { flex-direction: row; flex-wrap: wrap; }
    .recipe-footer { flex-direction: column; }
    .recipe-meta-row { gap: 4px; }
}