/* =========================================================
   CARDAPIO.CSS
   Estilos específicos para a seção de cardápio
   e controle de horário de funcionamento
   ========================================================= */

/* Cards do Cardápio */
.cardapio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    background: #fff;
}

.cardapio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cardapio-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.cardapio-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
}

.cardapio-desc {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.cardapio-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.cardapio-list li {
    margin-bottom: 8px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    color: #555;
}

.cardapio-icon {
    margin-right: 8px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Badges do Cardápio */
.cardapio-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cardapio-badge-featured {
    background: #ffc107;
    color: #000;
}

.cardapio-badge-healthy {
    background: #17a2b8;
    color: #fff;
}

/* Botão do Cardápio */
.cardapio-btn {
    background: #25D366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    border: none;
    cursor: pointer;
}

.cardapio-btn:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none;
}

/* Badge de Horário de Funcionamento */
.hours-badge {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hours-badge.closed {
    background: #dc3545;
}

.hours-badge i {
    font-size: 1rem;
}

/* Botões desabilitados fora do horário */
.btn-disabled-outside-hours {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.1);
    position: relative;
}

.btn-disabled-outside-hours::after {
    content: "Fora do horário";
    position: absolute;
    bottom: -28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    background: #ffc107;
    color: #000;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    font-weight: 500;
    z-index: 10;
    pointer-events: none;
}

/* Ocultar elemento baseado no dia da semana */
[data-only-day] {
    display: block;
}

[data-only-day].d-none {
    display: none !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .cardapio-img {
        height: 200px;
    }
    
    .cardapio-title {
        font-size: 1.1rem;
    }
    
    .cardapio-desc {
        font-size: 0.8rem;
    }
    
    .hours-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .btn-disabled-outside-hours::after {
        font-size: 9px;
        bottom: -24px;
        padding: 2px 6px;
        white-space: nowrap;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .cardapio-img {
        height: 220px;
    }
}
