/* ===========================
   NAV.CSS - Bottom Tab Bar & More Drawer
   =========================== */

/* --- Bottom Tab Bar --- */
.tab-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: var(--tab-bar-height, 64px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--adult-border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.page-kids .tab-bar {
    background: rgba(44, 36, 24, 0.95);
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* --- Tab Bar Items --- */
.tab-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 12px;
    min-width: 56px;
    min-height: 48px;
    color: #A89B8A;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    font-family: inherit;
}

.tab-bar-item:hover {
    text-decoration: none;
}

.page-kids .tab-bar-item {
    color: rgba(255, 255, 255, 0.5);
}

/* Active tab styling is set inline via JS (member color) */
.tab-bar-item.tab-active {
    /* Color set via inline style by components.js */
}

/* --- Tab Label --- */
.tab-bar-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    white-space: nowrap;
}

/* --- More Drawer Backdrop --- */
.more-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(0, 0, 0, 0.3);
}

/* --- More Drawer Panel --- */
.more-drawer {
    position: fixed;
    bottom: var(--tab-bar-height, 64px);
    left: 0;
    right: 0;
    z-index: 70;
    background: var(--adult-card-bg);
    border-top: 1px solid var(--adult-border);
    border-radius: 16px 16px 0 0;
    padding: 8px 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.12);
}

.page-kids .more-drawer {
    background: #2A2318;
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* --- More Drawer Items --- */
.more-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    color: var(--adult-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: background 0.15s ease;
}

.more-drawer-item:hover {
    background: rgba(0, 0, 0, 0.04);
    text-decoration: none;
}

.page-kids .more-drawer-item {
    color: rgba(255, 255, 255, 0.85);
}

.page-kids .more-drawer-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.more-drawer-active {
    font-weight: 700;
}

/* --- More Drawer Divider --- */
.more-drawer-divider {
    height: 1px;
    background: var(--adult-border);
    margin: 4px 16px;
}

/* --- More Drawer Switch User --- */
.more-drawer-switch {
    width: 100%;
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}

.more-drawer-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: white;
    font-size: 0.8em;
    font-weight: 700;
    flex-shrink: 0;
}
