/* Recipe Suggestions Page Styles */

/* Hero input group styling for suggestions */
.suggestion-hero-group { 
    display: flex;
    align-items: stretch;
    width: 100%;
}

.suggestion-hero-group textarea { 
    min-height: 120px; 
    border-radius: 0.375rem 0 0 0.375rem;
    flex: 1 1 auto;
    min-width: 0;
    resize: vertical;
}

.suggestion-hero-group button { 
    min-height: 120px;
    border-radius: 0 0.375rem 0.375rem 0;
    flex: 0 0 auto;
    white-space: nowrap;
    min-width: 140px;
}

/* Suggestion Card Styles - No hover overlay, wider responsive cards */
.suggestion-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    background-color: #fff;
    transition: all 0.3s ease;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}

.suggestion-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.suggestion-card:active {
    transform: translateY(-2px);
}

.suggestion-header {
    margin-bottom: 1rem;
}

.suggestion-content {
    flex-grow: 1;
}

.suggestion-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #333;
    line-height: 1.4;
}

.suggestion-description {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #666;
    font-style: italic;
    line-height: 1.5;
}

.suggestion-explanation {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
    flex-grow: 1;
}

.suggestion-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .recipe-search-component section.bg-primary { 
        padding: 2.25rem 0; 
    }
    
    .recipe-search-component h2.display-4 { 
        font-size: 2rem; 
    }
    
    .recipe-search-component p.lead { 
        font-size: 1rem; 
        margin-bottom: 1.25rem; 
    }
}

/* Mobile responsive input group */
@media (max-width: 820px) {
    .suggestion-hero-group { 
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .suggestion-hero-group textarea { 
        border-radius: 0.375rem;
        min-height: 110px;
    }
    
    .suggestion-hero-group button { 
        border-radius: 0.375rem;
        min-height: 56px;
    }
}

@media (max-width: 576px) {
    .recipe-search-component section.bg-primary { 
        padding: 1.75rem 0; 
    }
    
    .recipe-search-component h2.display-4 { 
        font-size: 1.65rem; 
    }
    
    .suggestion-hero-group textarea { 
        min-height: 140px;
        font-size: 16px; /* Prevent iOS zoom */
    }
    
    .suggestion-hero-group button { 
        min-height: 56px;
    }
    
    .suggestion-card {
        padding: 1.25rem;
        min-height: 180px;
    }
    
    .suggestion-title {
        font-size: 1.1rem;
    }
    
    .suggestion-description {
        font-size: 0.95rem;
    }
    
    .suggestion-explanation {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .col-lg-10 {
        padding-left: 8px;
        padding-right: 8px;
    }
    
    .suggestion-card {
        padding: 1rem;
    }
}

/* Button styling */
.btn-success { 
    background-color: #28a745; 
    border-color: #28a745; 
}

.btn-success:hover { 
    background-color: #218838; 
    border-color: #1e7e34; 
}

.btn-outline-light:hover { 
    background-color: rgba(255,255,255,.1); 
    border-color: rgba(255,255,255,.5); 
}