/**
 * Antetli Popup Styles
 * 
 * @package Antetli_Popup
 * @version 1.0.0
 */

/* Antetli Popup Styles */

.antetli-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;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
}

.antetli-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.antetli-popup-container {
    position: relative;
    max-width: 90%;
    max-height: 90vh;
    width: 600px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transform: scale(0.7);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.antetli-popup-overlay.active .antetli-popup-container {
    transform: scale(1);
}

.antetli-popup-content {
    position: relative;
    padding: 40px;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    overflow-y: auto;
    z-index: 2;
}

.antetli-popup-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
}

.antetli-popup-background-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    cursor: pointer;
    text-decoration: none;
}

.antetli-popup-background-link .antetli-popup-background {
    position: relative;
    width: 100%;
    height: 100%;
}

.antetli-popup-text {
    position: relative;
    z-index: 2;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
}

.antetli-popup-text h1,
.antetli-popup-text h2,
.antetli-popup-text h3,
.antetli-popup-text h4,
.antetli-popup-text h5,
.antetli-popup-text h6 {
    margin: 0 0 20px 0;
    color: #222;
    font-weight: 600;
}

.antetli-popup-text p {
    margin: 0 0 15px 0;
}

.antetli-popup-text p:last-child {
    margin-bottom: 0;
}

.antetli-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.antetli-popup-close:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.antetli-popup-close::before,
.antetli-popup-close::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 2px;
    background: #333;
    transition: all 0.3s ease;
}

.antetli-popup-close::before {
    transform: rotate(45deg);
}

.antetli-popup-close::after {
    transform: rotate(-45deg);
}

/* Responsive Design */
@media (max-width: 768px) {
    .antetli-popup-container {
        width: 95%;
        max-width: 400px;
    }
    
    .antetli-popup-content {
        padding: 30px 20px;
    }
    
    .antetli-popup-text {
        font-size: 14px;
    }
    
    .antetli-popup-text h1,
    .antetli-popup-text h2,
    .antetli-popup-text h3 {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .antetli-popup-content {
        padding: 25px 15px;
        min-height: 150px;
    }
    
    .antetli-popup-text {
        font-size: 13px;
    }
    
    .antetli-popup-close {
        top: 10px;
        right: 10px;
        width: 25px;
        height: 25px;
    }
    
    .antetli-popup-close::before,
    .antetli-popup-close::after {
        width: 12px;
        height: 1.5px;
    }
}

/* Loading Animation */
.antetli-popup-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Print Styles */
@media print {
    .antetli-popup-overlay {
        display: none !important;
    }
} 