/* Custom styles for Healthy Recipe Index */

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

/* Recipe Cards */
.recipe-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
}

.recipe-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.recipe-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.recipe-card:hover .card-img-top {
    transform: scale(1.05);
}

.recipe-card .card-body {
    padding: 1.5rem;
}

.recipe-card .card-title {
    color: #28a745;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.recipe-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
}

.recipe-card .btn {
    border-radius: 25px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

/* Category Badge */
.category-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Search Bar */
#searchInput {
    border-radius: 25px 0 0 25px;
    border: 2px solid #dee2e6;
    padding: 0.75rem 1.25rem;
}

#searchInput:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

#searchBtn {
    border-radius: 0 25px 25px 0;
    border: 2px solid #28a745;
    padding: 0.75rem 1.25rem;
}

/* Quotes Section */
.quotes-section .card {
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.quotes-section .card:hover {
    transform: translateY(-3px);
}

.quotes-section .blockquote {
    font-style: italic;
    color: #495057;
}

.quotes-section .blockquote-footer {
    color: #28a745;
    font-weight: 600;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .hero-section {
        min-height: 50vh;
        padding: 3rem 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
    }
    
    .recipe-card .card-img-top {
        height: 150px;
    }
    
    .recipe-card .card-body {
        padding: 1rem;
    }
    
    #searchInput, #searchBtn {
        padding: 0.5rem 1rem;
    }
}

@media (max-width: 576px) {
    .hero-section {
        min-height: 40vh;
        padding: 2rem 0;
    }
    
    .hero-section h1 {
        font-size: 1.75rem;
    }
    
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .recipe-card {
        margin-bottom: 1.5rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 2rem;
}

.loading .spinner-border {
    color: #28a745;
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 3rem;
    color: #6c757d;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Accessibility Improvements */
.btn:focus,
.form-control:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Print Styles */
@media print {
    .navbar,
    .hero-section,
    .btn,
    footer {
        display: none !important;
    }
    
    .recipe-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}
