/**
 * Estilos personalizados para páginas de receitas
 * Theme: Nutricida
 */

/* Fix para data duplicada - ocultar a data de atualização */
.posted-on .updated {
    display: none;
}

/* Animações para os cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.receita-card {
    animation: fadeInUp 0.6s ease-out;
}

.receita-card:nth-child(1) { animation-delay: 0.1s; }
.receita-card:nth-child(2) { animation-delay: 0.2s; }
.receita-card:nth-child(3) { animation-delay: 0.3s; }
.receita-card:nth-child(4) { animation-delay: 0.4s; }
.receita-card:nth-child(5) { animation-delay: 0.5s; }
.receita-card:nth-child(6) { animation-delay: 0.6s; }

/* Hover effect para imagens */
.receita-card-image {
    position: relative;
    overflow: hidden;
}

.receita-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.receita-card:hover .receita-card-image::after {
    opacity: 1;
}

/* Line clamp para excerpt */
.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Estilo para lista de ingredientes */
.ingredientes-list li {
    position: relative;
    padding-left: 0;
    transition: transform 0.2s ease;
}

.ingredientes-list li:hover {
    transform: translateX(5px);
}

/* Estilo para instruções numeradas */
.instrucoes-content p {
    position: relative;
    padding-left: 40px;
    margin-bottom: 1rem;
}

/* Seção de Sugestões */
.sugestoes-section {
    position: relative;
    overflow: hidden;
}

.sugestoes-content {
    position: relative;
    z-index: 1;
}

.sugestoes-content ul {
    list-style: none;
    padding-left: 0;
}

.sugestoes-content ul li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 0.75rem;
}

.sugestoes-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #97A626 0%, #4a8d2f 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 12px;
}

.sugestoes-icon-list span {
    animation: pulse 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

.sugestoes-section:hover {
    animation: pulse-subtle 1s ease-in-out;
}

/* Badges animados */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.info-box {
    transition: all 0.3s ease;
}

.info-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Botões de compartilhamento */
.share-btn {
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Paginação */
.pagination-wrapper .page-numbers {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 0.5rem;
    border: 2px solid #E5E7EB;
    color: #374151;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-wrapper .page-numbers:hover {
    background: #4a8d2f;
    color: white;
    border-color: #4a8d2f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 141, 47, 0.3);
}

.pagination-wrapper .page-numbers.current {
    background: linear-gradient(135deg, #4a8d2f 0%, #2d401a 100%);
    color: white;
    border-color: #4a8d2f;
}

/* Filtros ativos */
.filter-tags span.active {
    background: linear-gradient(135deg, #4a8d2f 0%, #2d401a 100%);
    color: white;
}

/* Loading state para busca */
.receitas-grid.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
    .receita-hero {
        height: 250px !important;
    }
    
    .receita-quick-info {
        grid-template-columns: 1fr 1fr !important;
    }
    
    .filter-section {
        flex-direction: column;
    }
    
    .filter-tags {
        width: 100%;
        justify-content: center;
    }
}

/* Print styles para receitas */
@media print {
    .share-buttons,
    .post-navigation,
    .comments-section,
    .entry-footer {
        display: none !important;
    }
    
    .receita-single {
        box-shadow: none !important;
        border: 1px solid #ccc;
    }
}

/* Acessibilidade - Focus states */
a:focus,
button:focus,
input:focus {
    outline: 3px solid #4a8d2f;
    outline-offset: 2px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Toast notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}
