/* Home Page Styles */
.home-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    background-image: url('../billeder/hero/hero-background.png');
    background-color: #4a7c59; /* Fallback color if image is missing */
    background-size: cover;
    background-position: center;
    color: white;
    padding: 80px 20px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    border: none;
}

.btn-primary {
    background-color: #4a7c59;
    color: white;
    border: 2px solid #4a7c59;
}

.btn-primary:hover {
    background-color: #3a6348;
    border-color: #3a6348;
}

.btn-secondary {
    background-color: whitesmoke;
    color: #4a7c59;
    border: 2px solid #4a7c59;
}

.btn-secondary:hover {
    background-color: rgba(74, 124, 89, 0.1);
}

/* Recipe of the Week Section */
.recipe-of-week {
    margin-bottom: 60px;
}

.weekly-header {
    text-align: center;
    margin-bottom: 40px;
}

.recipe-of-week h2, .latest-recipes h2 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    position: relative;
}

.recipe-of-week h2:after, .latest-recipes h2:after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background-color: #4a7c59;
    margin: 15px auto 0;
}

/* Weekly Filter Buttons */
.weekly-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    background-color: white;
    color: #4a7c59;
    border: 2px solid #4a7c59;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    outline: none;
    white-space: nowrap;
}

.filter-btn:hover {
    background-color: rgba(74, 124, 89, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(74, 124, 89, 0.2);
}

.filter-btn.active {
    background-color: #4a7c59;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 124, 89, 0.3);
}

.filter-btn.active:hover {
    background-color: #3a6348;
    transform: translateY(-2px);
}

/* Recipe Carousel */
.recipe-carousel {
    position: relative;
    min-height: 400px;
}

.recipe-slide {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.recipe-slide.active {
    opacity: 1;
}

.recipe-slide.loading {
    opacity: 1;
}

.featured-recipe {
    display: flex;
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-image {
    flex: 1;
    min-height: 400px;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-content {
    flex: 1;
    padding: 40px;
}

.featured-content h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #333;
}

.recipe-author {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    margin-bottom: 20px;
}

.recipe-description {
    font-family: 'Lora', serif;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #444;
}

.recipe-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.recipe-meta span {
    display: flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    color: #666;
}

.recipe-meta img {
    width: 18px;
    margin-right: 5px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
}

.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(359deg);
    }
}

/* Latest Recipes Section */
.latest-recipes {
    margin-bottom: 60px;
}

.recipe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.recipe-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-5px);
}

.recipe-image {
    height: 200px;
}

.recipe-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recipe-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.recipe-info h3 {
    font-family: 'Merriweather', serif;
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #333;
}

.recipe-info .recipe-author {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.recipe-info .recipe-meta {
    margin-bottom: 15px;
}

.recipe-info .btn {
    padding: 8px 16px;
    font-size: 0.9rem;
    margin-top: auto;
}

.view-all {
    text-align: center;
}

/* Call to Action Section */
.cta-section {
    background-color: #f0f7f2;
    padding: 60px 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 60px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: 'Lora', serif;
    font-size: 2rem;
    margin-bottom: 15px;
    color: #333;
}

.cta-content p {
    font-family: 'Merriweather', serif;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #444;
}

.no-recipes {
    text-align: center;
    padding: 40px;
    font-family: 'Merriweather', serif;
    color: #666;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .featured-recipe {
        flex-direction: column;
    }
    
    .featured-image {
        min-height: 250px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .recipe-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .recipe-of-week h2, .latest-recipes h2 {
        font-size: 1.8rem;
    }
    
    .featured-content {
        padding: 30px;
    }
    
    .featured-content h3 {
        font-size: 1.5rem;
    }
    
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .weekly-filters {
        gap: 10px;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 60px 15px;
        margin-bottom: 30px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .featured-content {
        padding: 25px 20px;
    }
    
    .featured-content h3 {
        font-size: 1.4rem;
    }
    
    .recipe-description {
        font-size: 0.95rem;
    }
    
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recipe-card {
        max-width: 400px;
        margin: 0 auto;
        width: 100%;
    }
    
    .recipe-of-week, .latest-recipes {
        margin-bottom: 40px;
    }
    
    .cta-section {
        padding: 40px 20px;
        margin-bottom: 40px;
    }
    
    .weekly-filters {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    
    .filter-btn {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .recipe-of-week h2, .latest-recipes h2, .cta-content h2 {
        font-size: 1.5rem;
    }
    
    .featured-content h3 {
        font-size: 1.3rem;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
    
    .recipe-meta {
        gap: 15px;
    }
    
    .filter-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
        width: 180px;
    }
}
