/* =========================================
   GameNav Pro - Frontend Styles
   Author: Wilamchapbou Chawang
   ========================================= */

.gamenav-bar {
    position: fixed;
    bottom: var(--gamenav-bottom-gap, 16px);
    left: var(--gamenav-side-gap, 16px);
    right: var(--gamenav-side-gap, 16px);
    z-index: 99999;
    height: var(--gamenav-height, 64px);
    background: var(--gamenav-bg, #0f172a);
    border: 1px solid var(--gamenav-border, #1e293b);
    border-radius: var(--gamenav-radius, 20px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: visible;
}

.gamenav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    padding: 0 8px;
    position: relative;
}

.gamenav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: 3px;
    text-decoration: none !important;
    color: var(--gamenav-inactive, #6b7280) !important;
    padding: 6px 4px;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    transition: color 0.3s ease;
    overflow: visible;
}

.gamenav-item:hover {
    color: var(--gamenav-active, #3b82f6) !important;
    text-decoration: none !important;
}

.gamenav-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 1;
}

.gamenav-bubble {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--gamenav-bubble, #3b82f6);
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 0;
}

.gamenav-icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.gamenav-icon i,
.gamenav-icon .dashicons {
    font-size: var(--gamenav-icon-size, 22px) !important;
    line-height: 1;
}

.gamenav-label {
    font-size: var(--gamenav-label-size, 10px);
    font-weight: 500;
    letter-spacing: 0.3px;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 64px;
    text-align: center;
    transition: color 0.3s ease, font-weight 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- ACTIVE STATE --- */
.gamenav-item.gamenav-active {
    color: #ffffff !important;
}

.gamenav-item.gamenav-active .gamenav-icon-wrap {
    transform: translateY(-20px);
}

.gamenav-item.gamenav-active .gamenav-bubble {
    opacity: 1;
    transform: scale(1);
}

.gamenav-item.gamenav-active .gamenav-icon i,
.gamenav-item.gamenav-active .gamenav-icon .dashicons {
    color: #ffffff;
}

.gamenav-item.gamenav-active .gamenav-label {
    color: var(--gamenav-active, #3b82f6);
    font-weight: 700;
}

/* --- TAP ANIMATION --- */
.gamenav-item.gamenav-tapped .gamenav-icon-wrap {
    transform: translateY(-18px) scale(0.88);
}

/* --- SAFE AREA --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .gamenav-bar {
        bottom: calc(var(--gamenav-bottom-gap, 16px) + env(safe-area-inset-bottom));
    }
}