
/* ============================================================
   HLxHub — Premium Featured Mobiles Section
   File: assets/css/home/featured-mobiles.css
============================================================ */

.hlx-featured-section {
    --hlx-blue: #1769ff;
    --hlx-orange: #ff8a00;
    --hlx-dark: #172033;
    --hlx-muted: #7d899b;
    --hlx-border: #e8edf4;

    position: relative;
    width: 100%;
    min-width: 0;
    padding: 34px 0 30px;
    overflow: hidden;

    background: #ffffff;
}

.hlx-featured-section *,
.hlx-featured-section *::before,
.hlx-featured-section *::after {
    box-sizing: border-box;
}

.hlx-featured-section .hlx-container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding-right: 20px;
    padding-left: 20px;
}


/* ============================================================
   SECTION HEADING
============================================================ */

.hlx-featured-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    width: 100%;
    margin-bottom: 21px;
}

.hlx-featured-heading-content {
    flex: 1;
    min-width: 0;
}


/* SMALL LABEL */

.hlx-featured-heading-content .hlx-section-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 8px;
    padding: 5px 10px;

    color: var(--hlx-blue);
    background: #eff5ff;
    border: 1px solid #dce9ff;
    border-radius: 6px;

    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.hlx-featured-heading-content .hlx-section-label::before {
    content: "";
    display: block;

    width: 6px;
    height: 6px;

    background: var(--hlx-blue);
    border-radius: 50%;
}


/* TITLE */

.hlx-featured-heading-content h2 {
    margin: 0;

    color: var(--hlx-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -.7px;
}


/* DESCRIPTION */

.hlx-featured-heading-content p {
    margin: 7px 0 0;

    color: var(--hlx-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
}


/* ============================================================
   HEADING ACTIONS
============================================================ */

.hlx-featured-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-shrink: 0;
}


/* VIEW ALL */

.hlx-featured-heading .hlx-view-all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 36px;
    padding: 0 13px;

    color: var(--hlx-blue);
    background: #ffffff;
    border: 1px solid #dce7fb;
    border-radius: 9px;

    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;

    transition: all .22s ease;
}

.hlx-featured-heading .hlx-view-all span {
    font-size: 17px;
    line-height: 1;
    transition: transform .22s ease;
}

.hlx-featured-heading .hlx-view-all:hover {
    color: #ffffff;
    background: var(--hlx-blue);
    border-color: var(--hlx-blue);
    box-shadow: 0 4px 12px rgba(23, 105, 255, .16);
}

.hlx-featured-heading .hlx-view-all:hover span {
    transform: translateX(3px);
}


/* ============================================================
   SLIDER NAVIGATION
============================================================ */

.hlx-featured-controls {
    display: flex;
    align-items: center;
    gap: 7px;
}

.hlx-featured-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 37px;
    height: 37px;
    padding: 0;

    color: #45536a;
    background: #ffffff;
    border: 1px solid var(--hlx-border);
    border-radius: 10px;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.hlx-featured-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

.hlx-featured-arrow:hover:not(:disabled) {
    color: #ffffff;
    background: var(--hlx-blue);
    border-color: var(--hlx-blue);
    box-shadow: 0 4px 10px rgba(23, 105, 255, .2);
}

.hlx-featured-arrow:active:not(:disabled) {
    transform: scale(.93);
}

.hlx-featured-arrow:disabled {
    color: #c4cbd6;
    background: #f7f8fa;
    border-color: #edf0f4;
    cursor: not-allowed;
}


/* ============================================================
   SLIDER WRAPPER
============================================================ */

.hlx-featured-slider-wrapper {
    position: relative;
    width: 100%;
    min-width: 0;
}


/* ============================================================
   HORIZONTAL SLIDER
============================================================ */

.hlx-featured-slider {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;

    gap: 16px;

    width: 100%;
    min-width: 0;

    overflow-x: auto;
    overflow-y: hidden;

    padding: 5px 2px 17px;

    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 2px;
    overscroll-behavior-x: contain;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: thin;
    scrollbar-color: #c6d1e0 #f3f5f8;
}


/* EACH CARD */

.hlx-featured-slider > * {
    display: flex;
    flex: 0 0 250px;
    flex-direction: column;

    width: 250px;
    min-width: 250px;
    max-width: 250px;

    height: auto;
    min-height: 0;

    scroll-snap-align: start;
}


/* CARD STYLING */

.hlx-featured-slider > .hlx-mobile-card {
    height: auto;
    background: #ffffff;
    border: 1px solid var(--hlx-border);
    border-radius: 15px;

    transition:
        border-color .25s ease,
        box-shadow .25s ease,
        transform .25s ease;
}

.hlx-featured-slider > .hlx-mobile-card:hover {
    border-color: #cbdcff;
    box-shadow: 0 7px 22px rgba(23, 45, 85, .08);
    transform: translateY(-3px);
}


/* ============================================================
   SCROLLBAR
============================================================ */

.hlx-featured-slider::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.hlx-featured-slider::-webkit-scrollbar-track {
    background: #f1f3f7;
    border-radius: 20px;
}

.hlx-featured-slider::-webkit-scrollbar-thumb {
    background: #c6d1e0;
    border-radius: 20px;
    transition: background .2s ease;
}

.hlx-featured-slider::-webkit-scrollbar-thumb:hover {
    background: var(--hlx-blue);
}


/* ============================================================
   EMPTY STATE
============================================================ */

.hlx-featured-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    width: 100%;
    min-height: 130px;
    padding: 25px;

    background: #fafbfe;
    border: 1px dashed #dce3ed;
    border-radius: 14px;
}

.hlx-featured-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;

    color: var(--hlx-blue);
    background: #edf4ff;
    border-radius: 12px;
}

.hlx-featured-empty-icon svg {
    width: 23px;
    height: 23px;
}

.hlx-featured-empty p {
    margin: 0;

    color: #7d899b;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
}


/* ============================================================
   LARGE DESKTOP
============================================================ */

@media (min-width: 1440px) {

    .hlx-featured-section .hlx-container {
        max-width: 1320px;
    }

    .hlx-featured-slider {
        gap: 17px;
    }

    .hlx-featured-slider > * {
        flex-basis: 255px;
        width: 255px;
        min-width: 255px;
        max-width: 255px;
    }

}


/* ============================================================
   TABLET
============================================================ */

@media (max-width: 1024px) {

    .hlx-featured-section {
        padding: 28px 0;
    }

    .hlx-featured-heading-content h2 {
        font-size: 23px;
    }

    .hlx-featured-slider {
        gap: 13px;
    }

    .hlx-featured-slider > * {
        flex-basis: 230px;
        width: 230px;
        min-width: 230px;
        max-width: 230px;
    }

}


/* ============================================================
   MOBILE
============================================================ */

@media (max-width: 600px) {

    .hlx-featured-section {
        padding: 23px 0;
    }

    .hlx-featured-section .hlx-container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .hlx-featured-heading {
        align-items: flex-end;
        gap: 8px;
        margin-bottom: 15px;
    }

    .hlx-featured-heading-content .hlx-section-label {
        margin-bottom: 6px;
        padding: 4px 8px;
        font-size: 9px;
    }

    .hlx-featured-heading-content h2 {
        font-size: 19px;
        letter-spacing: -.4px;
    }

    .hlx-featured-heading-content p {
        margin-top: 5px;
        font-size: 10px;
    }

    .hlx-featured-heading-actions {
        gap: 7px;
    }

    .hlx-featured-heading .hlx-view-all {
        min-height: 31px;
        padding: 0 9px;
        gap: 4px;
        font-size: 10px;
    }

    .hlx-featured-heading .hlx-view-all span {
        font-size: 15px;
    }

    .hlx-featured-controls {
        display: none;
    }

    .hlx-featured-slider {
        gap: 11px;
        padding: 3px 1px 13px;
        scroll-snap-type: x mandatory;
    }

    .hlx-featured-slider > * {
        flex-basis: 205px;
        width: 205px;
        min-width: 205px;
        max-width: 205px;
    }

    .hlx-featured-slider > .hlx-mobile-card {
        border-radius: 13px;
    }

    .hlx-featured-slider::-webkit-scrollbar {
        height: 4px;
    }

}


/* ============================================================
   SMALL MOBILE
============================================================ */

@media (max-width: 380px) {

    .hlx-featured-section .hlx-container {
        padding-right: 11px;
        padding-left: 11px;
    }

    .hlx-featured-heading-content h2 {
        font-size: 17px;
    }

    .hlx-featured-heading-content p {
        max-width: 190px;
        font-size: 9px;
    }

    .hlx-featured-slider {
        gap: 9px;
    }

    .hlx-featured-slider > * {
        flex-basis: 190px;
        width: 190px;
        min-width: 190px;
        max-width: 190px;
    }

}


/* ============================================================
   ACCESSIBILITY
============================================================ */

.hlx-featured-section button:focus-visible,
.hlx-featured-section a:focus-visible,
.hlx-featured-slider:focus-visible {
    outline: 3px solid rgba(23, 105, 255, .35);
    outline-offset: 3px;
}


/* ============================================================
   REDUCED MOTION
============================================================ */

@media (prefers-reduced-motion: reduce) {

    .hlx-featured-slider {
        scroll-behavior: auto;
    }

    .hlx-featured-arrow,
    .hlx-featured-heading .hlx-view-all,
    .hlx-featured-slider > .hlx-mobile-card {
        transition: none !important;
    }

    .hlx-featured-slider > .hlx-mobile-card:hover {
        transform: none;
    }

}
/* ============================================================
   HLxHub — Featured Section Heading
============================================================ */

.hlx-featured-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    gap: 20px;
    margin-bottom: 24px;
}

.hlx-featured-heading-content {
    flex: 1;
    min-width: 0;
    text-align: left;
    margin-right: auto;
}

.hlx-featured-heading-content .hlx-section-label {
    display: inline-flex;
    align-items: center;
    margin-bottom: 8px;
    color: #1769ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hlx-featured-heading-content h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(23px, 3vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.8px;
    text-align: left;
}

.hlx-featured-heading-content p {
    margin: 8px 0 0;
    color: #778196;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.hlx-featured-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
    flex-shrink: 0;
}

/* Mobile */

@media (max-width: 600px) {

    .hlx-featured-heading {
        align-items: flex-end;
        gap: 10px;
        margin-bottom: 18px;
    }

    .hlx-featured-heading-content h2 {
        font-size: 22px;
    }

    .hlx-featured-heading-content p {
        font-size: 12px;
    }

    .hlx-featured-heading-actions {
        gap: 7px;
    }
}