/* CSS para página de promoções */
:root {
    --primary-color: #d32f2f;
    --primary-dark: #b71c1c;
    --secondary-color: #ff5722;
    --accent-color: #ffc107;
    --success-color: #4caf50;
    --bg-light: #f8f9fa;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
    --transition: all 0.3s ease;
    --border-radius: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header */
.header-promocoes {
    background: white;
    padding: 15px 0;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Logo centralizada sobre o banner */
.centered-logo {
    position: absolute !important;
    top: 95% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 99999 !important;
    background: white !important;
    padding: 10px !important;
    border-radius: 50% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2) !important;
    pointer-events: auto !important;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-small {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.status-header .badge {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 20px;
}

/* Banner de Pizzas Repetido */
.pizza-banner {
    position: relative;
    height: 200px;
    overflow: visible !important;
    background: #f4a261;
}

.pizza-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 5;
    pointer-events: none;
}

.top-status-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 20;
}

.status-open-badge {
    background: var(--success-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(0.8);
    }
}

.banner-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.static-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.brand-logo {
    width: 100px !important;
    height: 100px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    position: relative !important;
    z-index: 999999 !important;
    border: 4px solid white;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
}

/* Card de Informações */
.info-card-section {
    background: #f8f9fa;
    padding: 0;
}

.restaurant-card {
    background: white;
    border-radius: 0;
    padding: 80px 30px 30px 30px;
    text-align: center;
    box-shadow: none;
    margin-top: 40px;
}

.restaurant-name {
    font-size: 2rem;
    font-weight: 600;
    color: var(--success-color);
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 25px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: white;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.social-btn:hover {
    border-color: var(--success-color);
    color: var(--success-color);
}

.restaurant-info {
    margin: 25px 0;
}

.info-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 8px 0;
    font-size: 0.9rem;
    color: #666;
}

.info-line i {
    font-size: 0.85rem;
    color: #888;
    width: 15px;
}

.rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #666;
    font-size: 0.9rem;
    margin: 20px 0;
}

.rating i {
    color: var(--accent-color);
}



/* Seção do Botão Principal */
.main-promo-section {
    background: var(--success-color);
    padding: 0;
    margin: 0;
}

.main-promo-btn {
    display: block;
    background: var(--success-color);
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
    border: none;
    width: 100%;
}

.main-promo-btn:hover {
    background: #45a049;
    color: white;
    text-decoration: none;
}

/* Wrapper dos Botões de Ação */
.action-buttons-wrapper {
    padding: 15px 0;
    background: transparent;
}

.action-buttons-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 0;
}

.delivery-btn, .promo-btn {
    padding: 18px 25px;
    border: 2px solid;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: calc(100% - 30px);
    min-height: 65px;
    text-align: center;
    line-height: 1.2;
    margin: 0 15px;
}

.delivery-btn {
    border-color: var(--success-color);
    background: var(--success-color);
    color: white;
}

.delivery-btn:hover {
    background: #45a049;
    border-color: #45a049;
}

.promo-btn {
    border-color: #8e44ad;
    background: white;
    color: #8e44ad;
}

.promo-btn:hover {
    background: #8e44ad;
    color: white;
}

/* Timer de Promoção */
.promo-timer-section {
    margin: 0;
    padding: 0;
}

.timer-box {
    background: white;
    color: #333;
    padding: 25px 20px;
    border-radius: 0;
    text-align: center;
    box-shadow: none;
    margin: 0;
    border-bottom: 1px solid #eee;
}

.timer-text {
    font-size: 0.95rem;
    margin-bottom: 15px;
    font-weight: 400;
    color: #666;
}

.timer-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.timer-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.2);
    padding: 10px 15px;
    border-radius: 8px;
}

.timer-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.timer-label {
    font-size: 0.8rem;
    margin-top: 2px;
}

.timer-separator {
    font-size: 2rem;
    font-weight: 700;
}

/* Cards de Promoções */
.promocoes-container {
    padding: 0;
}

.promocoes-grid {
    display: grid;
    gap: 20px;
    margin: 20px 0 30px 0;
    padding: 0 15px;
}

.promo-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.promo-card.promo-destaque {
    border: 2px solid var(--accent-color);
}

.badge-destaque {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e91e63, #9c27b0);
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 10;
}

.promo-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



.promo-content {
    padding: 20px;
}

.promo-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.promo-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.promo-pricing {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.preco-original {
    text-decoration: line-through;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.preco-promocional {
    color: var(--success-color);
    font-size: 1.3rem;
    font-weight: 700;
}

.promo-description {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.promo-combo-info {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Seção de Avaliações */
.avaliacoes-section {
    background: white;
    padding: 30px 0;
    margin-top: 20px;
}

.avaliacoes-header {
    text-align: center;
    margin-bottom: 30px;
}

.rating-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.rating-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.rating-stars {
    display: flex;
    gap: 3px;
}

.star-filled {
    color: var(--accent-color);
}

.star-empty {
    color: var(--border-color);
}

.rating-info {
    text-align: center;
    color: var(--text-muted);
}

.avaliacoes-grid {
    display: grid;
    gap: 15px;
}

.avaliacao-card {
    background: var(--bg-light);
    padding: 15px;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.avaliacao-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.cliente-info strong {
    color: var(--text-dark);
    font-weight: 600;
}

.cliente-rating {
    display: flex;
    gap: 2px;
    margin-top: 2px;
}

.cliente-rating .fas {
    font-size: 0.8rem;
}

.avaliacao-marmita {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.avaliacao-comentario {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}



/* Animações */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Responsivo */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .pizza-banner {
        height: 150px;
    }
    
    .pizza-item {
        width: 120px;
        height: 90px;
    }
    
    .brand-logo {
        width: 80px;
        height: 80px;
    }
    
    .restaurant-card {
        padding: 25px 20px;
    }
    
    .restaurant-name {
        font-size: 1.7rem;
    }
    
    .action-buttons-grid {
        max-width: 280px;
    }
    
    .hero-title {
        font-size: 1.4rem;
    }
    
    .main-logo {
        width: 60px;
        height: 60px;
    }
    
    .restaurant-name {
        font-size: 1.2rem;
    }
    
    .promocao-timer-card {
        padding: 15px;
    }
    
    .timer-display {
        gap: 10px;
    }
    
    .timer-number {
        font-size: 1.5rem;
    }
    
    .promo-title {
        font-size: 1.1rem;
    }
    
    .avaliacoes-grid {
        gap: 10px;
    }
    
    .avaliacao-card {
        padding: 12px;
    }
}