/* Global Styles */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8f6f0 0%, #e8f0e4 100%);
    min-height: 100vh;
}

/* === HERO SLIDESHOW === */
.hero-slideshow {
    height: 70vh;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    margin-bottom: 3rem;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(106, 176, 76, 0.85), rgba(74, 124, 89, 0.75));
}

.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.hero-text-content {
    max-width: 800px;
    color: white;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text-content h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-text-content p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    opacity: 0.95;
}

.hero-badges {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hero-badge i {
    font-size: 1.5rem;
}

.hero-cta-button {
    background: white;
    color: #6ab04c;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: inline-block;
}

.hero-cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.4);
    color: #4a7c59;
}

/* Slideshow Controls */
.slideshow-controls {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.slide-nav {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

.slide-indicators {
    display: flex;
    gap: 0.75rem;
}

.slide-indicator {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slide-indicator.active {
    width: 40px;
    border-radius: 10px;
    background: white;
}

/* Recipe Stats Section */
.recipe-stats-section {
    background: white;
    padding: 2rem 0;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.recipe-counter-full {
    background: linear-gradient(135deg, #6ab04c, #4a7c59);
    border-radius: 20px;
    padding: 2rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(106, 176, 76, 0.3);
}

.counter-card-full {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.counter-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
}

.counter-content {
    color: white;
}

.counter-number {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.counter-label {
    font-size: 1.2rem;
    opacity: 0.95;
    font-weight: 600;
}

/* Search Container */
.search-container {
    position: relative;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-input {
    width: 100%;
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    border: 2px solid #e8f0e4;
    border-radius: 50px;
    font-size: 1rem;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #6ab04c;
    box-shadow: 0 8px 30px rgba(106, 176, 76, 0.2);
}

.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6ab04c;
    font-size: 1.2rem;
}

/* Filter Bar */
.filter-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 20px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.filter-btn {
    background: #f8f6f0;
    border: 2px solid #e8f0e4;
    color: #2d3d1f;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    margin-right: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover {
    background: #6ab04c;
    color: white;
    border-color: #6ab04c;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #6ab04c, #4a7c59);
    color: white;
    border-color: #6ab04c;
    box-shadow: 0 4px 15px rgba(106, 176, 76, 0.3);
}

/* Recipe Grid */
.recipe-item {
    margin-bottom: 2rem;
}

/* Recipe Card */
.recipe-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.recipe-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.recipe-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.recipe-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.recipe-badge.difficulty-einfach {
    background: rgba(34, 197, 94, 0.9);
    color: white;
}

.recipe-badge.difficulty-leicht {
    background: rgba(106, 176, 76, 0.9);
    color: white;
}

.recipe-badge.difficulty-mittel {
    background: rgba(245, 158, 11, 0.9);
    color: white;
}

.recipe-badge.difficulty-schwer {
    background: rgba(220, 38, 38, 0.9);
    color: white;
}

.recipe-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.recipe-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3d1f;
    margin-bottom: 1rem;
}

.recipe-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.meta-item i {
    color: #6ab04c;
}

.recipe-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tag {
    background: linear-gradient(135deg, #e8f0e4, #d4e7c5);
    color: #4a7c59;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

.match-indicator {
    background: linear-gradient(135deg, #6ab04c, #4a7c59);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.btn-recipe-details {
    width: 100%;
    background: linear-gradient(135deg, #6ab04c, #4a7c59);
    color: white;
    border: none;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-recipe-details:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(106, 176, 76, 0.3);
    background: linear-gradient(135deg, #5a9a3c, #3a6c49);
}

.btn-recipe-details:active {
    transform: translateY(0);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 5rem;
    color: #e8f0e4;
    margin-bottom: 1.5rem;
}

.empty-state h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3d1f;
    margin-bottom: 0.5rem;
}

/* Modal Styles */
.recipe-modal .modal-content {
    border-radius: 25px;
    border: none;
    overflow: hidden;
}

.recipe-modal .modal-header {
    background: linear-gradient(135deg, #6ab04c, #4a7c59);
    color: white;
    padding: 2rem;
    border: none;
}

.recipe-modal .modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.modal-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2d3d1f;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-title i {
    color: #6ab04c;
}

/* Ingredients */
.ingredient-list {
    margin-bottom: 2rem;
}

.ingredient-category {
    background: linear-gradient(135deg, #6ab04c, #4a7c59);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    margin-bottom: 1rem;
}

.ingredient-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8f6f0;
    border-radius: 10px;
    margin-bottom: 0.75rem;
    border-left: 4px solid #6ab04c;
}

.ingredient-item i {
    color: #6ab04c;
    font-size: 1.2rem;
    min-width: 20px;
}

.ingredient-item span {
    color: #2d3d1f;
    flex: 1;
}

.ingredient-available {
    margin-left: auto;
    background: #6ab04c;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Instructions */
.instruction-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.step-number {
    min-width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #6ab04c, #4a7c59);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.step-text {
    flex: 1;
    padding-top: 0.5rem;
    color: #2d3d1f;
    line-height: 1.6;
}

/* Nutrition */
.nutrition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.nutrition-card {
    background: linear-gradient(135deg, #f8f6f0, #e8f0e4);
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    border: 2px solid #e8f0e4;
}

.nutrition-icon {
    font-size: 2rem;
    color: #6ab04c;
    margin-bottom: 0.75rem;
}

.nutrition-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3d1f;
    margin-bottom: 0.5rem;
}

.nutrition-unit {
    font-size: 0.9rem;
    font-weight: 400;
    color: #6c757d;
    margin-left: 0.25rem;
}

.nutrition-label {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Cook Button */
.btn-cook {
    width: 100%;
    background: linear-gradient(135deg, #6ab04c, #4a7c59);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-cook:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(106, 176, 76, 0.4);
}

.btn-cook i {
    margin-right: 0.75rem;
}

/* Delete Button */
.btn-delete-recipe {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.btn-delete-recipe:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.btn-delete-recipe:active {
    transform: translateY(0);
}

.btn-delete-recipe i {
    margin-right: 0.75rem;
}

/* Modal Button Container */
.modal-button-container {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-slideshow {
        height: 60vh;
        min-height: 400px;
    }
    
    .hero-text-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-text-content p {
        font-size: 1.1rem;
    }
    
    .hero-badges {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-badge {
        width: 100%;
        justify-content: center;
    }
    
    .counter-card-full {
        flex-direction: column;
        text-align: center;
    }
    
    .counter-number {
        font-size: 2.5rem;
    }
    
    /* Recipe Image */
    .recipe-image {
        height: 200px;
    }
    
    /* Nutrition Grid */
    .nutrition-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
