/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #f8fafc;
    overflow-x: hidden;
}

/* Hero Section */
.recipes-hero {
    background: linear-gradient(135deg, #2d1b45 0%, #1e293b 100%);
    color: white;
    padding: 8rem 2rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.recipes-hero::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="%23ffffff" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.highlight {
    color: #4ade80;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Filter Section */
.filter-section {
    background: white;
    padding: 3rem 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.filter-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.1), transparent);
    transition: left 0.6s ease;
}

.filter-btn:hover {
    border-color: #7c3aed;
    color: #7c3aed;
    transform: translateY(-2px);
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

/* Recipes Section */
.recipes-section {
    padding: 4rem 2rem;
    background: #f8fafc;
}

.recipes-container {
    max-width: 1200px;
    margin: 0 auto;
}

.recipes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.recipe-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 1px solid rgba(226, 232, 240, 0.8);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
    position: relative;
}

.recipe-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.recipe-card.hidden {
    display: none;
}

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

.recipe-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.recipe-category-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(124, 58, 237, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.recipe-card[data-category="cafe-da-manha"] .recipe-category-tag {
    background: rgba(251, 146, 60, 0.9);
}

.recipe-card[data-category="bebidas"] .recipe-category-tag {
    background: rgba(59, 130, 246, 0.9);
}

.recipe-card[data-category="sobremesa"] .recipe-category-tag {
    background: rgba(236, 72, 153, 0.9);
}

.recipe-card[data-category="lanches"] .recipe-category-tag {
    background: rgba(34, 197, 94, 0.9);
}

.recipe-card[data-category="pos-treino"] .recipe-category-tag {
    background: rgba(239, 68, 68, 0.9);
}

.recipe-card > * {
    padding: 0 2rem;
}

.recipe-card .recipe-image {
    padding: 0;
}

.recipe-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1.5rem 0 1rem;
    line-height: 1.3;
}

.recipe-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.recipe-time,
.recipe-difficulty {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.recipe-time {
    background: #dcfce7;
    color: #16a34a;
}

.recipe-difficulty {
    background: #e0e7ff;
    color: #7c3aed;
}

.recipe-ingredients {
    text-align: left;
    margin-bottom: 2rem;
}

.ingredients-title {
    font-size: 1rem;
    font-weight: 700;
    color: #374151;
    margin-bottom: 0.75rem;
}

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

.ingredients-list li {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    line-height: 1.4;
}

.ingredients-list li::before {
    content: "•";
    color: #10b981;
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

.btn-recipe {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    width: calc(100% - 4rem);
    margin: 0 2rem 2rem;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-recipe::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn-recipe:hover {
    background: linear-gradient(135deg, #6d28d9, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.btn-recipe:hover::before {
    left: 100%;
}

/* Load More Section */
.load-more-section {
    text-align: center;
    padding: 2rem 0;
}

.btn-load-more {
    background: transparent;
    border: 2px solid #7c3aed;
    color: #7c3aed;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.btn-load-more:hover {
    background: #7c3aed;
    color: white;
    transform: translateY(-2px);
}

.load-more-text {
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #2d1b45 0%, #1e293b 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.btn-cta {
    background: linear-gradient(135deg, #10b981, #34d399);
    color: white;
    border: none;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
}

.btn-cta:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.4);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.back-to-top svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recipe-card:nth-child(1) { animation-delay: 0.1s; }
.recipe-card:nth-child(2) { animation-delay: 0.2s; }
.recipe-card:nth-child(3) { animation-delay: 0.3s; }
.recipe-card:nth-child(4) { animation-delay: 0.4s; }
.recipe-card:nth-child(5) { animation-delay: 0.5s; }
.recipe-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
    .recipes-hero {
        padding: 6rem 1.5rem 3rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .filter-section {
        padding: 2rem 1.5rem;
    }

    .filter-buttons {
        gap: 0.75rem;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .recipes-section {
        padding: 3rem 1.5rem;
    }

    .recipes-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .recipe-card {
        margin: 0 auto;
        max-width: 400px;
    }

    .cta-section {
        padding: 3rem 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .btn-cta {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 3rem;
        height: 3rem;
    }
}

@media (max-width: 480px) {
    .recipes-hero {
        padding: 5rem 1rem 2.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .filter-section {
        padding: 1.5rem 1rem;
    }

    .filter-title {
        font-size: 1.25rem;
    }

    .recipes-section {
        padding: 2rem 1rem;
    }

    .recipe-card {
        max-width: 100%;
    }

    .recipe-title {
        font-size: 1.25rem;
    }

    .btn-recipe {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }

    .cta-subtitle {
        font-size: 1rem;
    }
}