/* ==============================================================================
 * 📱 Matrix-RS Mobile Shell & Ghost-Glass HUD (mobile-shell.css)
 * ============================================================================== */

/* 💬 Floating Ghost-Glass Chat HUD */
.mobile-chat-hud {
    position: absolute;
    bottom: calc(var(--safe-bottom) + 68px);
    left: var(--space-page-x);
    width: min(85vw, 360px);
    display: flex;
    flex-direction: column;
    gap: 6px;
    pointer-events: none;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-hud-bubble {
    pointer-events: auto;
    background: var(--bg-glass);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 8px 12px;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.mobile-hud-sender {
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--color-brand);
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.hud-translation-pill {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-pill);
    padding: 2px 6px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

/* 🎛️ Floating Action Dock */
.mobile-action-dock {
    position: absolute;
    bottom: calc(var(--safe-bottom) + 12px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - (var(--space-page-x) * 2));
    max-width: 480px;
    height: var(--dock-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur-deep));
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-pill);
    z-index: 20;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-dock-btn {
    min-width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.1rem;
    transition: transform 0.1s ease, background 0.15s ease;
}

.mobile-dock-btn:active {
    transform: scale(0.9);
    background: rgba(255, 255, 255, 0.1);
}

/* 🚪 Slide-Up Bottom Sheet */
.mobile-bottom-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: 80dvh;
    background: var(--bg-surface);
    backdrop-filter: blur(var(--glass-blur-deep));
    border-top: 1px solid var(--border-color);
    border-radius: 20px 20px 0 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 50;
    padding: 16px var(--space-page-x) calc(var(--safe-bottom) + 16px);
    overflow-y: auto;
}

.mobile-bottom-sheet.open {
    transform: translateY(0);
}

.sheet-drag-handle {
    width: 36px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 auto 12px;
}

/* 🎬 Cinema Inactivity Mode */
.ui-cinema-hidden {
    opacity: 0 !important;
    pointer-events: none !important;
}

.mobile-action-dock:hover {
    opacity: 1 !important;
    pointer-events: auto !important;
}
