/* Popup Primeiro Click - Estilos CSS */

/* Overlay do popup */
.ppc-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(3px);
}

/* Conteúdo do popup */
.ppc-popup-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-align: center;
    position: relative;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.7);
    opacity: 0;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Animação de entrada */
.ppc-popup-overlay[style*="block"] .ppc-popup-content,
.ppc-popup-overlay:not([style*="none"]) .ppc-popup-content {
    transform: scale(1);
    opacity: 1;
}

/* Botão de fechar */
.ppc-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.ppc-popup-close:hover {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Título do popup */
.ppc-popup-content h2 {
    margin: 0 0 20px 0;
    font-size: 28px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

/* Parágrafo do popup */
.ppc-popup-content p {
    margin: 0 0 30px 0;
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Botão do popup */
.ppc-popup-button {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: white !important;
    padding: 15px 35px;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(238, 90, 36, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.ppc-popup-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.ppc-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(238, 90, 36, 0.4);
    color: white !important;
}

.ppc-popup-button:hover:before {
    left: 100%;
}

.ppc-popup-button:active {
    transform: translateY(0);
}

/* Previne scroll do body quando popup está aberto */
body.ppc-popup-open {
    overflow: hidden;
}

/* Responsividade para dispositivos móveis */
@media (max-width: 768px) {
    .ppc-popup-content {
        padding: 30px 20px;
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
    }
    
    .ppc-popup-content h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .ppc-popup-content p {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    .ppc-popup-button {
        padding: 12px 25px;
        font-size: 14px;
    }
    
    .ppc-popup-close {
        top: 10px;
        right: 15px;
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .ppc-popup-content {
        padding: 25px 15px;
        margin: 15px;
        width: calc(100% - 30px);
    }
    
    .ppc-popup-content h2 {
        font-size: 20px;
    }
    
    .ppc-popup-content p {
        font-size: 13px;
    }
    
    .ppc-popup-button {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Efeito de pulso no botão */
@keyframes pulse {
    0% {
        box-shadow: 0 8px 20px rgba(238, 90, 36, 0.3);
    }
    50% {
        box-shadow: 0 8px 20px rgba(238, 90, 36, 0.6);
    }
    100% {
        box-shadow: 0 8px 20px rgba(238, 90, 36, 0.3);
    }
}

.ppc-popup-button {
    animation: pulse 2s infinite;
}

/* Efeito de fade in mais suave */
.ppc-popup-overlay {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ppc-popup-overlay[style*="none"] {
    visibility: hidden;
    opacity: 0;
}

.ppc-popup-overlay:not([style*="none"]) {
    visibility: visible;
    opacity: 1;
}
