/* Estilos para o popup no frontend - Acellere Popup Manager */

.acellere-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    transition: opacity 0.3s ease;
}

.acellere-popup {
    position: fixed;
    z-index: 9999;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: all 0.3s ease;
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
}

/* Posicionamentos */
.acellere-popup-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.acellere-popup-top-left {
    top: 20px;
    left: 20px;
}

.acellere-popup-top-right {
    top: 20px;
    right: 20px;
}

.acellere-popup-bottom-left {
    bottom: 20px;
    left: 20px;
}

.acellere-popup-bottom-right {
    bottom: 20px;
    right: 20px;
}

.acellere-popup-top-center {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.acellere-popup-bottom-center {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

/* Animações */
.acellere-popup-fadeIn {
    opacity: 0;
}

.acellere-popup-fadeIn.show {
    opacity: 1;
}

.acellere-popup-slideDown {
    transform: translateY(-100%);
}

.acellere-popup-slideDown.show {
    transform: translateY(0);
}

.acellere-popup-slideUp {
    transform: translateY(100%);
}

.acellere-popup-slideUp.show {
    transform: translateY(0);
}

.acellere-popup-slideLeft {
    transform: translateX(-100%);
}

.acellere-popup-slideLeft.show {
    transform: translateX(0);
}

.acellere-popup-slideRight {
    transform: translateX(100%);
}

.acellere-popup-slideRight.show {
    transform: translateX(0);
}

.acellere-popup-zoomIn {
    transform: scale(0.3);
    opacity: 0;
}

.acellere-popup-zoomIn.show {
    transform: scale(1);
    opacity: 1;
}

.acellere-popup-bounceIn {
    transform: scale(0.3);
    opacity: 0;
}

.acellere-popup-bounceIn.show {
    animation: bounceIn 0.6s ease forwards;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Conteúdo do popup */
.acellere-popup-content {
    position: relative;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

/* Popup apenas com imagem */
.acellere-popup-image-only {
    width: auto !important;
    height: auto !important;
    max-width: 95vw;
    max-height: 95vh;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

.acellere-popup-image-only .acellere-popup-content {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acellere-popup-image-only .acellere-popup-body {
    padding: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acellere-popup-image-only .acellere-popup-image {
    margin: 0;
    max-width: 95vw;
    max-height: 95vh;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acellere-popup-image-only .acellere-popup-image img {
    max-width: 95vw;
    max-height: 95vh;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

.acellere-popup-image-only .acellere-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    font-size: 18px;
    z-index: 10;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.acellere-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.acellere-popup-close:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.acellere-popup-close-icon {
    line-height: 1;
    color: #666;
}

.acellere-popup-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.acellere-popup-image {
    margin-bottom: 15px;
    text-align: center;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.acellere-popup-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.acellere-popup-title {
    margin-bottom: 15px;
}

.acellere-popup-title h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
    line-height: 1.3;
}

.acellere-popup-text {
    color: #666;
    line-height: 1.6;
}

.acellere-popup-text p {
    margin-bottom: 15px;
}

.acellere-popup-text p:last-child {
    margin-bottom: 0;
}

/* Estados do popup */
.acellere-popup.hidden {
    display: none;
}

.acellere-popup.show {
    display: block;
}

/* Responsividade */
@media (max-width: 768px) {
    .acellere-popup {
        width: 95vw !important;
        height: auto !important;
        max-height: 80vh;
        margin: 10px;
    }
    
    .acellere-popup-center {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .acellere-popup-top-left,
    .acellere-popup-top-right,
    .acellere-popup-bottom-left,
    .acellere-popup-bottom-right {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .acellere-popup-top-center,
    .acellere-popup-bottom-center {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    
    .acellere-popup-body {
        padding: 15px;
    }
    
    .acellere-popup-title h2 {
        font-size: 20px;
    }
    
    .acellere-popup-close {
        top: 5px;
        right: 5px;
        width: 35px;
        height: 35px;
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .acellere-popup {
        width: 100vw !important;
        height: 100vh !important;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }
    
    .acellere-popup-center,
    .acellere-popup-top-left,
    .acellere-popup-top-right,
    .acellere-popup-bottom-left,
    .acellere-popup-bottom-right,
    .acellere-popup-top-center,
    .acellere-popup-bottom-center {
        top: 0;
        left: 0;
        transform: none;
    }
    
    .acellere-popup-body {
        padding: 20px;
        padding-top: 50px;
    }
}

/* Acessibilidade */
.acellere-popup-close:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Animações de entrada */
.acellere-popup-overlay {
    animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Scrollbar personalizada para o conteúdo */
.acellere-popup-body::-webkit-scrollbar {
    width: 6px;
}

.acellere-popup-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.acellere-popup-body::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.acellere-popup-body::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

