/* Meal Plan Generator Styles */

/* Summary stats box */
.mealplan-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.mealplan-stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mealplan-stat-label {
    color: #2E7D32;
    font-weight: 500;
    font-size: 0.9em;
}

.mealplan-stat-value {
    color: #1B5E20;
    font-weight: 600;
}

/* Overview section */
.mealplan-overview {
    background: var(--bg-secondary, #f8f9fa);
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #4CAF50;
}

.mealplan-overview p {
    margin: 0;
    line-height: 1.6;
}

/* Days container */
.mealplan-days {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.mealplan-day {
    background: var(--bg-secondary, #f8f9fa);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color, #e0e0e0);
}

.day-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #4CAF50 0%, #43A047 100%);
    color: white;
}

.day-number {
    font-weight: 700;
    font-size: 1.1em;
}

.day-name {
    opacity: 0.9;
    font-weight: 500;
}

/* Meals within a day */
.day-meals {
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.meal-item {
    padding: 12px 15px;
    background: var(--bg-primary, white);
    border-radius: 8px;
    border-left: 3px solid #81C784;
}

.meal-type {
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    color: #4CAF50;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.meal-name {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-primary, #333);
    margin-bottom: 4px;
}

.meal-description {
    font-size: 0.9em;
    color: var(--text-secondary, #666);
    line-height: 1.5;
    margin-bottom: 8px;
}

.meal-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85em;
    color: var(--text-muted, #888);
}

.meal-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Daily tip */
.daily-tip {
    padding: 12px 20px;
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    color: #E65100;
    font-size: 0.9em;
    font-style: italic;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Shopping list */
.shopping-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.shopping-category {
    background: var(--bg-secondary, #f8f9fa);
    padding: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color, #e0e0e0);
}

.category-header {
    font-weight: 600;
    font-size: 1em;
    color: #4CAF50;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #C8E6C9;
}

.category-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-items li {
    padding: 4px 0;
    font-size: 0.9em;
    color: var(--text-primary, #333);
    position: relative;
    padding-left: 15px;
}

.category-items li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #81C784;
    font-weight: bold;
}

/* Prep tips */
.prep-tips-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.prep-tips-list li {
    position: relative;
    padding: 12px 15px 12px 45px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-radius: 8px;
    color: #1565C0;
    font-size: 0.95em;
    line-height: 1.5;
}

.prep-tips-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 12px;
    color: #2196F3;
    font-weight: bold;
    font-size: 1.1em;
}

/* Plan name display */
.plan-name-display {
    padding-left: 15px;
}

.plan-name-display h3 {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mealplan-summary {
        flex-direction: column;
        gap: 10px;
    }
    
    .shopping-list-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .day-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .shopping-list-grid {
        grid-template-columns: 1fr;
    }
    
    .meal-meta {
        flex-direction: column;
        gap: 5px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .mealplan-summary {
        background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(67, 160, 71, 0.15) 100%);
    }
    
    .mealplan-overview {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .mealplan-day {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .meal-item {
        background: rgba(255, 255, 255, 0.03);
    }
    
    .daily-tip {
        background: linear-gradient(135deg, rgba(255, 152, 0, 0.15) 0%, rgba(255, 167, 38, 0.1) 100%);
    }
    
    .shopping-category {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .prep-tips-list li {
        background: linear-gradient(135deg, rgba(33, 150, 243, 0.15) 0%, rgba(25, 118, 210, 0.1) 100%);
    }
}

