/* ================================
   Mobidictum Sticky Nav Widget v3.0
   ================================ */

/* Wrapper — holds nav + arrows + fades */
.mbd-nav-wrap {
    position: relative;
    z-index: 90;
}

/* Bar */
.mbd-sticky-nav {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    border: 1px solid #333;
    border-radius: 50px;
    margin: 0 15px 15px;
    padding: 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.mbd-sticky-nav::-webkit-scrollbar {
    display: none;
}

/* Nav items */
.mbd-sticky-nav .mbd-nav-item {
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    white-space: nowrap;
    border: none;
    background: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
}
/* When items fit: equal width distribution */
.mbd-sticky-nav.mbd-fit .mbd-nav-item {
    flex: 1 1 0;
    min-width: 0;
}

.mbd-nav-item__title {
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
    line-height: 1;
}

/* Icon vertical alignment */
.mbd-nav-item__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.mbd-nav-item__icon i {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
    transition: color 0.2s ease;
    line-height: 1;
}
.mbd-nav-item__icon svg {
    width: 16px;
    height: 16px;
    fill: rgba(255, 255, 255, 0.45);
    transition: fill 0.2s ease;
    display: block;
}

/* Hover */
.mbd-nav-item:hover {
    background-color: rgba(255, 255, 255, 0.06);
}
.mbd-nav-item:hover .mbd-nav-item__title {
    color: rgba(255, 255, 255, 0.85);
}
.mbd-nav-item:hover .mbd-nav-item__icon i {
    color: rgba(255, 255, 255, 0.7);
}
.mbd-nav-item:hover .mbd-nav-item__icon svg {
    fill: rgba(255, 255, 255, 0.7);
}

/* Active */
.mbd-nav-item.active {
    background-color: rgba(255, 255, 255, 0.12);
}
.mbd-nav-item.active .mbd-nav-item__title {
    color: #FFFFFF;
}
.mbd-nav-item.active .mbd-nav-item__icon i {
    color: #FFFFFF;
}
.mbd-nav-item.active .mbd-nav-item__icon svg {
    fill: #FFFFFF;
}

/* ================================
   Sticky state
   ================================ */
.mbd-sticky-nav.mbd-is-stuck {
    margin: 0 !important;
}

/* ================================
   Scroll arrows — positioned on wrapper, outside scrollable nav
   ================================ */
.mbd-scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(26, 26, 26, 0.95);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, background 0.2s ease;
    padding: 0;
    font-size: 16px;
    line-height: 1;
}
.mbd-scroll-arrow:hover {
    background: rgba(60, 60, 60, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}
.mbd-scroll-arrow.mbd-arrow-left  { left: 20px; }
.mbd-scroll-arrow.mbd-arrow-right { right: 20px; }
.mbd-nav-wrap.can-scroll-left  .mbd-arrow-left  { opacity: 1; pointer-events: auto; }
.mbd-nav-wrap.can-scroll-right .mbd-arrow-right { opacity: 1; pointer-events: auto; }

/* Fade edges — positioned on wrapper */
.mbd-fade-edge {
    position: absolute;
    top: 0;
    width: 40px;
    height: 100%;
    pointer-events: none;
    z-index: 6;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.mbd-fade-edge.left {
    left: 15px;
    background: linear-gradient(to right, #1A1A1A 0%, transparent 100%);
    border-radius: 50px 0 0 50px;
}
.mbd-fade-edge.right {
    right: 15px;
    background: linear-gradient(to left, #1A1A1A 0%, transparent 100%);
    border-radius: 0 50px 50px 0;
}
/* When stuck, nav has margin:0 so fades align to edge */
.mbd-nav-wrap.mbd-is-stuck .mbd-fade-edge.left  { left: 0; }
.mbd-nav-wrap.mbd-is-stuck .mbd-fade-edge.right { right: 0; }
.mbd-nav-wrap.mbd-is-stuck .mbd-arrow-left  { left: 5px; }
.mbd-nav-wrap.mbd-is-stuck .mbd-arrow-right { right: 5px; }
.mbd-nav-wrap.can-scroll-left  .mbd-fade-edge.left  { opacity: 1; }
.mbd-nav-wrap.can-scroll-right .mbd-fade-edge.right { opacity: 1; }

/* ================================
   Search overlay
   ================================ */
.mbd-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 15vh;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.mbd-search-overlay.active { opacity: 1; visibility: visible; }
.mbd-search-box { width: 90%; max-width: 600px; position: relative; }
.mbd-search-box input {
    width: 100%;
    padding: 16px 50px 16px 24px;
    font-size: 18px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #1A1A1A;
    border: 1px solid #444;
    border-radius: 50px;
    color: #fff;
    outline: none;
}
.mbd-search-box input::placeholder { color: #888; }
.mbd-search-box input:focus { border-color: #AE0012; }
.mbd-search-close {
    position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: #888; font-size: 20px; cursor: pointer;
}
.mbd-search-close:hover { color: #fff; }

/* ================================
   Responsive - Tablet
   ================================ */
@media (max-width: 1024px) {
    .mbd-scroll-arrow {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}

/* ================================
   Responsive - Mobile
   ================================ */
@media (max-width: 767px) {
    .mbd-scroll-arrow {
        width: 24px;
        height: 24px;
        font-size: 13px;
    }
    .mbd-fade-edge {
        width: 30px;
    }
}

/* Elementor editor: show all items for easy editing */
.elementor-editor-active .mbd-sticky-nav {
    flex-wrap: wrap;
    overflow: visible;
}
