/**
 * ZenDrop Homepage Slides Widget Styles
 */

.zendrop-homepage-slides-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Tab Navigation */
.zendrop-hs-tabs-nav {
    padding: 10px 0;
}

.zendrop-hs-tabs-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
}

.zendrop-hs-tab,
.zendrop-homepage-slides-container .zendrop-hs-tab,
.zendrop-homepage-slides-container button.zendrop-hs-tab,
.elementor-widget-container .zendrop-hs-tab {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 14px 16px !important;
    border-radius: 14px !important;
    border: none !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    line-height: normal !important;
    font-size: inherit !important;
    min-height: auto !important;
    height: auto !important;
}

.zendrop-hs-tab.active,
.zendrop-homepage-slides-container .zendrop-hs-tab.active,
.zendrop-homepage-slides-container button.zendrop-hs-tab.active,
.elementor-widget-container .zendrop-hs-tab.active {
    background: #e9e8ff !important;
    background-color: #e9e8ff !important;
}

.zendrop-hs-tab:not(.active):hover,
.zendrop-homepage-slides-container .zendrop-hs-tab:not(.active):hover,
.zendrop-homepage-slides-container button.zendrop-hs-tab:not(.active):hover,
.elementor-widget-container .zendrop-hs-tab:not(.active):hover {
    background: #f6f6f6 !important;
    background-color: #f6f6f6 !important;
}

.zendrop-hs-tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.zendrop-hs-tab-icon svg,
.zendrop-hs-tab-icon img {
    width: 24px;
    height: 24px;
}

.zendrop-hs-tab.active .zendrop-hs-tab-icon svg,
.zendrop-hs-tab.active .zendrop-hs-tab-icon svg path,
.zendrop-hs-tab.active .zendrop-hs-tab-icon svg * {
    fill: #5952e1 !important;
    color: #5952e1 !important;
    stroke: #5952e1 !important;
}

.zendrop-hs-tab:not(.active) .zendrop-hs-tab-icon svg,
.zendrop-hs-tab:not(.active) .zendrop-hs-tab-icon svg path,
.zendrop-hs-tab:not(.active) .zendrop-hs-tab-icon svg * {
    fill: #858585 !important;
    color: #858585 !important;
    stroke: #858585 !important;
}

.zendrop-hs-tab-label {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.zendrop-hs-tab.active .zendrop-hs-tab-label {
    color: #5952e1;
}

.zendrop-hs-tab:not(.active) .zendrop-hs-tab-label {
    color: #858585;
}

.zendrop-hs-tab-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
}

.zendrop-hs-tab-separator svg {
    width: 24px;
    height: 24px;
}

/* Content Area */
.zendrop-hs-content-wrapper {
    border: 1px solid #d7d8e3;
    border-radius: 12px;
    overflow: hidden;
}

.zendrop-hs-slide-content {
    display: none;
    animation: zendropFadeInSlide 0.4s ease-out;
}

.zendrop-hs-slide-content.active {
    display: block;
}

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

.zendrop-hs-content-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 56px;
    gap: 40px;
}

/* Text Content */
.zendrop-hs-text-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 530px;
}

.zendrop-hs-content-title {
    font-family: 'General Sans', sans-serif;
    font-weight: 600;
    font-size: 36px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #5952e1;
    margin: 0;
}

.zendrop-hs-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.zendrop-hs-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.zendrop-hs-feature-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.zendrop-hs-feature-icon svg,
.zendrop-hs-feature-icon img {
    width: 20px;
    height: 20px;
}

.zendrop-hs-feature-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    color: #030303;
}

/* Button */
.zendrop-hs-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background-color: #5952e1;
    color: #ffffff;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.4;
    letter-spacing: -0.02em;
    transition: background-color 0.3s ease;
    width: fit-content;
}

.zendrop-hs-button:hover {
    background-color: #4a44c9;
    color: #ffffff;
}

.zendrop-hs-button svg {
    width: 24px;
    height: 24px;
}

/* Image Content */
.zendrop-hs-image-content {
    flex-shrink: 0;
    width: 510px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zendrop-hs-image-wrapper {
    width: 350px;
    height: 350px;
    border-radius: 17.5px;
    overflow: hidden;
    background-color: #c8c8c8;
}

.zendrop-hs-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .zendrop-hs-slide-content {
        animation: none;
    }
    .zendrop-hs-tab,
    .zendrop-hs-button {
        transition: none;
    }
}

/* Tablet Styles */
@media (max-width: 1024px) {
    .zendrop-hs-tabs-wrapper {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        justify-content: flex-start;
        gap: 8px;
        padding-bottom: 10px;
    }

    .zendrop-hs-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

    .zendrop-hs-tab-separator {
        display: none;
    }

    .zendrop-hs-tab,
    .zendrop-homepage-slides-container .zendrop-hs-tab,
    .zendrop-homepage-slides-container button.zendrop-hs-tab,
    .elementor-widget-container .zendrop-hs-tab {
        flex-shrink: 0;
    }

    .zendrop-hs-tab:not(.active),
    .zendrop-homepage-slides-container .zendrop-hs-tab:not(.active),
    .zendrop-homepage-slides-container button.zendrop-hs-tab:not(.active),
    .elementor-widget-container .zendrop-hs-tab:not(.active) {
        background: #ffffff !important;
        background-color: #ffffff !important;
    }

    .zendrop-hs-tab-label {
        font-size: 16px;
    }

    .zendrop-hs-content-inner {
        flex-direction: column;
        padding: 32px 16px;
        gap: 32px;
    }

    .zendrop-hs-text-content {
        max-width: 100%;
        width: 100%;
    }

    .zendrop-hs-content-title {
        font-family: 'Roboto', sans-serif;
        font-weight: 700;
        font-size: 32px;
        line-height: 1.2;
    }

    .zendrop-hs-feature-text {
        font-size: 18px;
    }

    .zendrop-hs-button {
        width: 100%;
        justify-content: center;
    }

    .zendrop-hs-image-content {
        width: 100%;
        height: auto;
    }

    .zendrop-hs-image-wrapper {
        width: 318px;
        height: 318px;
        margin: 0 auto;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .zendrop-hs-tabs-nav {
        margin: 0 -15px;
        padding: 10px 15px;
    }

    .zendrop-hs-tab,
    .zendrop-homepage-slides-container .zendrop-hs-tab,
    .zendrop-homepage-slides-container button.zendrop-hs-tab,
    .elementor-widget-container .zendrop-hs-tab {
        height: 56px !important;
        gap: 6px !important;
        padding: 2px 16px !important;
        border-radius: 14px !important;
    }

    .zendrop-hs-tab-icon {
        width: 24px;
        height: 24px;
    }

    .zendrop-hs-tab-icon svg,
    .zendrop-hs-tab-icon img {
        width: 20px;
        height: 20px;
    }

    .zendrop-hs-content-inner {
        padding: 24px 16px;
    }

    .zendrop-hs-content-title {
        font-size: 28px;
    }

    .zendrop-hs-feature-text {
        font-size: 16px;
    }

    .zendrop-hs-image-wrapper {
        width: 280px;
        height: 280px;
    }
}
