/* ============================================
   PÁGINA RECIPES - ReceitasTech
   Estilos específicos da página de galeria de receitas
   ============================================ */

/* ===== SEÇÃO PRINCIPAL ===== */
main {
    padding: var(--spacing-xlarge) 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 200px);
}

/* ===== TÍTULO DA GALERIA ===== */
.gallery-header {
    text-align: center;
    margin-bottom: var(--spacing-xlarge);
    padding: var(--spacing-large) var(--spacing-unit);
}

.gallery-header h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.gallery-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CONTAINER DA GALERIA ===== */
#recipe-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2.5rem;
    padding: 0 var(--spacing-large);
    max-width: 1400px;
    margin: 0 auto;
}

/* ===== CARDS DE RECEITAS APRIMORADOS ===== */
#recipe-container .recipe-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
}

#recipe-container .recipe-card {
    background: white;
    border-radius: var(--border-radius-medium);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

#recipe-container .recipe-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    border-radius: var(--border-radius-medium);
}

#recipe-container .recipe-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

#recipe-container .recipe-card:hover::before {
    opacity: 0.03;
}

/* ===== IMAGENS DOS CARDS ===== */
#recipe-container .recipe-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

#recipe-container .recipe-card:hover img {
    transform: scale(1.1);
}

/* ===== CONTEÚDO DO CARD ===== */
#recipe-container .card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

#recipe-container .recipe-card h3 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--text-color-dark);
    font-weight: 600;
    line-height: 1.3;
    transition: color 0.3s ease;
}

#recipe-container .recipe-card:hover h3 {
    color: var(--primary-color);
}

#recipe-container .recipe-card p {
    color: #666;
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

/* ===== BADGE DE CATEGORIA ===== */
#recipe-container .category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 8px 16px;
    border-radius: var(--border-radius-large);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: capitalize;
    align-self: flex-start;
    margin-top: auto;
    box-shadow: 0 3px 10px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#recipe-container .recipe-card:hover .category-badge {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.5);
}

/* ===== MENSAGEM DE NENHUM RESULTADO ===== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: var(--spacing-xlarge);
    font-size: 1.5rem;
    color: #999;
    background: white;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ===== ANIMAÇÃO DE ENTRADA ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#recipe-container .recipe-card-link {
    animation: fadeInUp 0.5s ease-out backwards;
}

#recipe-container .recipe-card-link:nth-child(1) { animation-delay: 0.05s; }
#recipe-container .recipe-card-link:nth-child(2) { animation-delay: 0.1s; }
#recipe-container .recipe-card-link:nth-child(3) { animation-delay: 0.15s; }
#recipe-container .recipe-card-link:nth-child(4) { animation-delay: 0.2s; }
#recipe-container .recipe-card-link:nth-child(5) { animation-delay: 0.25s; }
#recipe-container .recipe-card-link:nth-child(6) { animation-delay: 0.3s; }

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1200px) {
    #recipe-container {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2.2rem;
    }

    .gallery-header p {
        font-size: 1rem;
    }

    #recipe-container {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 var(--spacing-unit);
    }

    #recipe-container .recipe-card img {
        height: 200px;
    }

    #recipe-container .card-content {
        padding: 1.2rem;
    }

    #recipe-container .recipe-card h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-header h1 {
        font-size: 1.8rem;
    }

    #recipe-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    #recipe-container .recipe-card img {
        height: 220px;
    }
}

/* ===== ESTATÍSTICAS DA GALERIA (OPCIONAL) ===== */
.gallery-stats {
    text-align: center;
    padding: var(--spacing-medium);
    margin-bottom: var(--spacing-large);
    background: white;
    border-radius: var(--border-radius-medium);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-stats .stat-item {
    display: inline-block;
    margin: 0 var(--spacing-large);
    padding: var(--spacing-unit);
}

.gallery-stats .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.gallery-stats .stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
