/**
 * Official Licenses Widget Styles
 *
 * @package Netrobit_Core
 * @since 1.0.0
 */

/* Reset Elementor container padding and margin */
.elementor-widget-netrobit-licenses {
    margin: 0 !important;
    padding: 0 !important;
}

.elementor-widget-netrobit-licenses .elementor-widget-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Container */

.netrobit-licenses-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* Header */
.netrobit-licenses-header {
    text-align: center;
    margin-bottom: 60px;
}

.netrobit-licenses-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--netrodent-text-color, #1a1a1a);
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.netrobit-licenses-subtitle {
    font-size: 18px;
    color: var(--netrodent-text-light, #666666);
    margin: 0;
    line-height: 1.5;
}

/* Grid Layout (when slider is disabled) */
.netrobit-licenses-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

/* Slider Layout */
.netrobit-licenses-slider {
    position: relative;
    overflow: hidden;
    user-select: none;
    /* Mask for fade effect on edges */
    mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
}

.netrobit-licenses-slider.dragging * {
    user-select: none;
}

/* Slider track */
.netrobit-licenses-slider .netrobit-licenses-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    align-items: start;
}

/* License Item */
.netrobit-license-item {
    flex: 0 0 auto;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
}

.netrobit-licenses-grid .netrobit-license-item {
    margin: 0 1rem;
}

.netrobit-license-link {
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

/* Logo */
.netrobit-license-logo {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
}

.netrobit-license-logo img {
    height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: opacity 0.3s ease, filter 0.3s ease;
    opacity: 1;
}

.grayscale-logos .netrobit-license-logo img {
    filter: grayscale(100%);
}

.grayscale-logos .netrobit-license-item:hover .netrobit-license-logo img {
    filter: grayscale(0%);
}

.netrobit-license-item:hover .netrobit-license-logo img {
    opacity: 0.7;
}

/* Name */
.netrobit-license-name {
    font-size: 14px;
    color: var(--netrodent-text-color, #333333);
    margin-top: 15px;
    line-height: 1.4;
    font-weight: 500;
}

/* Navigation Arrows */
.netrobit-licenses-nav {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 3;
}

.netrobit-licenses-nav button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--netrodent-white, #ffffff);
    color: var(--netrodent-text-color, #333333);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: var(--netrodent-transition-base, all 0.3s ease);
    box-shadow: 0 2px 10px var(--netrodent-shadow-light, rgba(0, 0, 0, 0.1));
}

.netrobit-licenses-nav button:hover {
    background-color: var(--netrodent-text-color, #333333);
    color: var(--netrodent-white, #ffffff);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.netrobit-licenses-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.netrobit-licenses-nav button i {
    font-size: 14px;
}

/* Pagination Dots */
.netrobit-licenses-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}

.netrobit-licenses-pagination .netrobit-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--netrodent-border-light, #cccccc);
    cursor: pointer;
    transition: var(--netrodent-transition-base, all 0.3s ease);
}

.netrobit-licenses-pagination .netrobit-dot.active {
    background-color: var(--netrodent-text-color, #333333);
    transform: scale(1.2);
}

.netrobit-licenses-pagination .netrobit-dot:hover {
    background-color: var(--netrodent-text-light, #666666);
}

/* Responsive */
@media (max-width: 1024px) {
    .netrobit-licenses {
        padding: 60px 20px;
    }

    .netrobit-licenses-title {
        font-size: 32px;
    }

    .netrobit-licenses-subtitle {
        font-size: 16px;
    }

    .netrobit-licenses-slider {
        margin: 0 40px;
        mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%);
    }

    .netrobit-license-logo img {
        height: 60px;
    }

    .netrobit-licenses-grid {
        gap: 30px;
    }

    .netrobit-licenses-grid .netrobit-license-item {
        margin: 0 30px;
    }
}

@media (max-width: 768px) {
    .netrobit-licenses {
        padding: 40px 15px;
    }

    .netrobit-licenses-header {
        margin-bottom: 40px;
    }

    .netrobit-licenses-title {
        font-size: 28px;
    }

    .netrobit-licenses-subtitle {
        font-size: 14px;
    }

    .netrobit-licenses-slider {
        margin: 0 30px;
        mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 15%, #000 85%, transparent 100%);
    }

    .netrobit-license-logo img {
        height: 50px;
    }

    .netrobit-license-name {
        font-size: 12px;
    }

    .netrobit-licenses-grid {
        gap: 20px;
    }

    .netrobit-licenses-grid .netrobit-license-item {
        margin: 0 20px;
    }

    .netrobit-licenses-nav button {
        width: 35px;
        height: 35px;
    }

    .netrobit-licenses-nav button i {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .netrobit-licenses {
        padding: 30px 10px;
    }

    .netrobit-licenses-title {
        font-size: 24px;
    }

    .netrobit-licenses-subtitle {
        font-size: 13px;
    }

    .netrobit-licenses-slider {
        margin: 0 25px;
        mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20%, #000 80%, transparent 100%);
    }

    .netrobit-license-logo img {
        height: 40px;
    }

    .netrobit-licenses-grid {
        gap: 15px;
    }

    .netrobit-licenses-grid .netrobit-license-item {
        margin: 0 15px;
    }

    .netrobit-licenses-nav button {
        width: 30px;
        height: 30px;
    }
}

/* Animation for slider */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.netrobit-licenses-slider .netrobit-license-item {
    animation: slideIn 0.5s ease;
}
