/* Holpet Popup - Frontend Styles - VERSÃO CORRIGIDA */

.holpet-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999998;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(6px);
}

.holpet-popup-overlay.active {
    opacity: 1;
}

.holpet-popup-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999999;
    max-width: 90%;
    width: 500px;
    animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.holpet-popup-content {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    text-align: center;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s ease;
}

/* Estilo específico para EMERGÊNCIA */
.holpet-popup-content[data-style="emergency"] {
    border: 3px solid #EF4444;
    box-shadow: 0 20px 60px rgba(239, 68, 68, 0.4), 
                0 0 30px rgba(239, 68, 68, 0.2);
    animation: emergencyPulse 2s ease-in-out infinite;
}

@keyframes emergencyPulse {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(239, 68, 68, 0.4), 
                    0 0 30px rgba(239, 68, 68, 0.2);
    }
    50% {
        box-shadow: 0 20px 60px rgba(239, 68, 68, 0.6), 
                    0 0 40px rgba(239, 68, 68, 0.4);
    }
}

/* Estilo específico para PROMOÇÃO */
.holpet-popup-content[data-style="promotion"] {
    border: 3px solid #10B981;
    box-shadow: 0 20px 60px rgba(16, 185, 129, 0.3);
}

.holpet-popup-content.active {
    transform: scale(1);
    opacity: 1;
}

.holpet-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    font-size: 28px;
    color: #9ca3af;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.holpet-popup-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #1f2937;
    transform: rotate(90deg);
}

/* Logo - CENTRALIZADO */
.holpet-popup-logo {
    margin: 0 auto 25px auto;
    animation: bounceIn 0.6s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.holpet-popup-logo img {
    max-width: 120px;
    height: auto;
    display: block;
}

/* Título - SEMPRE EM 1 LINHA */
.holpet-popup-title {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
    line-height: 1.2;
    animation: fadeInDown 0.5s ease 0.1s both;
    white-space: nowrap;
}

/* Emergência */
.holpet-popup-content[data-style="emergency"] .holpet-popup-title {
    color: #DC2626;
}

/* Promoção */
.holpet-popup-content[data-style="promotion"] .holpet-popup-title {
    color: #059669;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Descrição - PERMITE HTML (negrito, etc) */
.holpet-popup-description {
    font-size: 16px;
    color: #6b7280;
    line-height: 1.6;
    margin: 0 0 30px 0;
    animation: fadeInDown 0.5s ease 0.2s both;
}

.holpet-popup-description strong,
.holpet-popup-description b {
    font-weight: 700;
    color: #374151;
}

.holpet-popup-description em,
.holpet-popup-description i {
    font-style: italic;
}

.holpet-popup-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.5s ease 0.3s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.holpet-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 17px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    min-width: 180px;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botão primário */
.holpet-popup-btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.holpet-popup-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.5);
}

/* Botão EMERGÊNCIA - estilo forte */
.holpet-popup-content[data-style="emergency"] .holpet-popup-btn-primary {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.5);
    animation: emergencyButtonPulse 1.5s ease-in-out infinite;
}

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

.holpet-popup-content[data-style="emergency"] .holpet-popup-btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(239, 68, 68, 0.6);
    animation: none;
}

/* Botão PROMOÇÃO */
.holpet-popup-content[data-style="promotion"] .holpet-popup-btn-primary {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.holpet-popup-content[data-style="promotion"] .holpet-popup-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.5);
}

.holpet-popup-btn-primary:active {
    transform: translateY(0);
}

/* Botão secundário */
.holpet-popup-btn-secondary {
    color: #374151;
    background: #ffffff;
    border: 2px solid #d1d5db;
}

.holpet-popup-btn-secondary:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    transform: translateY(-2px);
}

.holpet-popup-btn-secondary:active {
    transform: translateY(0);
}

/* Mobile Responsive */
@media (max-width: 640px) {
    .holpet-popup-container {
        width: 95%;
        max-width: 95%;
    }
    
    .holpet-popup-content {
        padding: 35px 25px;
        border-radius: 16px;
    }
    
    .holpet-popup-title {
        font-size: 22px;
        white-space: normal; /* No mobile, permite quebra */
    }
    
    .holpet-popup-description {
        font-size: 15px;
    }
    
    .holpet-popup-ctas {
        flex-direction: column;
    }
    
    .holpet-popup-btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 16px;
    }
    
    .holpet-popup-logo img {
        max-width: 100px;
    }
}

@media (max-width: 400px) {
    .holpet-popup-content {
        padding: 30px 20px;
    }
    
    .holpet-popup-title {
        font-size: 20px;
    }
    
    .holpet-popup-description {
        font-size: 14px;
    }
    
    .holpet-popup-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Acessibilidade */
.holpet-popup-btn:focus,
.holpet-popup-close:focus {
    outline: 3px solid #3B82F6;
    outline-offset: 2px;
}

/* Print */
@media print {
    .holpet-popup-overlay,
    .holpet-popup-container {
        display: none !important;
    }
}
