/* ============================================
   ESTILOS PARA PÁGINAS DE RECEITAS
   ============================================ */

/* Importar estilos base */
@import url('../css/style.css');

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 1rem 0;
    background: #f8f9fa;
    margin-bottom: 2rem;
}

.breadcrumb .internal-link {
    color: var(--primary-color, #FF6B35);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.breadcrumb .internal-link:hover {
    color: var(--accent-color, #F7931E);
    text-decoration: underline;
}

/* ============================================
   ARTIGO DA RECEITA
   ============================================ */
.receita-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: white;
}

/* Título */
.receita-titulo {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-family: 'Playfair Display', serif;
}

/* Meta Info */
.receita-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
}

.receita-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #555;
    font-weight: 500;
}

/* Imagem de Capa */
.receita-imagem-capa {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.receita-imagem-capa img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Compartilhamento */
.compartilhar {
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    padding: 1.5rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.compartilhar h3 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.btn-share {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    color: white;
    min-width: 120px;
    justify-content: center;
}

.btn-share.facebook {
    background: #1877f2;
}

.btn-share.twitter {
    background: #1da1f2;
}

.btn-share.whatsapp {
    background: #25d366;
}

.btn-share.pinterest {
    background: #e60023;
}

.btn-share:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Introdução */
.receita-introducao {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin: 2rem 0;
    padding: 1.5rem;
    background: #fef9f5;
    border-left: 4px solid var(--primary-color, #FF6B35);
    border-radius: 5px;
}

.receita-introducao p {
    margin-bottom: 1rem;
}

/* Seções */
.receita-secao {
    margin: 3rem 0;
    padding: 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.receita-secao h2 {
    font-size: 2rem;
    color: var(--primary-color, #FF6B35);
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Listas */
.ingredientes-lista,
.preparo-lista,
.dicas-lista {
    list-style: none;
    padding: 0;
}

.ingredientes-lista li,
.dicas-lista li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
    position: relative;
    padding-left: 2rem;
}

.ingredientes-lista li:before,
.dicas-lista li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-color, #FF6B35);
    font-weight: bold;
    font-size: 1.2rem;
}

.ingredientes-lista li:last-child,
.dicas-lista li:last-child {
    border-bottom: none;
}

/* Modo de Preparo */
.preparo-lista {
    counter-reset: step-counter;
    list-style: none;
    padding: 0;
}

.preparo-lista li {
    counter-increment: step-counter;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 10px;
    position: relative;
    padding-left: 4rem;
}

.preparo-lista li:before {
    content: counter(step-counter);
    position: absolute;
    left: 1rem;
    top: 1.5rem;
    background: var(--primary-color, #FF6B35);
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Dicas */
.receita-secao.dicas {
    background: linear-gradient(135deg, #fff5ee 0%, #ffe8d6 100%);
    border-left: 5px solid var(--primary-color, #FF6B35);
}

/* Informações Nutricionais */
.receita-secao.nutricional {
    background: #f0f9ff;
}

.nutricional-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.nutricional-item {
    padding: 1rem;
    background: white;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.nutricional-item strong {
    display: block;
    color: var(--primary-color, #FF6B35);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Vídeo */
.receita-secao.video {
    background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
    text-align: center;
}

.receita-secao.video p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Footer da Receita */
.receita-footer {
    margin: 3rem 0;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 15px;
    text-align: center;
}

.receita-footer .internal-link {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--primary-color, #FF6B35);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.receita-footer .internal-link:hover {
    background: var(--accent-color, #F7931E);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* ============================================
   RESPONSIVO MOBILE
   ============================================ */
@media (max-width: 768px) {
    .receita-titulo {
        font-size: 2rem;
    }
    
    .receita-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .compartilhar {
        padding: 1rem;
    }
    
    .share-buttons {
        flex-direction: column;
    }
    
    .btn-share {
        width: 100%;
    }
    
    .receita-secao {
        padding: 1rem;
    }
    
    .receita-secao h2 {
        font-size: 1.5rem;
    }
    
    .preparo-lista li {
        padding-left: 3rem;
    }
    
    .preparo-lista li:before {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }
    
    .nutricional-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* Sistema de Avaliação - Mobile */
    .rating-section-inline {
        padding: 1.5rem 1rem;
    }
    
    .rating-section-inline h3 {
        font-size: 1.5rem;
    }
    
    .star {
        font-size: 2.5rem;
    }
    
    .btn-avaliar {
        width: 100%;
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
    
    .rating-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .receita-single {
        padding: 1rem 0.5rem;
    }
    
    .receita-titulo {
        font-size: 1.7rem;
    }
    
    .receita-introducao {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .nutricional-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   BOTÃO VOLTAR AO TOPO
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color, #FF6B35);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--accent-color, #F7931E);
    transform: translateY(-5px);
}

/* ============================================
   SISTEMA DE AVALIAÇÃO (INLINE NO MODO DE PREPARO)
   ============================================ */
.rating-section-inline {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
    border: 3px solid #FFB84D;
    box-shadow: 0 4px 15px rgba(255, 184, 77, 0.3);
}

.rating-section-inline h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    font-family: 'Playfair Display', serif;
}

.rating-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.star-rating {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.star {
    font-size: 3rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
}

.star:hover,
.star.active {
    color: #FFD700;
    transform: scale(1.2) rotate(15deg);
}

.star.filled {
    color: #FFD700;
}

/* Botão Enviar Avaliação */
.btn-avaliar {
    background: #ccc;
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.btn-avaliar:not(:disabled) {
    background: #FF6B35;
}

.btn-avaliar:not(:disabled):hover {
    background: #F7931E;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

.btn-avaliar:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.rating-message {
    display: none;
    min-height: 25px;
    margin-top: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FF6B35;
}

/* Estatísticas Inline */
.rating-stats-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px dashed #FFB84D;
    flex-wrap: wrap;
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #FF6B35;
}

.rating-stars-display {
    font-size: 1.5rem;
}

.rating-count {
    color: #666;
    font-size: 1rem;
    font-weight: 500;
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.receita-single > * {
    animation: fadeIn 0.6s ease-out;
}

@keyframes starPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.3);
    }
}

.star.pulse {
    animation: starPulse 0.3s ease;
}

