/**
 * HealthGrowth.in - Mobile Side Navigation Drawer Styles
 */

/* Header Hamburger Button */
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-menu-btn {
    display: none;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid #d5ede2;
    background: #f1fbf6;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 0;
    transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
    background: #e2f6ec;
    border-color: var(--green);
}

.menu-bar {
    width: 18px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: all 0.2s ease;
}

@media (max-width: 850px) {
    .mobile-menu-btn {
        display: flex;
    }
}

/* Mobile Drawer Overlay */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(16, 54, 84, 0.45);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.mobile-drawer-overlay.active {
    display: flex;
    opacity: 1;
}

/* Side Drawer Panel */
.mobile-drawer-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 86vw;
    height: 100%;
    background: #ffffff;
    box-shadow: -10px 0 40px rgba(16, 54, 84, 0.18);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.mobile-drawer-overlay.active .mobile-drawer-panel {
    transform: translateX(0);
}

/* Drawer Header */
.mobile-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid #edf5f1;
    background: #fbfefd;
}

.mobile-drawer-close {
    width: 32px;
    height: 32px;
    border: 0;
    background: #eef7f3;
    color: #48657a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
}

.mobile-drawer-close:hover {
    background: #dbeef4;
    color: #103654;
}

/* Drawer Body */
.mobile-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 16px 24px;
}

/* Drawer Quick Actions */
.mobile-drawer-actions {
    margin-bottom: 16px;
}

.drawer-action-btn {
    width: 100%;
    height: 40px;
    border: 1px solid #cbe9dc;
    background: #f3fcf8;
    color: #0d824e;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.drawer-action-btn:hover {
    background: #e5f7ef;
}

.drawer-section-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #728c9e;
    margin-bottom: 8px;
    padding-left: 4px;
}

/* Nav Links List */
.mobile-drawer-links {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.mobile-drawer-links li {
    margin-bottom: 4px;
}

.mobile-drawer-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #163d5b;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.mobile-drawer-links a:hover {
    background: #eef9f4;
    color: var(--green);
}

.link-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Mobile Categories Grid */
.mobile-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}

.mobile-cat-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: #fbfefd;
    border: 1px solid #e5f2ec;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.mobile-cat-pill:hover {
    background: #eef9f4;
    border-color: #8cd6b5;
}

.cat-pill-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.cat-pill-name {
    font-size: 11px;
    font-weight: 600;
    color: #123d5d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.cat-pill-count {
    font-size: 9px;
    font-weight: 700;
    color: #628876;
    background: #e8f7ef;
    padding: 2px 5px;
    border-radius: 10px;
}

/* Drawer Footer */
.mobile-drawer-footer {
    padding: 12px 16px;
    border-top: 1px solid #edf5f1;
    background: #fbfefd;
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 11px;
    color: #7b96a8;
}

.mobile-drawer-footer small {
    color: #11965b;
    font-weight: 600;
}

/* ================= DARK MODE FOR MOBILE DRAWER ================= */
[data-theme="dark"] .mobile-menu-btn {
    background: #132238;
    border-color: #23354d;
}

[data-theme="dark"] .menu-bar {
    background: #f8fafc;
}

[data-theme="dark"] .mobile-drawer-overlay {
    background: rgba(0, 0, 0, 0.7);
}

[data-theme="dark"] .mobile-drawer-panel {
    background: #132238;
    box-shadow: 10px 0 40px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .mobile-drawer-header {
    background: #0e1a2b;
    border-bottom-color: #23354d;
}

[data-theme="dark"] .mobile-drawer-close {
    background: #1e2f47;
    color: #cbd5e1;
}

[data-theme="dark"] .drawer-action-btn {
    background: #0e1a2b;
    border-color: #23354d;
    color: #34d399;
}

[data-theme="dark"] .drawer-section-title {
    color: #94a3b8;
}

[data-theme="dark"] .mobile-drawer-links a {
    color: #cbd5e1;
}

[data-theme="dark"] .mobile-drawer-links a:hover {
    background: #192c47;
    color: #34d399;
}

[data-theme="dark"] .mobile-cat-pill {
    background: #0e1a2b;
    border-color: #1e2f47;
}

[data-theme="dark"] .mobile-cat-pill:hover {
    background: #192c47;
    border-color: #10b981;
}

[data-theme="dark"] .cat-pill-name {
    color: #f8fafc;
}

[data-theme="dark"] .cat-pill-count {
    background: #132238;
    color: #34d399;
}

[data-theme="dark"] .mobile-drawer-footer {
    background: #0e1a2b;
    border-top-color: #23354d;
    color: #94a3b8;
}