/* =============== guide.css =============== */

/* 오버레이 - 살짝 어두운 배경 */
.guide-mode-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    z-index: 8900;
    pointer-events: none;
}

/* 설명창 위치 - 왼쪽 패널 오른쪽 가장자리 */
.guide-fixed-box {
    position: fixed;
    left: 300px;
    top: 25px;
    width: 420px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    z-index: 9100;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: all;
}

.guide-fixed-box.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 헤더 */
.guide-box-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 2px solid #f3f4f6;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-radius: 12px 12px 0 0;
}

.guide-box-icon {
    font-size: 20px;
}

.guide-box-mode {
    flex: 1;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

.guide-box-close {
    width: 26px;
    height: 26px;
    border: none;
    background: transparent;
    color: #9ca3af;
    font-size: 16px;
    cursor: pointer;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.guide-box-close:hover {
    background: #f3f4f6;
    color: var(--text);
}

/* 내용 */
.guide-box-content {
    padding: 20px;
    min-height: 280px; /* ✅ 최소 높이 증가 */
    max-height: 500px; /* ✅ 최대 높이 증가 */
    overflow-y: auto;
}

.guide-box-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    transition: color 0.2s;
}

.guide-box-body {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    transition: opacity 0.2s;
}

.guide-box-body p {
    margin: 0;
    word-break: keep-all;
    word-wrap: break-word;
}

.guide-box-body strong {
    color: var(--text);
    font-weight: 600;
}

/* 가이드 활성화된 요소 */
.guide-enabled {
    position: relative;
    cursor: help !important;
    transition: all 0.2s;
    z-index: 9000;
    pointer-events: all;
}

.guide-enabled::after {
    content: '💡';
    position: absolute;
    top: -10px; /* ✅ 더 위로 올림 */
    right: -10px; /* ✅ 더 오른쪽으로 */
    font-size: 16px; /* ✅ 크기 증가 */
    background: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
    opacity: 0.9;
    pointer-events: none;
    z-index: 10;
    animation: bounce 2s ease-in-out infinite;
}

.guide-enabled:hover::after {
    opacity: 1;
}

/* 호버 시 하이라이트 */
.guide-hover-active {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 6px;
    box-shadow: 0 0 0 6px rgba(139, 92, 246, 0.15);
    z-index: 9050;
}

/* 가이드 토글 버튼 */
.guide-toggle-btn {
    width: 100%;
    padding: 12px 16px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center; /* ✅ 중앙 정렬 */
    gap: 8px;
}

.guide-toggle-btn:hover {
    background: #f9fafb;
    border-color: var(--primary);
}

.guide-toggle-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.guide-toggle-btn .guide-icon {
    font-size: 16px;
}

/* 반응형 */
@media (max-width: 1200px) {
    .guide-fixed-box {
        left: 20px;
        right: 20px;
        width: auto;
        max-width: 420px;
    }
}

@media (max-width: 768px) {
    .guide-fixed-box {
        width: calc(100vw - 40px);
        left: 20px;
        right: 20px;
        max-width: none;
    }
    
    .guide-box-content {
        min-height: 200px;
        max-height: 300px;
    }
}

/* 스크롤바 */
.guide-box-content::-webkit-scrollbar {
    width: 5px;
}

.guide-box-content::-webkit-scrollbar-track {
    background: transparent;
}

.guide-box-content::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.guide-box-content::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}