/**
 * UKROA Pop Ups - Base Styles
 * @package UKROA_Pop_Ups
 * @since 1.0.0
 */

/* Overlay */
.ukroa-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ukroa-popup-overlay.active {
    display: block;
    opacity: 1;
}

/* Popup Container */
.ukroa-popup-container {
    position: fixed;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.ukroa-popup-container.active {
    display: block;
    opacity: 1;
}

/* Popup Content */
.ukroa-popup-content {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

/* Close Button */
.ukroa-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    line-height: 32px;
    text-align: center;
    z-index: 10;
    transition: background 0.3s ease, transform 0.2s ease;
    padding: 0;
}

.ukroa-popup-close:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: rotate(90deg);
}

.ukroa-popup-close:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Image */
.ukroa-popup-image {
    width: 100%;
    height: auto;
    display: block;
    max-height: 400px;
    object-fit: cover;
}

/* Body */
.ukroa-popup-body {
    padding: 30px;
}

.ukroa-popup-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.ukroa-popup-text {
    color: #555;
    line-height: 1.6;
    font-size: 16px;
}

.ukroa-popup-text p:first-child {
    margin-top: 0;
}

.ukroa-popup-text p:last-child {
    margin-bottom: 0;
}

.ukroa-popup-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .ukroa-popup-body {
        padding: 20px;
    }

    .ukroa-popup-title {
        font-size: 20px;
    }

    .ukroa-popup-text {
        font-size: 14px;
    }

    .ukroa-popup-close {
        width: 28px;
        height: 28px;
        font-size: 18px;
        line-height: 28px;
        top: 10px;
        right: 10px;
    }
}

@media screen and (max-width: 480px) {
    .ukroa-popup-body {
        padding: 15px;
    }

    .ukroa-popup-title {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .ukroa-popup-text {
        font-size: 13px;
    }
}

/* Animation Helper Classes */
.ukroa-fade-in {
    animation: ukroaFadeIn 0.3s ease forwards;
}

@keyframes ukroaFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ukroa-fade-out {
    animation: ukroaFadeOut 0.3s ease forwards;
}

@keyframes ukroaFadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Accessibility */
.ukroa-popup-container:focus {
    outline: none;
}

.ukroa-popup-content:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}