/* ===== RECIPES PAGE SPECIFIC STYLES ===== */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.page-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Search and Filter Section */
.search-filter-section {
    border-bottom: 1px solid var(--border-light);
}

.search-wrapper .input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.search-wrapper .input-group-text {
    border: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
}

.search-wrapper .form-control {
    border: 1px solid var(--border-light);
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

.search-wrapper .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.filter-buttons .filter-btn {
    border-radius: 50px;
    padding: 0.5rem 1.2rem;
    font-weight: 500;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Recipe Categories */
.recipe-category {
    margin-bottom: 3rem;
}

.category-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--primary-color);
    display: inline-block;
}

/* Enhanced Recipe Cards */
.recipe-card {
    background: white;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-light);
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--primary-color);
}

.recipe-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.recipe-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.recipe-card:hover .recipe-image {
    transform: scale(1.05);
}

.recipe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9), rgba(102, 187, 106, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.recipe-card:hover .recipe-overlay {
    opacity: 1;
}

.recipe-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 2;
}

.recipe-badge .badge {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-light);
}

.recipe-content {
    padding: 1.5rem;
}

.recipe-category {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.recipe-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    line-height: 1.3;
}

.recipe-description {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.recipe-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--border-light);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.meta-item i {
    color: var(--primary-color);
    font-size: 0.9rem;
}

/* Badge Colors */
.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-success {
    background-color: var(--primary-color) !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-dark {
    background-color: #212529 !important;
}

/* Loading States */
.recipe-card.loading {
    opacity: 0.6;
    pointer-events: none;
}

.recipe-card.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid var(--border-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* No Results State */
.no-results {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-light);
}

.no-results i {
    font-size: 4rem;
    color: var(--border-light);
    margin-bottom: 1rem;
}

.no-results h4 {
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .category-title {
        font-size: 1.8rem;
    }
    
    .search-filter-section .row {
        flex-direction: column;
    }
    
    .filter-buttons {
        text-align: center !important;
        margin-top: 1rem;
    }
    
    .filter-btn {
        margin: 0.25rem;
        font-size: 0.9rem;
    }
    
    .recipe-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    .meta-item {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 2rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .recipe-content {
        padding: 1rem;
    }
    
    .recipe-title {
        font-size: 1.1rem;
    }
    
    .recipe-description {
        font-size: 0.9rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hover Effects for Interactive Elements */
.recipe-card .btn-white:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* Focus States for Accessibility */
.filter-btn:focus,
.search-wrapper .form-control:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.25);
}

/* Print Styles */
@media print {
    .navbar,
    .search-filter-section,
    .newsletter-section,
    .footer {
        display: none !important;
    }
    
    .recipe-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .recipe-overlay {
        display: none !important;
    }
}

