/* hamyar-tools/assets/css/hmyt-mobile-menu.css */

.hmyt-mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 15px;
    left: 15px;
    right: 15px;
    width: auto;
    height: 60px;
    --blur: 2px;
    --sat: 125%;
    --innerTop: rgba(255,255,255,.46);
    --innerBottom: rgba(10,14,28,.02);
    background: radial-gradient(1px 1px at 18% 24%,rgba(255,255,255,.05) 50%,rgba(0,0,0,0) 51%),radial-gradient(1px 1px at 72% 78%,rgba(0,0,0,.02) 50%,rgba(0,0,0,0) 51%),radial-gradient(1px 1px at 42% 62%,rgba(255,255,255,.04) 50%,rgba(0,0,0,.01) 51%),linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,3%))!important;
    background-blend-mode: overlay,overlay,overlay,normal;
    border: 1px solid rgba(255,255,255,.38);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(var(--sat)) contrast(1.5);
    backdrop-filter: blur(var(--blur)) saturate(var(--sat)) contrast(1.5);
    box-shadow: 0 6px 10px 0 rgba(178,189,206,.05)!important;
    -webkit-box-shadow: 0 6px 10px 0 rgba(178,189,206,.05)!important;
    overflow: visible;
    border-radius: 40px;
    corner-shape: squircle!important;
    z-index: 9998;
}

.hmyt-mobile-bottom-nav:before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: 40px;
    corner-shape: squircle!important;
    pointer-events: none;
    background: conic-gradient(from 35deg,rgba(255,255,255,6%) 0 8%,rgba(255,255,255,.03) 12% 36%,rgba(255,255,255,0) 40% 58%,rgba(0,0,0,.02) 62% 78%,rgba(255,255,255,.03) 84% 100%);
    -webkit-mask: radial-gradient(160% 160% at -10% -10%,#000 0 36%,transparent 56%),radial-gradient(150% 150% at 110% 110%,#000 0 42%,transparent 62%);
    mask: radial-gradient(160% 160% at -10% -10%,#000 0 36%,transparent 56%),radial-gradient(150% 150% at 110% 110%,#000 0 42%,transparent 62%);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: .06;
}

.hmyt-mobile-bottom-nav:after{
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: inherit;
    pointer-events: none;
    background: radial-gradient(150% 170% at 50% 0%,rgba(165,196,241,21%) 0%,rgba(255,255,255,.18) 34%,rgba(94,94,94,12%) 56%,rgba(255,255,255,0) 74%);
    -webkit-backdrop-filter: blur(0) saturate(140%) contrast(1.08);
    backdrop-filter: blur(0) saturate(140%) contrast(1.08);
    box-shadow: 0 -1px 0 rgba(255,255,255,.45) inset,0 14px 26px rgba(0,0,0,.08);
    border-radius: 40px;
    corner-shape: squircle!important;
}

.hmyt-mobile-nav-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.hmyt-mobile-nav-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    height: 100%;
    width: 100%;
    padding: 6px 4px;
    box-sizing: border-box;
    transition: all 0.2s ease-in-out;
}

.hmyt-mobile-nav-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 28px;
    width: 28px;
    line-height: 1;
    color: #161616;
}

.hmyt-mobile-nav-icon svg {
    width: 100%;
    height: 100%;
    max-width: 26px;
    max-height: 26px;
    stroke: currentColor;
}

/* Specific fix for search icon from ajax module */
.hmyt-mobile-nav-icon svg path[stroke="currentColor"] {
    stroke: currentColor;
}
/* Specific fix for home icon */
.hmyt-mobile-nav-icon svg path[fill="none"] {
    fill: none;
}


.hmyt-mobile-nav-label {
    font-size: 11px;
    margin-top: 2px;
    color: #212121;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

/* Active / Hover State */
.hmyt-mobile-nav-item.active .hmyt-mobile-nav-icon,
.hmyt-mobile-nav-item:hover .hmyt-mobile-nav-icon {
    color: var(--hmyt-mm-icon-color-active, #1C274C);
}

.hmyt-mobile-nav-item.active .hmyt-mobile-nav-label,
.hmyt-mobile-nav-item:hover .hmyt-mobile-nav-label {
    color: var(--hmyt-mm-text-color-active, #1C274C);
}

/* Desktop Hide Logic */
@media (min-width: 769px) {
    .hmyt-mobile-bottom-nav.hmyt-mm-hide-desktop {
        display: none;
    }

    /* Apply max-width and center on desktop */
    .hmyt-mobile-bottom-nav {
        max-width: 400px;
        width: 100%; /* Fill up to max-width */
        
        /* Centering logic */
        left: 50%;
        right: auto; /* Override base style 'right: 15px' */
        transform: translateX(-50%);
    }
}