/* Bottom bar — layout & tone theo MobileBottomBar.vue (biggame) */

.mobile-bottom-bar {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 55;
    display: block;
}

body.has-mobile-bottom-bar {
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

/* Tailwind CDN không quét class được thêm động từ file JS. */
#mobile-menu.translate-x-0 {
    transform: translateX(0) !important;
}

#mobile-menu.translate-x-full {
    transform: translateX(100%) !important;
}

@media (min-width: 1024px) {
    .mobile-bottom-bar {
        display: none;
    }

    body.has-mobile-bottom-bar {
        padding-bottom: 0;
    }
}

.mobile-bottom-bar__inner {
    position: relative;
    border-top: 2px solid rgba(245, 158, 11, 0.7);
    background: linear-gradient(
        to top,
        #450a0a 0%,
        #1a0f0f 45%,
        rgba(39, 39, 39, 1) 100%
    );
    padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
    box-shadow:
        0 -6px 28px rgba(0, 0, 0, 0.35),
        inset 0 0 0 1px rgba(217, 119, 6, 0.2);
}

.mobile-bottom-bar__shine {
    position: absolute;
    inset-inline: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.8), transparent);
    pointer-events: none;
}

.mobile-bottom-bar__row {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    max-width: 1320px;
    margin-inline: auto;
    padding: 0.4rem 0.75rem 0;
    gap: 0.15rem;
}

@media (min-width: 640px) {
    .mobile-bottom-bar__row {
        padding: 0.5rem 1.5rem 0;
        gap: 0.25rem;
    }
}

@media (min-width: 1024px) {
    .mobile-bottom-bar__row {
        padding: 0.5rem 2rem 0.25rem;
        gap: 0.5rem;
    }
}

/* Side links */
.mobile-bottom-bar__link {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.4rem 0.25rem 0.55rem;
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-bottom-bar__link:hover {
    color: #fef3c7;
}

.mobile-bottom-bar__link--active {
    color: #fcd34d;
}

.mobile-bottom-bar__link--active .mobile-bottom-bar__icon {
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.mobile-bottom-bar__icon {
    font-size: 1.5rem;
    line-height: 1;
}

.mobile-bottom-bar__label {
    max-width: 5.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: var(--font-mono, Roboto, sans-serif);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
}

@media (min-width: 640px) {
    .mobile-bottom-bar__icon {
        font-size: 1.75rem;
    }

    .mobile-bottom-bar__label {
        font-size: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .mobile-bottom-bar__link {
        gap: 0.35rem;
        padding: 0.5rem 0.5rem 0.65rem;
    }

    .mobile-bottom-bar__icon {
        font-size: 2rem;
    }

    .mobile-bottom-bar__label {
        max-width: none;
        font-size: 0.875rem;
    }
}

/* Center — Nạp Thẻ (nổi như mockup) */
.mobile-bottom-bar__center {
    position: relative;
    display: flex;
    width: 4.5rem;
    flex-shrink: 0;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

@media (min-width: 640px) {
    .mobile-bottom-bar__center {
        width: 6rem;
    }
}

@media (min-width: 1024px) {
    .mobile-bottom-bar__center {
        width: 7rem;
    }
}

.mobile-bottom-bar__center-btn {
    position: absolute;
    top: -1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 9999px;
    border: 3px solid rgba(251, 191, 36, 0.8);
    background: linear-gradient(to bottom, #fef3c7, #ffffff, #fef9c3);
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        0 0 16px rgba(251, 191, 36, 0.45),
        0 0 0 2px rgba(127, 29, 29, 0.5);
    color: #b45309;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mobile-bottom-bar__center-btn:hover {
    transform: scale(1.05);
    border-color: #fcd34d;
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.45),
        0 0 22px rgba(251, 191, 36, 0.55),
        0 0 0 2px rgba(127, 29, 29, 0.45);
}

.mobile-bottom-bar__center-btn:active {
    transform: scale(0.95);
}

@media (min-width: 640px) {
    .mobile-bottom-bar__center-btn {
        top: -2rem;
        width: 4.25rem;
        height: 4.25rem;
    }
}

@media (min-width: 1024px) {
    .mobile-bottom-bar__center-btn {
        top: -2.25rem;
        width: 4.75rem;
        height: 4.75rem;
    }
}

.mobile-bottom-bar__center-icon {
    font-size: 1.75rem;
    line-height: 1;
}

@media (min-width: 640px) {
    .mobile-bottom-bar__center-icon {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .mobile-bottom-bar__center-icon {
        font-size: 2.25rem;
    }
}

.mobile-bottom-bar__center-label {
    margin-top: 2.1rem;
    font-family: var(--font-mono, Roboto, sans-serif);
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1.2;
    color: #fcd34d;
}

@media (min-width: 640px) {
    .mobile-bottom-bar__center-label {
        margin-top: 2.35rem;
        font-size: 0.75rem;
    }
}

@media (min-width: 1024px) {
    .mobile-bottom-bar__center-label {
        margin-top: 2.6rem;
        font-size: 0.875rem;
    }
}
