/* General Styles */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
                url('../images/hero-image.jpg') center/cover;
    padding: 4rem 2rem;
    margin-bottom: 2rem;
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Recipe Cards */
.recipe-card .card-img-top {
    height: 250px;
}

.recipe-card .card-body {
    padding: 1.5rem;
}

/* Rating Stars */
.rating .fas {
    font-size: 0.9rem;
}

/* Forms */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Recipe Details */
.recipe-header {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    margin-bottom: 2rem;
}

.recipe-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.recipe-header-content {
    position: relative;
    color: white;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* Recipe Ingredients and Instructions */
.recipe-section {
    margin-bottom: 2rem;
}

.recipe-section h3 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.ingredients-list {
    list-style: none;
    padding-left: 0;
}

.ingredients-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.instructions-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.instructions-list li {
    position: relative;
    padding: 1rem 0 1rem 3rem;
    border-bottom: 1px solid #f0f0f0;
}

.instructions-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 1rem;
    width: 2rem;
    height: 2rem;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.photo-gallery img:hover {
    transform: scale(1.05);
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .recipe-header {
        height: auto;
        background: none !important;
    }
    
    .recipe-header::before {
        display: none;
    }
    
    .recipe-header-content {
        color: black;
        padding: 0;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 1rem;
    }
    
    .recipe-header {
        height: 300px;
    }
    
    .photo-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Recipe Filters Component */
.recipe-filters .card {
    border: 1px solid #dee2e6;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.recipe-filters .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}

.recipe-filters .form-label {
    font-weight: 500;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.recipe-filters .form-select {
    font-size: 0.875rem;
}

.recipe-filters .btn {
    font-size: 0.875rem;
}

/* Active filter badges */
.recipe-filters .badge {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

/* Responsive adjustments for filters */
@media (max-width: 768px) {
    .recipe-filters .row {
        row-gap: 1rem !important;
    }
    
    .recipe-filters .col-md-2,
    .recipe-filters .col-md-3 {
        margin-bottom: 0.5rem;
    }
    
    .recipe-filters .d-flex.align-items-end {
        align-items: stretch !important;
    }
    
    .recipe-filters .d-grid {
        grid-template-columns: 1fr;
    }
}

/* Recipe cards improvements */
.recipe-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.recipe-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.recipe-card .card-img-top {
    transition: opacity 0.2s ease-in-out;
}

.recipe-card:hover .card-img-top {
    opacity: 0.9;
}

/* Rating stars */
.rating .fas.fa-star,
.rating .bi.bi-star {
    color: #ffc107;
}

.rating .fas.fa-star.text-muted,
.rating .bi.bi-star.text-muted {
    color: #6c757d !important;
}

/* Category sidebar improvements */
.list-group-item.active {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.list-group-item:hover {
    background-color: #f8f9fa;
}

/* Pagination improvements */
.pagination .page-link {
    color: #0d6efd;
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

.pagination .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* Filter form improvements */
.recipe-filters form {
    margin-bottom: 0;
}

.recipe-filters .form-control:focus,
.recipe-filters .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Loading state for filters */
.recipe-filters.loading {
    opacity: 0.6;
    pointer-events: none;
}

.recipe-filters.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0d6efd;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 