/* 튜토리얼 도움말 고정 버튼 */
.tutorial-help-button {
    position: fixed !important;
    bottom: 70px !important; /* 번역 버튼 위에 배치 (간격 더 줄임) */
    right: 15px !important;
    z-index: 10001 !important;
    width: 35px !important;
    height: 35px !important;
    background: rgba(103, 126, 234, 0.25) !important;
    color: rgba(103, 126, 234, 0.9) !important;
    border: none !important;
    outline: none !important;
    border-radius: 50% !important;
    font-size: 16px !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(103, 126, 234, 0.2) !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tutorial-help-button:hover {
    background: rgba(103, 126, 234, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(103, 126, 234, 0.3);
}

.tutorial-help-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(103, 126, 234, 0.2);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .tutorial-help-button {
        bottom: 55px !important; /* 모바일 번역 버튼 위 */
        right: 10px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 14px !important;
    }
}

@media (max-width: 480px) {
    .tutorial-help-button {
        bottom: 50px !important; /* 작은 모바일 번역 버튼 위 */
        right: 8px !important;
        width: 25px !important;
        height: 25px !important;
        font-size: 12px !important;
    }
}

/* 튜토리얼 오버레이 */
.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    pointer-events: none;
}

/* 어두운 배경 */
.tutorial-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    pointer-events: all;
}

/* 스포트라이트 (강조할 요소 위치) */
.tutorial-spotlight {
    position: fixed;
    border-radius: 12px;
    border: 3px solid rgba(103, 126, 234, 0.9);
    box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.7),
                0 0 20px rgba(103, 126, 234, 0.6),
                inset 0 0 0 9999px rgba(255, 255, 255, 0);
    pointer-events: none;
    z-index: 10001;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 툴팁 */
.tutorial-tooltip {
    position: fixed;
    max-width: 350px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    pointer-events: all;
    z-index: 10002;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease;
    opacity: 0;
}

.tutorial-content {
    padding: 24px;
}

.tutorial-text {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.tutorial-controls {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.tutorial-progress {
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    text-align: center;
    margin-bottom: 8px;
}

.tutorial-nav-buttons {
    display: flex;
    border: none;
    gap: 8px;
    width: 100%;
}

.tutorial-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    outline: none;
}

.tutorial-skip {
    background: #f3f4f6;
    color: #6b7280;
    width: 100%;
}

.tutorial-skip:hover {
    background: #e5e7eb;
}

.tutorial-skip:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tutorial-prev {
    background: #f3f4f6;
    color: #6b7280;
}

.tutorial-prev:hover:not(:disabled) {
    background: #e5e7eb;
}

.tutorial-prev:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.tutorial-next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.tutorial-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(103, 126, 234, 0.3);
}

.tutorial-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    user-select: none;
}

.tutorial-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.tutorial-checkbox:hover {
    color: #374151;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .tutorial-tooltip {
        max-width: 280px;
    }

    .tutorial-content {
        padding: 16px;
    }

    .tutorial-text {
        font-size: 13px;
        line-height: 1.4;
        margin-bottom: 16px;
    }

    .tutorial-nav-buttons {
        width: 100%;
    }

    .tutorial-btn {
        flex: 1;
        padding: 8px 12px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .tutorial-text {
        font-size: 12px;
        line-height: 1.4;
    }

    .tutorial-content {
        padding: 16px;
    }
}
