/**
 * DX Mobile Tab Bar v1.2.2 — style.css
 * dx_head 훅으로 <head>에 로드됨
 */
/* ── 모바일 탭바: 기존 FAB 숨김 ── */
@media (max-width: 768px) {
    #dx-fab-wrap,
    #___popYtPlay_fab,
    #dxmp-fab,
    #dx-chat-btn {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    body { padding-bottom: 62px !important; }
    #dx-mob-tabbar { display: flex !important; }
}
@media (min-width: 769px) {
    #dx-mob-tabbar { display: none !important; }
}

/* ── 탭바 공통 스타일 ── */
#dx-mob-tabbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: 58px;
    background: var(--bg-card, #fff);
    border-top: 1px solid var(--border, #e2e8f0);
    z-index: 199;
    align-items: stretch;
    justify-content: space-around;
    box-shadow: 0 -2px 12px rgba(0,0,0,.08);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}
.dx-mob-tb-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 6px 4px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted, #94a3b8);
    font-size: .62rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .15s;
    position: relative;
}
.dx-mob-tb-btn:active { opacity: .7; }
.dx-mob-tb-btn i { font-size: 1.1rem; }
.dx-mob-tb-btn.active { color: var(--p, #1a73e8); }

/* 채팅 뱃지 */
#dx-tb-chat-badge {
    display: none;
    position: absolute;
    top: 4px; right: 18px;
    min-width: 16px; height: 16px;
    background: #ef4444; color: #fff;
    border-radius: 99px; font-size: 9px;
    font-weight: 800; line-height: 1;
    padding: 2px 3px; text-align: center;
}

/* ── 전체검색 모달 ── */
#dx-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: flex-start;
    justify-content: center;
}
#dx-search-modal.open { display: flex; }

#dx-search-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}
#dx-search-box {
    position: relative;
    z-index: 1;
    width: calc(100% - 32px);
    max-width: 480px;
    margin-top: 60px;
    background: var(--bg-card, #fff);
    border-radius: 18px;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    overflow: hidden;
    animation: dxSearchSlideIn .2s ease;
}
@keyframes dxSearchSlideIn {
    from { opacity: 0; transform: translateY(-16px); }
    to   { opacity: 1; transform: translateY(0); }
}
#dx-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
#dx-search-header i {
    color: var(--text-muted, #94a3b8);
    font-size: 1rem;
    flex-shrink: 0;
}
#dx-search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-main, #1e293b);
    font-family: inherit;
}
#dx-search-input::placeholder { color: var(--text-muted, #94a3b8); }
#dx-search-close {
    width: 28px; height: 28px;
    border: none; background: var(--bg, #f1f5f9);
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted, #94a3b8);
    font-size: .75rem;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}
#dx-search-body {
    padding: 16px;
    min-height: 80px;
}
#dx-search-hint {
    text-align: center;
    color: var(--text-muted, #94a3b8);
    font-size: .82rem;
    padding: 20px 0;
}
#dx-search-results { list-style: none; padding: 0; margin: 0; }
#dx-search-results li + li { border-top: 1px solid var(--border, #f1f5f9); }
#dx-search-results a {
    display: block;
    padding: 10px 4px;
    text-decoration: none;
    color: var(--text-main, #1e293b);
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.4;
    transition: color .12s;
}
#dx-search-results a:active { color: var(--p, #1a73e8); }
#dx-search-results .dx-sr-board {
    font-size: .7rem;
    color: var(--text-muted, #94a3b8);
    margin-bottom: 2px;
}
#dx-search-loading {
    display: none;
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted, #94a3b8);
    font-size: .82rem;
}
#dx-search-footer {
    display: none;
    padding: 0 16px 14px;
    text-align: center;
}
#dx-search-more {
    display: inline-block;
    padding: 8px 20px;
    background: var(--p, #1a73e8);
    color: #fff;
    border-radius: 99px;
    font-size: .78rem;
    font-weight: 700;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

/* 채팅 버튼 초기 숨김 (JS가 채팅 플러그인 감지 시 해제) */
#dx-mob-tabbar .dx-mob-tb-btn.dx-tb-hide { display: none; }
