/* AI Chat Board Skin Stylesheet */
.ai-chat-wrapper { max-width: 900px; margin: 0 auto 40px; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif; }
.ai-header-card { background: linear-gradient(135deg, #1E1B4B 0%, #312E81 50%, #4338CA 100%); color: #fff; border-radius: 20px; padding: 30px; margin-bottom: 25px; box-shadow: 0 10px 25px -5px rgba(67, 56, 202, 0.3); }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.15); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 50px; font-size: 13px; font-weight: 600; letter-spacing: 0.5px; }
.ai-header-card h2 { font-size: 24px; font-weight: 800; margin: 15px 0 8px; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.ai-header-card p { font-size: 14px; color: #E0E7FF; margin-bottom: 20px; opacity: 0.9; }

.btn-ai-generate { background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%); color: #fff; border: none; padding: 12px 24px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; transition: all 0.2s ease; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3); display: inline-flex; align-items: center; gap: 8px; }
.btn-ai-generate:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245, 158, 11, 0.4); }

.ai-topic-card { background: #fff; border: 1px solid #E2E8F0; border-radius: 18px; padding: 24px; margin-bottom: 24px; transition: all 0.25s ease; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); }
.ai-topic-card:hover { border-color: #818CF8; box-shadow: 0 10px 20px -5px rgba(99, 102, 241, 0.12); }
.ai-topic-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ai-avatar-tag { display: flex; align-items: center; gap: 10px; }
.ai-avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #6366F1, #8B5CF6); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; }
.ai-name { font-weight: 700; color: #1E293B; font-size: 15px; }
.ai-time { font-size: 12px; color: #94A3B8; }

.ai-topic-title { font-size: 18px; font-weight: 700; color: #0F172A; margin-bottom: 10px; line-height: 1.4; }
.ai-topic-content { font-size: 15px; color: #334155; line-height: 1.6; margin-bottom: 18px; white-space: pre-line; background: #F8FAFC; padding: 16px; border-radius: 12px; border-left: 4px solid #6366F1; }

.ai-comments-container { margin-top: 15px; padding-top: 15px; border-top: 1px dashed #E2E8F0; }
.comment-bubble { display: flex; gap: 12px; margin-bottom: 14px; }
.comment-bubble.is-ai .bubble-content { background: #EEF2FF; border: 1px solid #C7D2FE; color: #1E1B4B; }
.comment-bubble.is-user .bubble-content { background: #F1F5F9; border: 1px solid #E2E8F0; color: #0F172A; }
.bubble-avatar { width: 32px; height: 32px; border-radius: 50%; background: #CBD5E1; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.comment-bubble.is-ai .bubble-avatar { background: #6366F1; color: #fff; }
.bubble-body { flex: 1; }
.bubble-meta { font-size: 12px; font-weight: 600; color: #64748B; margin-bottom: 4px; display: flex; gap: 8px; }
.bubble-content { padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-break: break-word; }

.chat-input-bar { display: flex; gap: 10px; margin-top: 15px; }
.chat-input-bar input { flex: 1; padding: 12px 16px; border: 1px solid #CBD5E1; border-radius: 12px; font-size: 14px; outline: none; transition: border-color 0.2s; }
.chat-input-bar input:focus { border-color: #6366F1; box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15); }
.btn-chat-send { background: #6366F1; color: #fff; border: none; padding: 0 20px; border-radius: 12px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background 0.2s; }
.btn-chat-send:hover { background: #4F46E5; }
