/**
 * Split Vertical Content Reveal Widget - Styles
 * 
 * @package Pretpot_Massive_Addons_Kit_For_Elementor_Pro
 */

.svr-widget {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    --split-position: 50%;
    --divider-height: 50px;
    background-color: #000000;
    padding: 0;
}

/* ===========================
   PANELS
=========================== */

/* Top Panel */
.svr-panel-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--split-position, 50%) - var(--divider-height) / 2);
    z-index: 2;
    background: #ffffff;
    border-radius: 0 0 40px 40px;
    overflow: hidden;
}

/* Bottom Panel */
.svr-panel-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - var(--split-position, 50%) - var(--divider-height) / 2);
    z-index: 1;
    background: #f5f5f5;
    border-radius: 40px 40px 0 0;
    overflow: hidden;
}

/* Panel Inner Container */
.svr-panel-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    padding: 60px 40px;
    text-align: center;
}

/* ===========================
   ELEMENTS
=========================== */

.svr-element {
    width: 100%;
    max-width: 100%;
}

/* Title */
.svr-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Description */
.svr-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

.svr-description p {
    margin: 0 0 10px 0;
}

.svr-description p:last-child {
    margin-bottom: 0;
}

/* Image */
.svr-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.svr-image img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Single Icon */
.svr-icon {
    display: flex;
    justify-content: center;
    align-items: center;
}

.svr-icon i,
.svr-icon svg {
    font-size: 60px;
    width: 60px;
    height: 60px;
}

/* Icon Group */
.svr-icon-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.svr-icon-item {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background 0.3s ease;
    cursor: pointer;
    position: relative;
}

.svr-icon-item:hover {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.1);
}

.svr-icon-item i,
.svr-icon-item svg {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.svr-icon-text {
    font-size: 1rem;
    font-weight: 600;
    color: inherit;
}

/* ===========================
   DIVIDER
=========================== */

.svr-divider {
    position: absolute;
    left: 0;
    width: 100%;
    top: var(--split-position, 50%);
    transform: translateY(-50%);
    z-index: 3;
    cursor: ns-resize;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    height: var(--divider-height);
}

.svr-divider-line {
    height: 100%;
    background: transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.svr-divider-handle {
    width: 50px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.svr-divider:hover .svr-divider-handle,
.svr-divider:active .svr-divider-handle {
    background: rgba(255, 255, 255, 0.8);
    transform: scaleX(1.2);
}

/* Prevent text selection during drag */
.svr-dragging {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.svr-dragging * {
    cursor: ns-resize !important;
}

/* ===========================
   RESPONSIVE
=========================== */

@media (max-width: 1024px) {
    .svr-panel-inner {
        padding: 50px 30px;
    }

    .svr-title {
        font-size: 2rem;
    }

    .svr-description {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .svr-panel-inner {
        padding: 40px 20px;
    }

    .svr-title {
        font-size: 1.75rem;
    }

    .svr-description {
        font-size: 0.95rem;
    }

    .svr-icon-group {
        gap: 20px;
    }

    .svr-icon-item {
        width: 50px;
        height: 50px;
    }

    .svr-icon-item i,
    .svr-icon-item svg {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }

    .svr-divider-handle {
        width: 40px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .svr-panel-inner {
        padding: 30px 15px;
    }

    .svr-title {
        font-size: 1.5rem;
    }

    .svr-description {
        font-size: 0.9rem;
    }

    .svr-icon-group {
        gap: 15px;
    }

    .svr-icon-item {
        width: 45px;
        height: 45px;
    }
}

/* ===========================
   EDITOR STYLES
=========================== */

.elementor-editor-active .svr-widget {
    /* Prevent editor interference */
    pointer-events: auto;
}

.elementor-editor-active .svr-divider {
    /* Enable divider in editor */
    pointer-events: auto;
}

/* ===========================
   ACCESSIBILITY
=========================== */

.svr-divider:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.svr-divider:focus .svr-divider-handle {
    background: rgba(255, 255, 255, 0.9);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .svr-panel-top,
    .svr-panel-bottom,
    .svr-divider-handle,
    .svr-icon-item {
        transition: none;
    }
}