/* ONEX / FraDodo BotOnex — Mobile Bottom Bar & Discord App Bridge Styles */

:root {
    --onex-nav-height: 66px;
}

.discord-app-pill,
.btn-discord-app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border-radius: 10px;
    background: linear-gradient(135deg, #5865F2, #4752C4);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 12px;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 4px 16px rgba(88, 101, 242, 0.35);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.discord-app-pill:hover,
.btn-discord-app:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.5);
}

.btn-whatsapp-quick {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    background: rgba(37, 211, 102, 0.14);
    border: 1px solid rgba(37, 211, 102, 0.4);
    color: #4ade80 !important;
    font-weight: 800;
    font-size: 11px;
    text-decoration: none !important;
    cursor: pointer;
}

.btn-whatsapp-quick:hover {
    background: rgba(37, 211, 102, 0.24);
}

/* Player Discord Hub Banner on /arena */
.player-discord-hub {
    background: linear-gradient(145deg, rgba(17, 24, 35, 0.96), rgba(10, 14, 20, 0.98));
    border: 1px solid rgba(88, 101, 242, 0.38);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 22px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

.player-discord-hub-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.player-discord-channels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;
}

.discord-channel-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 15px;
    border-radius: 12px;
    background: rgba(88, 101, 242, 0.08);
    border: 1px solid rgba(88, 101, 242, 0.28);
}

.discord-channel-card small {
    display: block;
    color: #94a3b8;
    font-size: 11px;
    margin-top: 2px;
}

.discord-channel-card strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    margin-top: 2px;
}

.discord-channel-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #b9ff39;
}

/* Client filter pills in /admin/organizations */
.client-filter-bar {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 14px;
    margin-bottom: 8px;
    scrollbar-width: none;
}

.client-filter-bar::-webkit-scrollbar {
    display: none;
}

.client-filter-btn {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #0d131a;
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.15s ease;
}

.client-filter-btn.active {
    background: #b9ff39;
    color: #080b0f;
    border-color: #b9ff39;
}

/* Persistent Mobile Bottom Navigation Bar (Web Browser) */
.onex-mobile-bottom-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--onex-nav-height);
    background: rgba(8, 11, 15, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(185, 255, 57, 0.22);
    z-index: 9990;
    padding: 0 6px env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.65);
}

.onex-mobile-bottom-nav-inner {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    height: 100%;
    max-width: 640px;
    margin: 0 auto;
    align-items: center;
}

.onex-mobile-tab {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    color: #94a3b8 !important;
    text-decoration: none !important;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 2px;
    text-align: center;
}

.onex-mobile-tab i {
    font-style: normal;
    font-size: 17px;
    line-height: 1;
}

.onex-mobile-tab.active {
    color: #b9ff39 !important;
}

.onex-mobile-tab.active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 28px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: #b9ff39;
}

.onex-mobile-tab.discord-tab {
    color: #8ea1e1 !important;
}

.onex-mobile-tab-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 18px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #ffffff;
    font-size: 9px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 760px) {
    body:not(.in-native-android-app):not(.cockpit-page) .onex-mobile-bottom-nav {
        display: block;
    }
    body:not(.in-native-android-app):not(.cockpit-page) {
        padding-bottom: calc(var(--onex-nav-height) + 18px) !important;
    }
}
body.cockpit-page .onex-mobile-bottom-nav {
    display: none !important;
}

/* When inside the Native Android App, hide duplicate web bottom bar */
body.in-native-android-app .onex-mobile-bottom-nav {
    display: none !important;
}

/* Mobile & Native App Login / Registration Layout Fixes */
@media (max-width: 768px), (pointer: coarse) {
    body.login-page {
        min-height: auto !important;
        display: block !important;
        padding: 10px 12px 90px !important;
        background: #080b0f !important;
    }
    .login-shell {
        width: 100% !important;
        max-width: 440px !important;
        margin: 0 auto !important;
    }
    .login-shell > .account-feature-banner {
        display: none !important;
    }
    .login-shell > .account-brand-lockup,
    .login-shell > .admin-brand {
        display: flex !important;
        justify-content: center;
        margin-bottom: 10px;
    }
    .login-card {
        padding: 18px 16px !important;
        margin-top: 4px !important;
        border-radius: 16px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
    }
    .login-icon {
        margin-bottom: 12px !important;
        width: 36px !important;
        height: 36px !important;
        font-size: 16px !important;
    }
    .login-card h1 {
        font-size: 22px !important;
        margin: 4px 0 6px !important;
    }
    .login-card > p {
        font-size: 11px !important;
        margin-bottom: 16px !important;
        line-height: 1.5 !important;
    }
    .login-card label {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }
    .login-card input {
        height: 42px !important;
        font-size: 14px !important;
    }
    .login-card button.primary.full {
        height: 44px !important;
        font-size: 13px !important;
    }
}

body.in-native-android-app.login-page {
    padding-top: 8px !important;
}

body.in-native-android-app .back-home {
    display: none !important;
}

/* Dynamic soft-keyboard responsiveness */
body.keyboard-open {
    padding-bottom: 24px !important;
}
body.keyboard-open .onex-mobile-bottom-nav {
    display: none !important;
}
body.keyboard-open .login-card {
    padding: 12px 14px !important;
    margin-top: 0 !important;
}
body.keyboard-open .login-icon,
body.keyboard-open .login-card .overline,
body.keyboard-open .login-card > p {
    display: none !important;
}
body.keyboard-open .login-card h1 {
    font-size: 18px !important;
    margin: 2px 0 8px !important;
}

@media (max-width: 920px) {
    .admin-layout,
    .admin-main {
        min-height: auto !important;
    }
    input, textarea, select {
        scroll-margin-top: 70px;
        scroll-margin-bottom: 70px;
    }
}

.onex-update-banner {
    position: sticky; top: 0; z-index: 9999;
    display: flex; align-items: center; gap: 10px;
    padding: 10px 14px; background: #b9ff39; color: #081005;
    font-size: 13px; font-weight: 700; line-height: 1.3;
}
.onex-update-banner span { flex: 1; min-width: 0; }
.onex-update-banner a {
    flex-shrink: 0; padding: 8px 14px; border-radius: 8px;
    background: #081005; color: #b9ff39; font-weight: 800; text-decoration: none;
}
.onex-update-banner button {
    flex-shrink: 0; width: 34px; height: 34px; border: 0; border-radius: 8px;
    background: transparent; color: #081005; font-size: 22px; line-height: 1; cursor: pointer;
}
