/**
 * UKROA Pop Ups - Template Styles
 * @package UKROA_Pop_Ups
 * @since 1.0.0
 */

/* ===================================
   TEMPLATE 1 - Center Modal
   =================================== */
.ukroa-template-1 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.ukroa-template-1.active {
    transform: translate(-50%, -50%) scale(1);
}

.ukroa-template-1 .ukroa-popup-content {
    border-radius: 12px;
}

@media screen and (max-width: 768px) {
    .ukroa-template-1 {
        max-width: 95%;
    }
}

/* ===================================
   TEMPLATE 2 - Slide from Right
   =================================== */
.ukroa-template-2 {
    top: 0;
    right: -400px;
    width: 400px;
    height: 100%;
    transition: right 0.4s ease;
}

.ukroa-template-2.active {
    right: 0;
}

.ukroa-template-2 .ukroa-popup-content {
    height: 100%;
    border-radius: 0;
    overflow-y: auto;
}

.ukroa-template-2 .ukroa-popup-image {
    max-height: 300px;
}

@media screen and (max-width: 768px) {
    .ukroa-template-2 {
        width: 320px;
        right: -320px;
    }
}

@media screen and (max-width: 480px) {
    .ukroa-template-2 {
        width: 280px;
        right: -280px;
    }
}

/* ===================================
   TEMPLATE 3 - Fullscreen Overlay
   =================================== */
.ukroa-template-3 {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ukroa-template-3 .ukroa-popup-content {
    width: 100%;
    height: 100%;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
}

.ukroa-template-3 .ukroa-popup-body {
    max-width: 800px;
    width: 100%;
    padding: 40px;
    text-align: center;
}

.ukroa-template-3 .ukroa-popup-title {
    font-size: 32px;
    margin-bottom: 20px;
}

.ukroa-template-3 .ukroa-popup-text {
    font-size: 18px;
}

.ukroa-template-3 .ukroa-popup-close {
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
}

@media screen and (max-width: 768px) {
    .ukroa-template-3 .ukroa-popup-body {
        padding: 30px 20px;
    }

    .ukroa-template-3 .ukroa-popup-title {
        font-size: 24px;
    }

    .ukroa-template-3 .ukroa-popup-text {
        font-size: 16px;
    }
}

/* ===================================
   TEMPLATE 4 - Bottom Right Corner
   =================================== */
.ukroa-template-4 {
    bottom: 20px;
    right: 20px;
    width: 360px;
    max-width: calc(100% - 40px);
    transform: translateY(500px);
}

.ukroa-template-4.active {
    transform: translateY(0);
}

.ukroa-template-4 .ukroa-popup-content {
    border-radius: 10px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
}

.ukroa-template-4 .ukroa-popup-image {
    max-height: 200px;
}

.ukroa-template-4 .ukroa-popup-body {
    padding: 20px;
}

.ukroa-template-4 .ukroa-popup-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.ukroa-template-4 .ukroa-popup-text {
    font-size: 14px;
}

@media screen and (max-width: 480px) {
    .ukroa-template-4 {
        bottom: 10px;
        right: 10px;
        width: calc(100% - 20px);
        max-width: none;
    }
}

/* ===================================
   TEMPLATE 5 - Top Bar
   =================================== */
.ukroa-template-5 {
    top: -100%;
    left: 0;
    width: 100%;
    transition: top 0.4s ease;
}

.ukroa-template-5.active {
    top: 0;
}

.ukroa-template-5 .ukroa-popup-content {
    border-radius: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    min-height: 80px;
}

.ukroa-template-5 .ukroa-popup-body {
    padding: 15px 60px 15px 20px;
    flex: 1;
}

.ukroa-template-5 .ukroa-popup-title {
    font-size: 18px;
    margin-bottom: 5px;
    display: inline;
}

.ukroa-template-5 .ukroa-popup-text {
    font-size: 14px;
    display: inline;
    margin-left: 10px;
}

.ukroa-template-5 .ukroa-popup-text p {
    display: inline;
    margin: 0;
}

.ukroa-template-5 .ukroa-popup-close {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
}

.ukroa-template-5 .ukroa-popup-image {
    display: none;
}

@media screen and (max-width: 768px) {
    .ukroa-template-5 .ukroa-popup-body {
        padding: 12px 50px 12px 15px;
    }

    .ukroa-template-5 .ukroa-popup-title {
        font-size: 16px;
        display: block;
        margin-bottom: 5px;
    }

    .ukroa-template-5 .ukroa-popup-text {
        font-size: 13px;
        display: block;
        margin-left: 0;
    }
}

/* ===================================
   Special Effects
   =================================== */

/* Pulse animation for corner popup */
.ukroa-template-4.active .ukroa-popup-content {
    animation: ukroaPulse 0.5s ease;
}

@keyframes ukroaPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Slide animation enhancement */
.ukroa-template-2.active {
    animation: ukroaSlideIn 0.4s ease;
}

@keyframes ukroaSlideIn {
    from {
        right: -400px;
    }
    to {
        right: 0;
    }
}

/* Dark overlay for fullscreen */
.ukroa-template-3-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}