/* ==========================================================================
   KEYWORK - 전체 메뉴 바텀시트 스타일 (리디자인)
   새 파일 — 기존 CSS 미수정
   ========================================================================== */

/* ===== LV 뱃지 (메뉴용 44px) ===== */
.asm-lv {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 12px;
    color: #fff; font-weight: 700;
    flex-shrink: 0;
}
.asm-lv__num { font-size: 14px; font-weight: 800; line-height: 1; }
.asm-lv__name { font-size: 9px; font-weight: 600; opacity: 0.85; margin-top: 2px; }

.asm-lv--0 { background: linear-gradient(135deg, #9ca3af, #6b7280); color: #1e293b; }
.asm-lv--1 { background: linear-gradient(135deg, #38bdf8, #0ea5e9); color: #1e293b; }
.asm-lv--2 { background: linear-gradient(135deg, #9333ea, #7c3aed); }
.asm-lv--3 { background: #3b82f6; }
.asm-lv--4 { background: #1e3a8a; }
.asm-lv--5 { background: linear-gradient(90deg, #3b82f6, #1e3a8a); background-size: 300% 100%; animation: asm-wave 4s ease-in-out infinite alternate; }
.asm-lv--6 { background: linear-gradient(90deg, #fff, #3b82f6, #1e3a8a); background-size: 300% 100%; animation: asm-wave 4s ease-in-out infinite alternate; color: #1e3a8a; }
.asm-lv--7 { background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #6366f1, #a855f7); background-size: 200% 100%; animation: asm-rainbow 3s linear infinite; }
.asm-lv--8, .asm-lv--9 { background: linear-gradient(135deg, #f59e0b, #d97706); }
.asm-lv--10 { background: linear-gradient(135deg, #ef4444, #dc2626); }

@keyframes asm-wave { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@keyframes asm-rainbow { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }

/* ===== 프로필 카드 ===== */
.asm-profile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 10px;
    box-shadow: none;
}
[data-theme="dark"] .asm-profile { background: #1F2937; box-shadow: none; }

.asm-profile__left {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}
.asm-profile__level {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: #3B82F6;
    color: #fff;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    line-height: 1;
}
.asm-profile__level-num { font-size: 14px; font-weight: 800; }
.asm-profile__level-name { font-size: 9px; font-weight: 600; opacity: 0.8; margin-top: 2px; }

.asm-profile__name { font-size: 16px; font-weight: 700; color: #111827; }
[data-theme="dark"] .asm-profile__name { color: #F3F4F6; }
.asm-profile__points { font-size: 13px; font-weight: 600; color: #3B82F6; margin-top: 2px; }

.asm-profile__settings {
    width: 32px; height: 32px;
    border-radius: 8px;
    background: #F3F4F6;
    display: flex; align-items: center; justify-content: center;
    color: #9CA3AF; font-size: 14px;
    text-decoration: none;
}
[data-theme="dark"] .asm-profile__settings { background: #374151; color: #6B7280; }

/* ===== 비로그인 배너 ===== */
.asm-login-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    margin-bottom: 10px;
    text-decoration: none;
    color: #1D4ED8;
    font-size: 14px;
    font-weight: 600;
}
[data-theme="dark"] .asm-login-banner {
    background: #1E3A5F;
    border-color: rgba(37,99,235,0.25);
    color: #93C5FD;
}

/* ===== 나의 일자리 위젯 ===== */
.asm-jobs {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 10px;
    box-shadow: none;
}
[data-theme="dark"] .asm-jobs { background: #1F2937; box-shadow: none; }

.asm-jobs__title {
    font-size: 14px; font-weight: 700; color: #111827;
    margin-bottom: 12px;
    display: flex; align-items: center; gap: 6px;
}
.asm-jobs__title i { color: #3B82F6; }
[data-theme="dark"] .asm-jobs__title { color: #F3F4F6; }

.asm-jobs__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.asm-jobs__item {
    text-align: center;
    padding: 12px 0;
    background: #F8FAFC;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.asm-jobs__item:active { background: #EFF6FF; }
[data-theme="dark"] .asm-jobs__item { background: #111827; }
[data-theme="dark"] .asm-jobs__item:active { background: #1E3A5F; }

.asm-jobs__num {
    font-size: 24px; font-weight: 800; color: #3B82F6; line-height: 1;
}
.asm-jobs__num--zero { color: #D1D5DB; }
[data-theme="dark"] .asm-jobs__num--zero { color: #4B5563; }
.asm-jobs__label {
    font-size: 12px; font-weight: 500; color: #6B7280; margin-top: 4px;
}

/* ===== 할인/제휴 배너 ===== */
.asm-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #EFF6FF;
    border: none;
    border-radius: 12px;
    padding: 0 16px;
    height: 48px;
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.asm-promo:active { background: #DBEAFE; }
[data-theme="dark"] .asm-promo { background: #1E3A5F; border-color: rgba(37,99,235,0.25); }

.asm-promo__left {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: #1D4ED8;
}
[data-theme="dark"] .asm-promo__left { color: #93C5FD; }
.asm-promo__right {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: #3B82F6;
}
.asm-promo__badge {
    background: #EF4444; color: #fff;
    font-size: 10px; font-weight: 700;
    padding: 1px 6px; border-radius: 6px;
}

/* ===== 섹션 라벨 ===== */
.asm-section {
    font-size: 13px; font-weight: 700; color: #6B7280;
    letter-spacing: 0.3px;
    margin: 20px 4px 10px;
}
[data-theme="dark"] .asm-section { color: #9CA3AF; }

/* ===== 아이콘 그리드 ===== */
.asm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 4px;
}
.asm-grid__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    gap: 6px;
    transition: background 0.15s;
}
.asm-grid__item:active { background: #F3F4F6; }
[data-theme="dark"] .asm-grid__item:active { background: #374151; }

.asm-grid__icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    background: #F1F5F9;
    color: #64748B;
}
[data-theme="dark"] .asm-grid__icon { background: #374151; color: #94A3B8; }

.asm-grid__label {
    font-size: 12px; font-weight: 500; color: #374151;
    text-align: center; line-height: 1.2;
    max-width: 64px; word-break: keep-all;
}
[data-theme="dark"] .asm-grid__label { color: #D1D5DB; }

/* ===== 도구 리스트 ===== */
.asm-list {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}
[data-theme="dark"] .asm-list { background: #1F2937; box-shadow: none; }

.asm-list__item {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid #F3F4F6;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.asm-list__item:last-child { border-bottom: none; }
.asm-list__item:active { background: #F9FAFB; }
[data-theme="dark"] .asm-list__item { border-color: #374151; }
[data-theme="dark"] .asm-list__item:active { background: #374151; }

.asm-list__icon {
    width: 20px; text-align: center;
    margin-right: 12px;
    font-size: 16px; color: #64748B;
}
[data-theme="dark"] .asm-list__icon { color: #94A3B8; }
.asm-list__label {
    font-size: 14px; font-weight: 500; color: #374151; flex: 1;
}
[data-theme="dark"] .asm-list__label { color: #D1D5DB; }
.asm-list__badge {
    font-size: 11px; font-weight: 600;
    padding: 2px 8px; border-radius: 6px;
    background: #DCFCE7; color: #15803D;
}
[data-theme="dark"] .asm-list__badge { background: #064E3B; color: #6EE7B7; }
.asm-list__arrow {
    font-size: 12px; color: #D1D5DB; margin-left: 8px;
}

/* ===== 하단 설정 ===== */
.asm-bottom {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #E5E7EB;
}
[data-theme="dark"] .asm-bottom { border-color: #374151; }

.asm-darkmode {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 48px;
    padding: 0 16px;
    background: #fff;
    border-radius: 12px;
    margin-bottom: 8px;
    box-shadow: none;
}
[data-theme="dark"] .asm-darkmode { background: #1F2937; box-shadow: none; }

.asm-darkmode__label {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 500; color: #374151;
}
.asm-darkmode__label i { color: #F59E0B; }
[data-theme="dark"] .asm-darkmode__label { color: #D1D5DB; }
[data-theme="dark"] .asm-darkmode__label i { color: #6366F1; }

.asm-toggle {
    width: 48px; height: 28px;
    border-radius: 14px;
    background: #E5E7EB;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    border: none;
}
[data-theme="dark"] .asm-toggle { background: #3B82F6; }
.asm-toggle__thumb {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
    top: 2px; left: 2px;
    transition: left 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
[data-theme="dark"] .asm-toggle__thumb { left: 22px; }

.asm-admin {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #6B7280;
    transition: background 0.15s;
}
.asm-admin:active { background: #F9FAFB; }
[data-theme="dark"] .asm-admin { border-color: #374151; color: #9CA3AF; }
.asm-admin i { font-size: 16px; margin-right: 10px; }
.asm-admin span { font-size: 14px; font-weight: 500; }

.asm-logout {
    display: block;
    text-align: center;
    padding: 12px;
    font-size: 14px; font-weight: 500; color: #9CA3AF;
    text-decoration: none;
}
.asm-logout:active { color: #6B7280; }
