/**
 * Menu Mobile Widget — Frontend Styles
 * Mobile app-style bottom bar: icon above, label below.
 */

.leo-mobile-menu-wrapper {
    width: 100%;
    position: relative;
}

.leo-mobile-menu {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
    gap: 0;
}

.leo-mobile-menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    padding: 6px 4px;
    transition: color 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.leo-mobile-menu-item:hover {
    text-decoration: none;
    opacity: 0.8;
}

/* Icon container */
.leo-mobile-menu-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-bottom: 2px;
    line-height: 1;
}

.leo-mobile-menu-icon img {
    object-fit: contain;
    border-radius: 50%;
    display: block;
}

.leo-mobile-menu-icon i {
    line-height: 1;
}

/* Label */
.leo-mobile-menu-label {
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
}

/* Active / current state */
.leo-mobile-menu-item.current {
    opacity: 1;
}

/* Safe area: avoid overlap with iOS Safari bottom bar + home indicator */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .leo-mobile-menu-wrapper {
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}
