/* --- NEON & FADE ANIMATIONS --- */
@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
        border-color: #00d2ff;
    }
    50% {
        box-shadow: 0 0 25px rgba(0, 210, 255, 0.8);
        border-color: #8a2be2;
    }
    100% {
        box-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
        border-color: #00d2ff;
    }
}

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

/* --- WIDGET CONTAINER --- */
.ps-widget-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
    max-width: 1100px;
    margin: 60px auto;
    font-family: 'Montserrat', 'Roboto', sans-serif;
    color: #ffffff;
    opacity: 0;
    animation: psFadeIn 0.5s forwards;
}

/* Reverses layout if requested */
.ps-widget-container.layout-right {
    flex-direction: row-reverse;
}

/* --- IMAGE COLUMN --- */
.ps-col-img {
    flex: 1 1 50%;
    display: flex;
    justify-content: center;
    margin-top: 5px;
}

.ps-glow-img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 2px solid #00d2ff;
    animation: neon-pulse 4s infinite alternate ease-in-out;
}

/* --- LIST COLUMN --- */
.ps-col-list {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.ps-feature-row {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ps-icon-wrapper {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Built-in SVG Styling */
.ps-icon-wrapper svg {
    width: 32px;
    height: 32px;
    fill: #00d2ff;
    filter: drop-shadow(0 0 5px rgba(0, 210, 255, 0.7));
}

/* Custom Image Icon Styling */
.ps-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ps-content-wrapper h3 {
    margin: 0 0 8px 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-align: left;
}

.ps-content-wrapper p {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.6;
    color: #b0b0b0;
    text-align: left;
}

/* --- CLICKABLE IMAGE --- */
.ps-glow-img.ps-clickable {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ps-glow-img.ps-clickable:hover {
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.9);
}

/* --- LIGHTBOX OVERLAY --- */
#ps-lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

#ps-lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

#ps-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 24px;
    border: 2px solid #00d2ff;
    animation: neon-pulse 4s infinite alternate ease-in-out;
    box-shadow: 0 0 40px rgba(0, 210, 255, 0.6), 0 0 80px rgba(138, 43, 226, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

#ps-lightbox-overlay.active #ps-lightbox-img {
    transform: scale(1);
}

/* --- MOBILE RESPONSIVE --- */
@media (max-width: 850px) {
    .ps-widget-container {
        flex-direction: column !important;
        gap: 40px;
        padding: 0 20px;
    }

    .ps-col-img {
        order: -1;
        width: 100%;
    }
    
    .ps-col-list {
        width: 100%;
    }
}