/* help_modal.css - 도움말 모달 스타일 시트 */

.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.help-modal-overlay.active {
    opacity: 1;
}

.help-modal {
    width: 90%;
    max-width: 1020px;
    height: 80vh;
    max-height: 760px;
    background-color: var(--bg-color, #131314);
    border: 1px solid var(--border-color, #333537);
    border-radius: 16px;
    box-shadow: var(--premium-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.help-modal-overlay.active .help-modal {
    transform: scale(1);
}

/* 헤더 영역 */
.help-modal-header {
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--sidebar-bg) 0%, var(--bg-color) 100%);
    border-bottom: 1px solid var(--border-color, #333537);
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-main, #e3e3e3);
}

.help-modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.help-modal-title i {
    color: #9b5de5;
}

.help-modal-close-btn {
    background: none;
    border: none;
    color: var(--text-secondary, #9e9e9e);
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s;
}

.help-modal-close-btn:hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--text-main, #fff);
}

/* 컨텐츠 바디 (2컬럼) */
.help-modal-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* 왼쪽 사이드 탭 */
.help-nav {
    width: 240px;
    background-color: var(--sidebar-bg, #1e1e20);
    border-right: 1px solid var(--border-color, #333537);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
    flex-shrink: 0;
}

.help-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary, #9e9e9e);
    font-size: 0.95rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.help-nav-btn i {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.help-nav-btn:hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--text-main, #fff);
}

.help-nav-btn.active {
    background-color: rgba(155, 93, 229, 0.12);
    color: #b388ff;
    font-weight: 600;
}

[data-theme="white"] .help-nav-btn.active,
[data-theme="gray"] .help-nav-btn.active {
    color: #7b2cbf;
    background-color: rgba(123, 44, 191, 0.08);
}

/* 우측 상세 본문 */
.help-content-area {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    background-color: var(--bg-color, #131314);
    color: var(--text-main, #e3e3e3);
}

.help-tab-content {
    display: none;
    animation: helpFadeIn 0.3s ease;
}

.help-tab-content.active {
    display: block;
}

@keyframes helpFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 본문 타이포그래피 */
.help-content-area h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: var(--text-main, #fff);
    border-bottom: 2px solid rgba(155, 93, 229, 0.2);
    padding-bottom: 8px;
}

.help-content-area h3 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 12px;
    color: #b388ff;
}

[data-theme="white"] .help-content-area h3,
[data-theme="gray"] .help-content-area h3 {
    color: #7b2cbf;
}

.help-content-area p {
    line-height: 1.6;
    margin-bottom: 16px;
    color: var(--text-main);
}

.help-content-area ul {
    margin-bottom: 16px;
    padding-left: 20px;
}

.help-content-area li {
    line-height: 1.6;
    margin-bottom: 8px;
    color: var(--text-main);
}

/* 이미지 및 캡션 */
.help-img-wrapper {
    margin: 20px 0;
    text-align: center;
}

.help-guide-img {
    max-width: 100%;
    max-height: 280px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #333537);
    box-shadow: var(--premium-shadow);
}

.help-img-caption {
    font-size: 0.85rem;
    color: var(--text-secondary, #9e9e9e);
    margin-top: 8px;
}

/* 서브 탭 바 */
.help-sub-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color, #333537);
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.help-sub-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    color: var(--text-secondary, #9e9e9e);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.2s, color 0.2s;
}

.help-sub-tab-btn:hover {
    background-color: var(--sidebar-hover-bg);
    color: var(--text-main, #fff);
}

.help-sub-tab-btn.active {
    background-color: rgba(155, 93, 229, 0.12);
    color: #b388ff;
    font-weight: 600;
}

[data-theme="white"] .help-sub-tab-btn.active,
[data-theme="gray"] .help-sub-tab-btn.active {
    color: #7b2cbf;
    background-color: rgba(123, 44, 191, 0.08);
}

.help-sub-content {
    display: none;
    animation: helpFadeIn 0.25s ease;
}

.help-sub-content.active {
    display: block;
}

/* 단축키 키 뱃지 */
.help-kbd {
    background-color: var(--sidebar-hover-bg);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
    color: var(--text-main);
    display: inline-block;
    font-family: monospace;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1;
    padding: 4px 8px;
    white-space: nowrap;
}

/* 강조 상자 */
.help-note-box {
    background-color: rgba(155, 93, 229, 0.05);
    border-left: 4px solid #9b5de5;
    padding: 16px;
    border-radius: 0 12px 12px 0;
    margin: 20px 0;
}

[data-theme="white"] .help-note-box,
[data-theme="gray"] .help-note-box {
    background-color: rgba(123, 44, 191, 0.04);
    border-left: 4px solid #7b2cbf;
}

.help-note-box p {
    margin-bottom: 0;
}
