/* ==========================================================================
   POPUP PROMOCIONAL DE ANIVERSÁRIO DO CHEF CARLO MÖCKLI - 50% OFF
   ========================================================================== */

:root {
    --promo-gold: #e5b342;
    --promo-gold-hover: #f3c354;
    --promo-gold-dark: #b8860b;
    --promo-gold-gradient: linear-gradient(135deg, #f7d570 0%, #d49a2a 50%, #aa771c 100%);
    --promo-gold-glow: rgba(229, 179, 66, 0.4);
    --promo-red: #e74c3c;
    --promo-bg-dark: #121110;
    --promo-card-bg: linear-gradient(165deg, #1f1d1a 0%, #151412 100%);
    --promo-card-border: rgba(229, 179, 66, 0.35);
    --promo-text: #f9f7f4;
    --promo-text-muted: #c4beb4;
    --promo-radius: 18px;
    --promo-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 40px rgba(212, 154, 42, 0.15);
}

/* --------------------------------------------------------------------------
   Overlay Backdrop
   -------------------------------------------------------------------------- */
.promo-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 7, 6, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.promo-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* --------------------------------------------------------------------------
   Modal Card
   -------------------------------------------------------------------------- */
.promo-modal-card {
    position: relative;
    width: 100%;
    max-width: 700px;
    max-height: 94vh;
    overflow-y: auto;
    background: var(--promo-card-bg);
    border: 1.5px solid var(--promo-card-border);
    border-radius: var(--promo-radius);
    box-shadow: var(--promo-shadow);
    color: var(--promo-text);
    padding: 34px 36px 30px;
    box-sizing: border-box;
    transform: translateY(25px) scale(0.96);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--promo-gold-dark) transparent;
}

.promo-modal-overlay.active .promo-modal-card {
    transform: translateY(0) scale(1);
}

/* Efeito de brilho de fundo no card */
.promo-modal-card::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 340px;
    height: 220px;
    background: radial-gradient(circle, rgba(229, 179, 66, 0.2) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Botão Fechar */
.promo-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--promo-text-muted);
    font-size: 22px;
    line-height: 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.promo-modal-close:hover {
    background: rgba(231, 76, 60, 0.2);
    border-color: rgba(231, 76, 60, 0.5);
    color: #ff7675;
    transform: rotate(90deg);
}

/* --------------------------------------------------------------------------
   Header & Badge
   -------------------------------------------------------------------------- */
.promo-modal-header {
    text-align: center;
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 179, 66, 0.12);
    border: 1px solid rgba(229, 179, 66, 0.4);
    color: var(--promo-gold);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 7px 18px;
    border-radius: 50px;
    box-shadow: 0 0 16px rgba(229, 179, 66, 0.15);
}

.promo-badge i {
    font-size: 0.95rem;
    color: var(--promo-gold);
}

/* --------------------------------------------------------------------------
   Modal Body Layout
   -------------------------------------------------------------------------- */
.promo-modal-body {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 26px;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* Visual do Chef e Livros */
.promo-visual-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.promo-chef-container {
    position: relative;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    padding: 6px;
    background: var(--promo-gold-gradient);
    box-shadow: 0 0 30px var(--promo-gold-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.promo-chef-img-box {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: #1c1a17;
    position: relative;
}

.promo-chef-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: contrast(1.05);
}

.promo-ribbon {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.8px;
    padding: 5px 14px;
    border-radius: 20px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    animation: promoFloat 3s ease-in-out infinite;
}

@keyframes promoFloat {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

/* Preview dos 4 Livros (PNG Transparente - Sem barras brancas) */
.promo-books-preview {
    margin-top: 14px;
    width: 195px;
    max-width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.75));
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    background: transparent !important;
}

.promo-books-preview:hover {
    transform: translateY(-2px) scale(1.05);
}

/* Conteúdo de Texto e Ações */
.promo-info-wrap {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.promo-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 10px;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
}

.promo-highlight {
    background: var(--promo-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.promo-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--promo-text-muted);
    margin: 0 0 16px;
}

.promo-desc strong {
    color: #ffffff;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Box do Cupom
   -------------------------------------------------------------------------- */
.promo-coupon-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.45);
    border: 1.5px dashed var(--promo-gold);
    border-radius: 12px;
    padding: 10px 14px;
    margin-bottom: 14px;
    position: relative;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5);
    transition: all 0.25s ease;
}

.promo-coupon-box:hover {
    border-color: var(--promo-gold-hover);
    background: rgba(229, 179, 66, 0.06);
}

.promo-coupon-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.promo-coupon-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--promo-gold);
    display: flex;
    align-items: center;
    gap: 5px;
}

.promo-coupon-code {
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    font-family: 'Courier New', Courier, monospace;
}

.promo-coupon-btn {
    background: rgba(229, 179, 66, 0.15);
    border: 1px solid var(--promo-gold);
    color: var(--promo-gold);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: 'Montserrat', sans-serif;
}

.promo-coupon-btn:hover {
    background: var(--promo-gold);
    color: #121110;
    box-shadow: 0 0 12px var(--promo-gold-glow);
}

.promo-coupon-btn.copied {
    background: #27ae60;
    border-color: #27ae60;
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Validade & Urgência
   -------------------------------------------------------------------------- */
.promo-validity {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.82rem;
    color: #e5b342;
    background: rgba(229, 179, 66, 0.08);
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 18px;
    width: fit-content;
}

.promo-validity i {
    color: var(--promo-gold);
    animation: promoTick 2s infinite;
}

@keyframes promoTick {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

.promo-validity strong {
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Botão CTA Principal
   -------------------------------------------------------------------------- */
.promo-cta-btn {
    width: 100%;
    background: var(--promo-gold-gradient);
    color: #11100f;
    border: none;
    border-radius: 12px;
    padding: 15px 22px;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 10px 25px -5px rgba(212, 154, 42, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

.promo-cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        60deg,
        rgba(255, 255, 255, 0) 20%,
        rgba(255, 255, 255, 0.45) 50%,
        rgba(255, 255, 255, 0) 80%
    );
    transform: rotate(25deg);
    animation: promoSheen 4s infinite;
}

@keyframes promoSheen {
    0% { left: -60%; }
    25% { left: 140%; }
    100% { left: 140%; }
}

.promo-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -4px rgba(212, 154, 42, 0.65);
    background: linear-gradient(135deg, #fae08c 0%, #e0aa38 50%, #b88628 100%);
}

.promo-cta-btn:active {
    transform: translateY(1px);
}

.promo-cta-btn.pulse-glow {
    animation: promoBtnPulse 2.4s infinite;
}

@keyframes promoBtnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(229, 179, 66, 0.4), 0 10px 25px -5px rgba(212, 154, 42, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(229, 179, 66, 0), 0 10px 25px -5px rgba(212, 154, 42, 0.5); }
}

.promo-note {
    font-size: 0.74rem;
    color: var(--promo-text-muted);
    text-align: center;
    margin: 10px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.promo-note i {
    color: #27ae60;
}

/* --------------------------------------------------------------------------
   Toast / Mensagem de Alerta Visual antes de sair
   -------------------------------------------------------------------------- */
.promo-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    max-width: 420px;
    background: #181715;
    border: 1.5px solid #27ae60;
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(39, 174, 96, 0.3);
    color: #ffffff;
    z-index: 1000000;
    overflow: hidden;
    transform: translateY(-40px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

.promo-toast.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.promo-toast-content {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px;
}

.promo-toast-icon {
    font-size: 1.8rem;
    color: #2ecc71;
    line-height: 1;
    margin-top: 2px;
}

.promo-toast-text h4 {
    font-size: 0.95rem;
    font-weight: 800;
    color: #2ecc71;
    margin: 0 0 4px;
}

.promo-toast-text p {
    font-size: 0.82rem;
    color: #e0ded9;
    line-height: 1.4;
    margin: 0;
}

.promo-toast-progress {
    height: 4px;
    width: 100%;
    background: #27ae60;
    transform-origin: left;
    transform: scaleX(0);
}

.promo-toast.active .promo-toast-progress {
    animation: promoToastBar 1.4s linear forwards;
}

@keyframes promoToastBar {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* --------------------------------------------------------------------------
   Badge Flutuante Discreto (Reabertura)
   -------------------------------------------------------------------------- */
.promo-floating-badge {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 99990;
    transform: translateY(30px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.promo-floating-badge.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.promo-floating-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #191816;
    border: 1.5px solid var(--promo-gold);
    border-radius: 50px;
    padding: 8px 18px 8px 10px;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 15px rgba(229, 179, 66, 0.25);
    color: #ffffff;
    transition: all 0.25s ease;
    font-family: 'Montserrat', sans-serif;
}

.promo-floating-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.7), 0 0 22px rgba(229, 179, 66, 0.45);
    background: #22201c;
    border-color: var(--promo-gold-hover);
}

.promo-floating-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--promo-gold-gradient);
    color: #121110;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    animation: promoGiftBounce 2.5s infinite ease-in-out;
}

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

.promo-floating-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 1px;
}

.promo-floating-title {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    color: var(--promo-gold);
}

.promo-floating-sub {
    font-size: 0.7rem;
    color: var(--promo-text-muted);
}

/* --------------------------------------------------------------------------
   Responsividade (Mobile & Tablet) - Compacto & Lado a Lado
   -------------------------------------------------------------------------- */
@media (max-width: 680px) {
    .promo-modal-card {
        padding: 18px 16px 16px;
        max-width: 420px;
        width: 93%;
        max-height: 92vh;
        border-radius: 16px;
    }

    .promo-modal-close {
        top: 10px;
        right: 10px;
        width: 30px;
        height: 30px;
        font-size: 18px;
    }

    .promo-modal-header {
        margin-bottom: 10px;
    }

    .promo-badge {
        font-size: 0.68rem;
        padding: 4px 12px;
        letter-spacing: 0.8px;
    }

    .promo-badge i {
        font-size: 0.75rem;
    }

    .promo-modal-body {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
    }

    /* Chef e Livros Lado a Lado no Mobile */
    .promo-visual-wrap {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 16px;
        margin-bottom: 6px;
    }

    .promo-chef-container {
        width: 78px;
        height: 78px;
        min-width: 78px;
        padding: 3px;
        box-shadow: 0 0 16px var(--promo-gold-glow);
    }

    .promo-ribbon {
        font-size: 0.62rem;
        padding: 2px 8px;
        bottom: -6px;
        letter-spacing: 0.4px;
    }

    .promo-books-preview {
        width: 125px;
        max-width: 48%;
        margin: 0;
        filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.75));
    }

    .promo-info-wrap {
        text-align: center;
    }

    .promo-title {
        font-size: 1.05rem;
        line-height: 1.25;
        margin: 0 0 6px;
    }

    .promo-desc {
        font-size: 0.8rem;
        line-height: 1.35;
        margin: 0 0 10px;
    }

    .promo-coupon-box {
        padding: 6px 10px;
        margin-bottom: 8px;
        border-radius: 10px;
    }

    .promo-coupon-label {
        font-size: 0.6rem;
    }

    .promo-coupon-code {
        font-size: 1.05rem;
        letter-spacing: 1.5px;
    }

    .promo-coupon-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
    }

    .promo-validity {
        margin: 0 auto 10px;
        font-size: 0.72rem;
        padding: 4px 10px;
    }

    .promo-cta-btn {
        font-size: 0.88rem;
        padding: 11px 16px;
        border-radius: 10px;
        gap: 8px;
    }

    .promo-note {
        font-size: 0.66rem;
        margin-top: 6px;
    }

    .promo-toast {
        top: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
    }

    .promo-floating-badge {
        bottom: 14px;
        left: 14px;
    }
}

@media (max-width: 360px) {
    .promo-chef-container {
        width: 66px;
        height: 66px;
        min-width: 66px;
    }

    .promo-books-preview {
        width: 105px;
    }

    .promo-title {
        font-size: 0.96rem;
    }

    .promo-desc {
        font-size: 0.75rem;
    }
}
