/* Synnio PopUps - Frontend Styles */

/* Overlay */
.synnio-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: synnioFadeIn 0.3s ease-out;
}

@keyframes synnioFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Container Base */
.synnio-popup-container {
    position: relative;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: synnioSlideUp 0.4s ease-out;
}

@keyframes synnioSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Close Button */
.synnio-popup-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.synnio-popup-close:hover {
    background-color: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.synnio-popup-close svg {
    color: #333;
}

/* Common Elements */
.synnio-popup-subtitle {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.synnio-popup-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

.synnio-popup-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.synnio-popup-text p:last-child {
    margin-bottom: 0;
}

.synnio-popup-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: #0073aa;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.synnio-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 115, 170, 0.4);
}

.synnio-popup-button svg {
    transition: transform 0.3s ease;
}

.synnio-popup-button:hover svg {
    transform: translateX(5px);
}

/* =====================================================
   LAYOUT 1: MODERN CARD
   ===================================================== */
.synnio-modern-card {
    max-width: 500px;
}

.synnio-modern-card .synnio-popup-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.synnio-modern-card .synnio-popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.synnio-modern-card .synnio-popup-image-wrapper:hover .synnio-popup-image {
    transform: scale(1.05);
}

.synnio-modern-card .synnio-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
}

.synnio-modern-card .synnio-popup-content {
    padding: 40px;
}

/* =====================================================
   LAYOUT 2: ELEGANT CENTER
   ===================================================== */
.synnio-elegant-center {
    max-width: 550px;
}

.synnio-elegant-inner {
    padding: 50px 40px;
    text-align: center;
}

.synnio-elegant-image-circle {
    width: 150px;
    height: 150px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.synnio-elegant-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.synnio-elegant-content .synnio-popup-divider {
    width: 60px;
    height: 3px;
    background: linear-gradient(to right, transparent, currentColor, transparent);
    margin: 20px auto;
    opacity: 0.3;
}

/* =====================================================
   LAYOUT 3: SIDE IMAGE
   ===================================================== */
.synnio-side-image {
    max-width: 800px;
}

.synnio-side-image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 500px;
}

.synnio-side-image-left {
    position: relative;
    overflow: hidden;
}

.synnio-side-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.synnio-side-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 115, 170, 0.1) 0%, transparent 100%);
}

.synnio-side-image-right {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* =====================================================
   LAYOUT 4: MINIMAL TOP
   ===================================================== */
.synnio-minimal-top {
    max-width: 450px;
}

.synnio-minimal-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.synnio-minimal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.synnio-minimal-content {
    padding: 40px;
}

.synnio-minimal-button-wrapper {
    text-align: center;
}

/* =====================================================
   LAYOUT 5: GRADIENT WAVE
   ===================================================== */
.synnio-gradient-wave {
    max-width: 600px;
    overflow: hidden;
}

.synnio-gradient-background {
    height: 150px;
    position: relative;
}

.synnio-wave {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 60px;
}

.synnio-gradient-content {
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    align-items: center;
}

.synnio-gradient-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.synnio-gradient-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.synnio-gradient-button {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */
@media (max-width: 768px) {
    .synnio-popup-overlay {
        padding: 15px;
    }

    .synnio-popup-container {
        max-height: 95vh;
    }

    .synnio-popup-close {
        width: 36px;
        height: 36px;
        top: 15px;
        right: 15px;
    }

    .synnio-popup-title {
        font-size: 24px;
    }

    .synnio-popup-text {
        font-size: 15px;
    }

    /* Modern Card */
    .synnio-modern-card .synnio-popup-content {
        padding: 30px 25px;
    }

    /* Elegant Center */
    .synnio-elegant-inner {
        padding: 35px 25px;
    }

    .synnio-elegant-image-circle {
        width: 120px;
        height: 120px;
    }

    /* Side Image */
    .synnio-side-image-grid {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .synnio-side-image-left {
        height: 200px;
    }

    .synnio-side-image-right {
        padding: 30px 25px;
    }

    /* Minimal Top */
    .synnio-minimal-image {
        height: 150px;
    }

    .synnio-minimal-content {
        padding: 30px 25px;
    }

    /* Gradient Wave */
    .synnio-gradient-content {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 30px 25px;
        text-align: center;
    }

    .synnio-gradient-image {
        margin: 0 auto;
    }

    .synnio-gradient-background {
        height: 100px;
    }
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
    .synnio-popup-overlay,
    .synnio-popup-container {
        animation: none;
    }

    .synnio-popup-close:hover,
    .synnio-popup-button:hover,
    .synnio-modern-card .synnio-popup-image {
        transition: none;
        transform: none;
    }
}

/* Focus Styles */
.synnio-popup-close:focus,
.synnio-popup-button:focus {
    outline: 3px solid #0073aa;
    outline-offset: 2px;
}
