/* =============================
   Q&A Plugin Styles (Extended)
   ============================= */

/* [NEW CODE] 2024-12-19 - 디자인 시스템 변수 */
:root {
  --primary-color: #3539f3;
  --primary-color-hover: #2563eb;
  --secondary-color: #00d4aa;
  --accent-color: #9333ea;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-light: #94a3b8;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* [NEW CODE] 2024-12-19 - 전역 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInFromLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200px 0;
  }
  100% {
    background-position: calc(200px + 100%) 0;
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

/* [NEW CODE] 2024-12-19 - 로딩 애니메이션 */
.qa-loading {
  animation: pulse 2s infinite;
}

.qa-shimmer {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
}

/* 공통 래퍼 */
.qa-single-wrap,
.qa-mypage-wrap,
.qa-expert-request {
  margin: 20px auto;
  max-width: 800px;
  padding: 20px;
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* 질문자/답변자 프로필 영역 - [MODIFIED] 2024-12-19 */
.qa-author-info {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  gap: 12px;
  position: relative;
}

.qa-author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  margin-right: 4px;
  cursor: pointer;
}

.qa-author-avatar-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.qa-author-meta {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: #666;
  line-height: 1.4;
}

.qa-author-name {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.4;
  margin-right: 8px;
  display: inline-block;
}

.qa-author-role {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-author-role:hover {
  background-color: var(--primary-color-hover);
}



.qa-expert-role {
  margin-left: 10px;
  color: #ffffff;
  background-color: var(--primary-color);
}

.qa-member-role {
  color: #495057;
  background-color: #f1f3f5;
}

.qa-guest-role {
  color: #868e96;
  margin-right: 8px;
  margin-left: 8px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
}

.qa-post-date {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #999;
  margin-right: 8px;
  display: inline-block;
}

/* 질문 내용 영역 - [MODIFIED] 2024-12-19 */
.qa-question-content {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  line-height: 1.6;
  font-size: 15px;
  color: #374151;
  word-break: break-word;
}

/* 질문 메타 정보 */
.qa-question-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.qa-question-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 14px;
}

/* [NEW CODE] 2024-12-19 향상된 답변 아이템 디자인 */
.qa-answer-item {
  background: linear-gradient(135deg, #ffffff 0%, #fafbfc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  margin: 24px 0;
  position: relative;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.qa-answer-item:hover {

  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* 답변 헤더 */
.qa-answer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 24px 0 24px;
  margin-bottom: 20px;
}

.qa-answer-main-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.qa-answer-main-info .qa-author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.qa-answer-main-info .qa-author-avatar-wrap img.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qa-answer-author-details {
  flex: 1;
  min-width: 0;
}

.qa-author-main {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.qa-author-main .qa-author-name {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.qa-role-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qa-expert-badge {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
}

.qa-member-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.qa-guest-badge {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

.qa-answer-meta-details {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #64748b;
}

.qa-answer-meta-details span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qa-answer-meta-details i {
  font-size: 13px;
  color: #94a3b8;
}

.qa-answer-status {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.qa-accepted-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ff9900;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  animation: glow 2s ease-in-out infinite alternate;
}

.qa-accepted-badge img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.qa-accept-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3);
}

.qa-accept-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.qa-quality-indicator {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qa-quality-best {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3);
}

.qa-quality-good {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3);
}

.qa-quality-normal {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3);
}

/* 답변 본문 */
.qa-answer-body {
  padding: 0 24px 20px 24px;
}

.qa-answer-content {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 16px;
  word-break: break-word;
}

.qa-read-more-container {
  text-align: center;
  margin-top: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.qa-read-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(53, 57, 243, 0.3);
}

.qa-read-more-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(53, 57, 243, 0.4);
}

.qa-answer-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.qa-answer-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qa-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.qa-tag-accepted {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
}

.qa-tag-detailed {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #ffffff;
}

.qa-tag-normal {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
}

.qa-tag-brief {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #ffffff;
}

.qa-tag-time {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

/* 답변 액션 영역 */
.qa-answer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px 24px 24px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e2e8f0;
  margin: 0 -1px -1px -1px;
  border-radius: 0 0 15px 15px;
}

.qa-action-left,
.qa-action-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qa-action-btn:hover {
  background: #f8fafc;
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.qa-action-btn i {
  font-size: 16px;
}

.qa-like-action.active {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-color: #ef4444;
  color: #ffffff;
}

.qa-like-action.active:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

/* [NEW CODE] 2024-12-19 도움됨 버튼 비활성화 상태 */
.qa-like-action:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.qa-like-action:disabled:hover {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #64748b;
  transform: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 답변 더보기 메뉴 */
.qa-answer-more {
  position: relative;
}

.qa-answer-more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  min-width: 150px;
  overflow: hidden;
  margin-top: 4px;
}

.qa-more-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  color: #374151;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
}

.qa-more-menu-item:last-child {
  border-bottom: none;
}

.qa-more-menu-item:hover {
  background: #f8fafc;
  color: var(--primary-color);
}

.qa-more-menu-item.qa-delete-item:hover {
  background: #fef2f2;
  color: #ef4444;
}

.qa-more-menu-item i {
  font-size: 14px;
  width: 16px;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .qa-answer-item {
    margin: 16px 0;
    border-radius: 12px;
  }
  
  .qa-answer-header {
    padding: 20px 16px 0 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .qa-answer-main-info {
    gap: 12px;
  }
  
  .qa-answer-main-info .qa-author-avatar-wrap {
    width: 40px;
    height: 40px;
  }
  
  .qa-author-main .qa-author-name {
    font-size: 16px;
  }
  
  .qa-answer-meta-details {
    gap: 12px;
    font-size: 13px;
  }
  
  .qa-answer-status {
    align-items: stretch;
  }
  
  .qa-answer-body {
    padding: 0 16px 16px 16px;
  }
  
  .qa-answer-content {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .qa-answer-actions {
    padding: 12px 16px 20px 16px;
    flex-direction: column;
    gap: 12px;
  }
  
  .qa-action-left,
  .qa-action-right {
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .qa-action-btn {
    font-size: 13px;
    padding: 6px 12px;
  }
  
  .qa-answer-tags {
    gap: 6px;
  }
  
  .qa-tag {
    font-size: 11px;
    padding: 3px 8px;
  }
}

/* [REMOVED] 2024-12-19 기존 답변 메타 및 버튼 스타일 제거 - 새로운 디자인으로 대체 */

/* [NEW CODE] 2024-12-19 새로운 채택된 답변 스타일 */
.qa-answer-item[data-accepted="true"] {
  background: linear-gradient(145deg, 
    rgba(15, 23, 42, 0.98),
    rgba(30, 41, 59, 0.98)
  );
  border: 2px solid #f59e0b;
  border-left: 4px solid #f59e0b;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(245, 158, 11, 0.3);
  overflow: hidden;
}

.qa-answer-item[data-accepted="true"] .light-effect {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}

.qa-answer-item[data-accepted="true"] .qa-author-name,
.qa-answer-item[data-accepted="true"] .qa-answer-content {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.qa-answer-item[data-accepted="true"] .qa-answer-date,
.qa-answer-item[data-accepted="true"] .qa-answer-meta-details {
  position: relative;
  z-index: 2;
  color: rgba(245, 158, 11, 0.9);
}

.qa-answer-item[data-accepted="true"] .qa-answer-meta-details span {
  color: rgba(255, 255, 255, 0.8);
}

.qa-answer-item[data-accepted="true"] .qa-answer-actions {
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(245, 158, 11, 0.3);
}

.qa-answer-item[data-accepted="true"] .qa-action-btn {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.9);
}

.qa-answer-item[data-accepted="true"] .qa-action-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(245, 158, 11, 0.5);
  color: #f59e0b;
}

.qa-answer-item[data-accepted="true"] .qa-comments-section {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  margin-top: 16px;
  position: relative;
  z-index: 2;
}

.qa-answer-item[data-accepted="true"] .qa-comments-section .qa-comment-item {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-bottom: 1px solid rgba(245, 158, 11, 0.3) !important;
}

.qa-answer-item[data-accepted="true"] .qa-comment-content {
  color: rgba(255, 255, 255, 0.85);
}

/* [REMOVED] 2024-12-19 기존 채택 마크 스타일 제거 - 새로운 헤더 디자인으로 대체 */

@keyframes glow {
  0% { filter: brightness(0) invert(1) drop-shadow(0 0 2px rgba(245, 158, 11, 0.5)); }
  100% { filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(245, 158, 11, 0.8)); }
}

/* [NEW CODE] 2024-12-19 플로팅 답변 버튼 */
.qa-floating-answer-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  border: none;
  border-radius: 50%;
  color: white;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qa-floating-answer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.qa-floating-answer-btn:active {
  transform: translateY(0);
}

.qa-floating-answer-btn i {
  transition: transform 0.2s ease;
}

.qa-floating-answer-btn:hover i {
  transform: scale(1.1);
}

/* 모바일에서 크기 조정 */
@media (max-width: 768px) {
  .qa-floating-answer-btn {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 20px;
  }
}

/* [NEW CODE] 2024-12-19 상단 네비게이션 바 */
.qa-nav-bar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  padding: 12px 0;
  margin-bottom: 24px;
  z-index: 100;
  transition: all 0.3s ease;
}

.qa-nav-bar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qa-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  flex-wrap: wrap;
  gap: 16px;
}

.qa-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.qa-nav-link {
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  text-decoration: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}

.qa-nav-link:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
  transform: translateY(-1px);
}

.qa-nav-link.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

.qa-nav-stats {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #64748b;
}

.qa-nav-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #f1f5f9;
  border-radius: 16px;
  white-space: nowrap;
}

.qa-nav-stat i {
  font-size: 12px;
  color: #3b82f6;
}

  /* 모바일 반응형 */
  @media (max-width: 768px) {
    .qa-nav-content {
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
    
    .qa-nav-links {
      justify-content: center;
      gap: 12px;
    }
    
    .qa-nav-link {
      padding: 6px 12px;
      font-size: 13px;
    }
    
    .qa-nav-stats {
      justify-content: center;
      gap: 12px;
    }
    
    .qa-nav-stat {
      padding: 4px 8px;
      font-size: 12px;
    }
  }

  /* [NEW CODE] 2024-12-19 댓글 폼 상단 이동 스타일 */
  .qa-comment-form-wrapper {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
  }

  .qa-comment-form-wrapper h5 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
  }

  .qa-comment-form-wrapper .qa-comment-form {
    margin: 0;
  }

  .qa-comment-form-wrapper textarea {
    border: 1px solid #d1d5db;
    border-radius: 6px;
    padding: 12px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
  }

  .qa-comment-form-wrapper .qa-submit-comment {
    background: #3b82f6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }

  .qa-comment-form-wrapper .qa-submit-comment:hover {
    background: #2563eb;
  }

  /* [NEW CODE] 2024-12-19 페이지네이션 스타일 */
  .qa-answer-pagination,
  .qa-comment-pagination {
    margin: 24px 0;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
  }

  .qa-pagination-info {
    margin-bottom: 16px;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
  }

  .qa-pagination-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }

  .qa-pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
  }

  .qa-pagination-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
  }

  .qa-pagination-btn.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: #ffffff;
  }

  .qa-pagination-btn.active:hover {
    background: #2563eb;
    border-color: #2563eb;
  }

  /* 댓글 페이지네이션은 더 작게 */
  .qa-comment-pagination {
    margin: 16px 0;
    padding: 12px;
  }

  .qa-comment-pagination .qa-pagination-btn {
    min-width: 32px;
    height: 32px;
    font-size: 13px;
  }

  /* 댓글 목록 제목 */
  .qa-comments-list h6 {
    margin: 0 0 16px 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #e2e8f0;
    color: #374151;
    font-size: 14px;
    font-weight: 600;
  }

  /* [NEW CODE] 2024-12-19 댓글 토글 버튼 active 스타일 */
  .qa-comment-toggle-btn.active {
    background: #3b82f6;
    color: white;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
  }

  .qa-comment-toggle-btn.active:hover {
    background: #2563eb;
  }

  /* 답변이 없을 때 메시지 스타일 */
  .qa-no-answers {
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
    font-size: 16px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    margin: 20px 0;
  }

  /* 댓글이 없을 때 메시지 스타일 */
  .qa-no-comments {
    text-align: center;
    padding: 20px;
    color: #64748b;
    font-size: 14px;
    font-style: italic;
  }

  /* 페이지네이션 정보 강조 */
  .qa-pagination-info strong {
    color: #3b82f6;
    font-weight: 600;
  }

  /* 모바일 반응형 */
@media (max-width: 768px) {
    .qa-pagination-links {
        gap: 4px;
    }
    
    .qa-pagination-btn {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 13px;
    }
    
    .qa-answer-pagination,
    .qa-comment-pagination {
        padding: 12px;
    }
    
    .qa-pagination-info {
        font-size: 13px;
        margin-bottom: 12px;
    }

    .qa-comment-form-wrapper {
        padding: 12px;
    }

    .qa-comment-form-wrapper h5 {
        font-size: 15px;
    }

    /* 질문 도구 버튼들 모바일 최적화 */
    .qa-question-tools {
        gap: 6px;
        margin-left: 8px;
    }

    .qa-share-btn,
    .qa-print-btn,
    .qa-fullscreen-btn {
        width: 32px;
        height: 32px;
        padding: 6px;
    }

    .qa-share-btn i,
    .qa-print-btn i,
    .qa-fullscreen-btn i {
        font-size: 12px;
    }

    /* 공유 팝업 모바일 최적화 */
    .qa-share-popup {
        min-width: 300px;
        width: 90%;
        padding: 20px;
    }

    .qa-share-methods {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .qa-share-url {
        flex-direction: column;
        gap: 8px;
    }

    .qa-copy-url-btn {
        width: 100%;
    }

    /* 전체화면 모드 모바일 최적화 */
    .qa-fullscreen-mode {
        padding: 20px;
    }

    .qa-fullscreen-content {
        font-size: 15px;
        line-height: 1.7;
    }

    .qa-fullscreen-content h1 {
        font-size: 22px;
    }
}

/* [REMOVED] 2024-12-19 기존 채택된 답변의 버튼 스타일 제거 - 새로운 액션 영역으로 대체 */

/* 버튼 스타일 - [MODIFIED] 2024-12-19 */
.qa-action-buttons {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}

.qa-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #ffffff;
  color: #64748b;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  flex: 1;
  justify-content: center;
}

.qa-action-btn:hover {
  background: #f8fafc;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.qa-action-btn i {
  font-size: 16px;
}

/* 좋아요 버튼 활성화 스타일 */
.qa-like-btn.active {
  background-color: #ffeeee;
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.qa-like-btn.active i {
  color: #ff6b6b;
}

/* [REMOVED] 2024-12-19 기존 a-buttons 스타일 제거 - 새로운 answer-actions으로 대체 */

/* 북마크 버튼 활성화 스타일 */
.qa-bookmark-btn.active {
  background-color: #eef6ff;
  border-color: #6b96ff;
  color: #6b96ff;
}

.qa-bookmark-btn.active i {
  color: #6b96ff;
}

/* 답변 수 배너 - [MODIFIED] 2024-12-19 */
.qa-answer-count-banner {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin: 20px 0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 400;
}

.qa-answer-count-banner p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.qa-answer-count-banner a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.qa-answer-count-banner a:hover {
  background: rgba(39, 3, 199, 0.1);
}

.qa-answer-count-banner .qa-login-required {
  color: #666;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.qa-answer-count-banner .qa-login-required:hover {
  background: #e0e0e0;
}

/* 답변 폼 */
.qa-answer-form {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 20px;
  margin-top: 30px;
}

.qa-answer-form textarea {
  width: 100%;
  border: 1px solid #e9ecef;
  border-radius: 4px;
  padding: 12px;
  margin: 10px 0;
  resize: vertical;
}

.qa-answer-form .button-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
}
.qa-answer-form .button-primary:hover {
  background: var(--primary-color-hover);
}

/* 공통 통지 */
.qa-notice {
  background: #efffe6;
  border: 1px solid #c4e3b2;
  padding: 10px;
  margin-bottom: 10px;
}
.qa-error {
  background: #ffe5e5;
  border: 1px solid #f9c0c0;
  padding: 10px;
  margin-bottom: 10px;
}

/* 댓글 목록 */


.qa-comments-list {
  margin-bottom: 15px;
  margin-top: 15px;
}

.qa-comment-item {
  padding: 12px;
  margin-bottom: 10px;
  background-color: #fafafa;
}

.qa-comment-author {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  position: relative;
}

.qa-role-icon {
  position: absolute;
  width: 16px !important;
  height: 16px !important;
  bottom: 0px;
  right: 0px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #fff;
  pointer-events: none;
  z-index: 1;
}

.qa-comment-author .qa-role-icon {
  width: 14px;
  height: 14px;
}

.qa-comment-ip {
  color: #aaa;
  font-size: 11px;
}

.qa-comment-actions {
  margin-left: auto;
  flex-shrink: 0;
}

.qa-comment-delete-btn {
  background: none;
  border: none;
  color: #ff6b6b;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 3px;
  transition: all 0.2s;
}

.qa-comment-delete-btn:hover {
  background-color: #303030;
}

.qa-comment-content {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
  padding: 5px 0 0 34px;
  word-break: break-word;
}

/* 댓글 폼 개선 - [MODIFIED] 2024-12-19 */
.qa-comment-form {
  margin-top: 16px;
  padding: 16px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 8px 8px;
}

.qa-comment-form textarea {
  width: 100%;
  min-height: 80px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  margin-bottom: 16px;
  resize: vertical;
  font-size: 14px;
  line-height: 1.5;
  background: #ffffff;
  transition: all 0.3s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.qa-comment-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(53, 57, 243, 0.1), 0 2px 6px rgba(0, 0, 0, 0.15);
}

.qa-guest-info {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.qa-guest-info input {
  flex: 1;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.qa-submit-comment {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  margin-left: auto;
  transition: background-color 0.2s;
  margin-bottom: 10px;
  font-weight: 400;
  font-size: 14px;
}

.qa-submit-comment:hover {
  background: var(--primary-color-hover);
}

/* 댓글 폼 비활성화 스타일 */
.qa-comment-form textarea:disabled {
  background-color: #f0f0f0;
  color: #666;
}

.qa-comment-form .qa-submit-comment:disabled {
  background-color: #95a5a6;
  cursor: not-allowed;
}


/* 마이페이지 */
.qa-mypage-wrap .qa-myinfo {
  margin-bottom: 15px;
}
.qa-mypage-wrap ul {
  list-style: disc;
  margin-left: 20px;
}

/* 모달 등은 class-admin.php에서 사용 가능 */

/* Tooltip, etc. ~ 필요시 추가 */
.my-qa-tooltip {
  white-space: nowrap;
  font-size: 0.9em;
}

/* 전체 레이아웃 - [MODIFIED] 2024-12-19 */
.qa-single-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
    font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", "Segoe UI", Roboto, helvetica, "Apple SD Gothic Neo", sans-serif;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #f1f5f9;
    position: relative;
}

.qa-cat-item {
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.qa-cat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
    transition: left 0.5s ease;
}

.qa-cat-item:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(53, 57, 243, 0.15), 0 2px 8px rgba(0,0,0,0.08);
}

.qa-cat-item:hover::before {
    left: 100%;
}

.qa-cat-favorite {
    margin-left: auto;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 50%;
    color: #adb5bd;
    transition: all 0.2s ease;
}

.qa-cat-favorite:hover {
    color: #333;
    background: #fff5f5;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.qa-cat-favorite.active {
    background: #fff5f5;
    border-color: #ff6b6b;
    color: #ff6b6b;
}

/* 질문 카드 통합 디자인 - [MODIFIED] 2024-12-19 */
.qa-question-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    position: relative;
}

.qa-question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    gap: 16px;
}

.qa-question-main {
    flex: 1;
    min-width: 0;
}

.qa-question-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #1e293b;
    line-height: 1.4;
    margin: 0;
}

.qa-question-actions {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    flex-shrink: 0;
}

/* 액션이 없을 때 숨김 처리 */
.qa-question-actions:empty {
    display: none;
}

.qa-question-actions:has(.qa-more-wrap:only-child) {
    justify-content: flex-end;
}

/* [NEW CODE] 2024-12-19 질문 도구 버튼들 */
.qa-question-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
}

.qa-share-btn,
.qa-print-btn,
.qa-fullscreen-btn {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    position: relative;
    overflow: hidden;
}

.qa-share-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-1px);
}

.qa-print-btn:hover {
    border-color: #10b981;
    background: #ecfdf5;
    transform: translateY(-1px);
}

.qa-fullscreen-btn:hover {
    border-color: #8b5cf6;
    background: #f3f4f6;
    transform: translateY(-1px);
}

.qa-share-btn i {
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
}

.qa-print-btn i {
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
}

.qa-fullscreen-btn i {
    font-size: 14px;
    color: #64748b;
    transition: all 0.2s ease;
}

.qa-share-btn:hover i {
    color: #3b82f6;
}

.qa-print-btn:hover i {
    color: #10b981;
}

.qa-fullscreen-btn:hover i {
    color: #8b5cf6;
}

/* 전체화면 읽기 모드 */
.qa-fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    z-index: 10000;
    overflow-y: auto;
    padding: 40px;
}

.qa-fullscreen-mode .qa-fullscreen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e2e8f0;
}

.qa-fullscreen-mode .qa-exit-fullscreen {
    background: #ef4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.qa-fullscreen-mode .qa-exit-fullscreen:hover {
    background: #dc2626;
}

.qa-fullscreen-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
}

.qa-fullscreen-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #1e293b;
}

/* 공유 팝업 */
.qa-share-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    min-width: 320px;
    display: none;
}

.qa-share-popup.active {
    display: block;
    animation: fadeInScale 0.3s ease;
}

.qa-share-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: none;
}

.qa-share-popup-overlay.active {
    display: block;
}

.qa-share-popup h4 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    text-align: center;
}

.qa-share-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.qa-share-method {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-share-method:hover {
    background: #f1f5f9;
    border-color: #3b82f6;
}

.qa-share-method i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.qa-share-method span {
    font-size: 14px;
    font-weight: 500;
}

.qa-share-url {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.qa-share-url input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #f9fafb;
}

.qa-copy-url-btn {
    padding: 10px 16px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.qa-copy-url-btn:hover {
    background: #2563eb;
}

.qa-share-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #64748b;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-share-close:hover {
    color: #374151;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 인쇄 전용 스타일 */
@media print {
    .qa-nav-bar,
    .qa-question-tools,
    .qa-action-buttons,
    .qa-a-buttons,
    .qa-comment-form,
    .qa-pagination,
    .qa-floating-answer-btn {
        display: none !important;
    }
    
    .qa-single-wrap {
        background: white !important;
        border: none !important;
        box-shadow: none !important;
        padding: 20px !important;
        margin: 0 !important;
        max-width: none !important;
    }
    
    .qa-question-title {
        font-size: 24px !important;
        color: black !important;
    }
    
    .qa-question-content,
    .qa-answer-content {
        color: black !important;
        font-size: 14px !important;
    }
}

.qa-more-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    padding: 10px;
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qa-more-btn:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(53, 57, 243, 0.15);
}

/* 작성자 정보 */
.qa-author-ip {
    color: #868e96;
    font-size: 12px;
    font-weight: normal;
}

/* 댓글 버튼 - [MODIFIED] 2024-12-19 */
.qa-comment-toggle-btn {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.qa-comment-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.qa-comment-toggle-btn:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(53, 57, 243, 0.15);
}

.qa-comment-toggle-btn:hover::before {
    left: 100%;
}

.qa-comment-toggle-btn:focus {
    background: linear-gradient(135deg, var(--primary-color) 0%, #4c51bf 100%);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 0 0 3px rgba(53, 57, 243, 0.2);
}

/* 카테고리 헤더 스타일 - [MODIFIED] 2024-12-19 */
.qa-category-header {
    margin-bottom: 24px;
    padding: 16px 20px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.qa-category-path {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

/* 답변 작성 영역 - [MODIFIED] 2024-12-19 */
.qa-answer-write {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-top: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.qa-answer-write::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 50%, var(--accent-color) 100%);
}

.qa-answer-placeholder {
    color: #868e96;
    margin-bottom: 16px;
}

.qa-answer-placeholder p {
    margin: 4px 0;
}

.qa-char-count {
    font-size: 13px;
    color: #adb5bd;
}

.qa-editor-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.qa-toolbar-btn {
    padding: 8px;
    background: none;
    border: none;
    color: #495057;
    cursor: pointer;
    border-radius: 4px;
}

.qa-toolbar-btn:hover {
    background: #e9ecef;
}

.qa-answer-btn {
    width: 100%;
    padding: 12px;
    background: #03c75a;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.qa-answer-btn:hover {
    background: #02b150;
}

/* 회원 등급 설명 팝업 */
.qa-role-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    max-width: 400px;
    width: 90%;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.qa-role-popup.active {
    display: block;
    visibility: visible;
    opacity: 1;
}

.qa-role-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
}

.qa-role-popup-overlay.active {
    display: block;
    visibility: visible;
    opacity: 1;
}

.qa-role-popup h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.qa-role-description {
    margin: 15px 0;
    line-height: 1.6;
}

.qa-role-description p {
    margin: 10px 0;
    color: #666;
    padding: 8px;
    border-radius: 4px;
    cursor: pointer;
}

.qa-role-description p.active {
    background-color: #E8F5E9;
    color: #333;
}

.qa-role-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
}

.qa-role-close:hover {
    color: #333;
}

/* 더보기 버튼과 팝업 메뉴 */
.qa-more-wrap {
    position: relative;
}

.qa-more-popup {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    min-width: 120px;
}

.qa-more-popup ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.qa-more-popup li {
    padding: 0;
    margin: 0;
}

.qa-more-popup a {
    display: block;
    padding: 8px 16px;
    color: #495057;
    text-decoration: none;
    transition: background-color 0.2s;
}

.qa-more-popup a:hover {
    background-color: #f8f9fa;
}

.qa-more-popup .qa-delete-btn {
    color: #e03131;
}

/* 질문 수정 폼 */
.qa-edit-form {
    margin: 15px 0;
}

.qa-edit-title {
    width: 100%;
    padding: 10px;
    font-size: 18px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
}

.qa-edit-content {
    width: 100%;
    min-height: 200px;
    padding: 15px;
    font-size: 15px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
}

.qa-edit-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.qa-edit-submit,
.qa-edit-cancel {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-edit-submit {
    background-color: #03c75a;
    color: white;
    border: none;
}

.qa-edit-submit:hover {
    background-color: #02b150;
}

.qa-edit-cancel {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #e9ecef;
}

.qa-edit-cancel:hover {
    background-color: #e9ecef;
}

/* 프로필 이미지 팝업 */
.qa-profile-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.qa-profile-popup.active {
    display: flex;
}

.qa-profile-popup-content {
    position: relative;
    max-width: 200px;
    max-height: 200px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.qa-profile-popup-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    display: block;
    margin: 0 auto;
}

.qa-profile-popup-close {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #333;
}

/* 반응형 디자인 - [MODIFIED] 2024-12-19 */
@media (max-width: 768px) {
    .qa-single-wrap {
        padding: 16px;
        margin: 8px;
        border-radius: 12px;
    }

    .qa-question-header {
        padding: 20px;
        margin-bottom: 24px;
    }

    .qa-question-title {
        font-size: 22px;
        line-height: 1.4;
    }

    .qa-question-title-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .qa-question-content {
        padding: 24px;
        margin: 16px 0;
    }

    .qa-action-buttons {
        flex-wrap: wrap;
        padding: 16px;
        gap: 12px;
    }

    .qa-action-btn {
        font-size: 13px;
        padding: 10px 16px;
        min-width: calc(50% - 6px);
    }

    .qa-answer-item {
        padding: 20px;
        margin: 16px 0;
    }

    .qa-category-header {
        padding: 16px 20px;
        margin-bottom: 20px;
    }

    .qa-cat-item {
        font-size: 13px;
        padding: 8px 14px;
    }

    .qa-answer-count-banner {
        padding: 16px 20px;
        font-size: 14px;
    }
}

/* 답변 작성 에디터 스타일 - [MODIFIED] 2024-12-19 */
.qa-answer-editor-wrap {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    position: relative;
}

.qa-answer-editor-toolbar {
    display: flex;
    flex-wrap: wrap;
    padding: 8px 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    gap: 6px;
}

.qa-editor-btn {
    padding: 6px 10px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.qa-editor-btn:hover {
    background: #f0f0f0;
    color: var(--primary-color);
}

.qa-editor-btn.active {
    background: rgba(53, 57, 243, 0.08);
    color: var(--primary-color);
    border-color: rgba(53, 57, 243, 0.2);
}

.qa-editor-btn i {
    font-size: 14px;
}

.qa-editor-separator {
    width: 1px;
    height: 24px;
    background: #e0e0e0;
    margin: 4px 4px;
}

.qa-answer-editor-content {
    min-height: 200px;
    padding: 15px;
    border: none;
    outline: none;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    width: 100%;
    position: relative;
}

.qa-editor-placeholder {
    color: #94a3b8;
    pointer-events: none;
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 14px;
    z-index: 1;
    display: none;
}

.qa-answer-editor-content:empty + .qa-editor-placeholder {
    display: block;
}

.qa-answer-editor-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background: #f9f9f9;
    border-top: 1px solid #eaeaea;
}

.qa-answer-submit-btn {
    padding: 8px 20px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qa-answer-submit-btn:hover {
    background: var(--primary-color-hover);
}

.qa-answer-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.qa-image-upload {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.qa-image-upload input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.qa-image-counter {
    font-size: 12px;
    color: #777;
}

/* 이미지 미리보기 영역 */
.qa-image-preview-area {
    padding: 10px 15px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-top: 1px dashed #eaeaea;
}

.qa-image-preview-item {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.qa-image-preview-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.qa-image-remove-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.qa-image-remove-btn:hover {
    background: rgba(0,0,0,0.7);
}

/* 링크 추가 팝업 */
.qa-link-popup {
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px;
    width: 300px;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
    display: none;
}

.qa-link-popup.active {
    display: block !important;
}

.qa-link-popup input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 13px;
}

.qa-link-popup input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.qa-link-popup-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.qa-link-popup-btn {
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qa-link-popup-cancel {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    color: #555;
}

.qa-link-popup-insert {
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    color: #fff;
}

.qa-link-popup-cancel:hover {
    background: #eaeaea;
}

.qa-link-popup-insert:hover {
    background: var(--primary-color-hover);
}

/* 토스트 메시지 */
.qa-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0,0,0,0.8);
    color: #fff;
    padding: 12px 20px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    max-width: 300px;
}

.qa-toast.show {
    opacity: 1;
}

.qa-toast.error {
    background: rgba(244, 67, 54, 0.9);
}

/* [MODIFIED] 2024-12-19 답변 내용 HTML 태그 스타일링 강화 */
.qa-answer-content {
    line-height: 1.6;
    padding-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.qa-answer-content h1, 
.qa-answer-content h2, 
.qa-answer-content h3, 
.qa-answer-content h4, 
.qa-answer-content h5, 
.qa-answer-content h6 {
    margin: 1em 0 0.5em;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.qa-answer-content h1 { font-size: 1.8em; }
.qa-answer-content h2 { font-size: 1.5em; }
.qa-answer-content h3 { font-size: 1.3em; }
.qa-answer-content h4 { font-size: 1.2em; }
.qa-answer-content h5 { font-size: 1.1em; }
.qa-answer-content h6 { font-size: 1em; }

.qa-answer-content p {
    margin: 0 0 1em;
    line-height: 1.6;
}

.qa-answer-content b, 
.qa-answer-content strong {
    font-weight: 700;
    color: #333;
}

.qa-answer-content i,
.qa-answer-content em {
    font-style: italic;
}

.qa-answer-content u {
    text-decoration: underline;
}

.qa-answer-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.qa-answer-content a:hover {
    text-decoration: underline;
    color: var(--primary-color-hover);
}

.qa-answer-content a[rel="nofollow"] {
    color: #ff9800;
}

.qa-answer-content ul,
.qa-answer-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.qa-answer-content li {
    margin: 0.5em 0;
    line-height: 1.5;
}

.qa-answer-content blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid var(--primary-color);
    background: #f9f9f9;
    font-style: italic;
}

.qa-answer-content code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.qa-answer-content pre {
    background: #f4f4f4;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
}

.qa-answer-content pre code {
    background: none;
    padding: 0;
}

.qa-answer-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qa-answer-content br {
    line-height: 1.6;
}

/* [NEW CODE] 2024-12-19 목록 스타일 개선 */
.qa-answer-content ul {
    list-style-type: disc;
}

.qa-answer-content ol {
    list-style-type: decimal;
}

.qa-answer-content ul ul {
    list-style-type: circle;
}

.qa-answer-content ol ol {
    list-style-type: lower-alpha;
}

/* [NEW CODE] 2024-12-19 질문 내용에도 동일한 HTML 태그 스타일링 적용 */
.qa-question-content h1, 
.qa-question-content h2, 
.qa-question-content h3, 
.qa-question-content h4, 
.qa-question-content h5, 
.qa-question-content h6 {
    margin: 1em 0 0.5em;
    font-weight: 600;
    line-height: 1.3;
    color: #333;
}

.qa-question-content h1 { font-size: 1.8em; }
.qa-question-content h2 { font-size: 1.5em; }
.qa-question-content h3 { font-size: 1.3em; }
.qa-question-content h4 { font-size: 1.2em; }
.qa-question-content h5 { font-size: 1.1em; }
.qa-question-content h6 { font-size: 1em; }

.qa-question-content p {
    margin: 0 0 1em;
    line-height: 1.6;
}

.qa-question-content b, 
.qa-question-content strong {
    font-weight: 700;
    color: #333;
}

.qa-question-content i,
.qa-question-content em {
    font-style: italic;
}

.qa-question-content u {
    text-decoration: underline;
}

.qa-question-content a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.qa-question-content a:hover {
    text-decoration: underline;
    color: var(--primary-color-hover);
}

.qa-question-content ul,
.qa-question-content ol {
    margin: 1em 0;
    padding-left: 2em;
}

.qa-question-content li {
    margin: 0.5em 0;
    line-height: 1.5;
}

.qa-question-content ul {
    list-style-type: disc;
}

.qa-question-content ol {
    list-style-type: decimal;
}

.qa-question-content blockquote {
    margin: 1em 0;
    padding: 0.5em 1em;
    border-left: 4px solid var(--primary-color);
    background: #f9f9f9;
    font-style: italic;
}

.qa-question-content code {
    background: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

.qa-question-content pre {
    background: #f4f4f4;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
    margin: 1em 0;
}

.qa-question-content pre code {
    background: none;
    padding: 0;
}

.qa-question-content img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.qa-answer-content .qa-image-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.qa-answer-content .qa-image-item {
    flex: 1;
    min-width: 250px;
    max-width: calc(50% - 5px);
}

.qa-answer-content .qa-image-item img {
    width: 100%;
    margin: 0;
}

/* 이미지 로딩 인디케이터 */
.qa-image-loading {
    background-color: #f3f3f3;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
    color: #666;
    margin: 10px 0;
    font-size: 14px;
    border: 1px dashed #ccc;
}

.qa-image-preview-item.qa-image-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: #f3f3f3;
}

.qa-image-preview-item.qa-image-loading div {
    padding: 10px;
    font-size: 12px;
    color: #666;
}

/* 이미지 Alt 태그 팝업 스타일 */
.qa-image-alt-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.qa-image-alt-popup-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.qa-image-alt-popup h4 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.qa-image-alt-preview {
    text-align: center;
    margin-bottom: 16px;
    border: 1px solid #eee;
    padding: 8px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.qa-image-alt-preview img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
}

.qa-image-alt-form input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.qa-image-alt-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.qa-image-alt-buttons button {
    padding: 10px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.qa-image-alt-skip {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    color: #666;
}

.qa-image-alt-confirm {
    background-color: #007bff;
    border: 1px solid #0069d9;
    color: white;
}

.qa-image-alt-skip:hover {
    background-color: #eee;
}

.qa-image-alt-confirm:hover {
    background-color: #0069d9;
}

/* SNS 공유 관련 스타일 */
.qa-share-container {
    margin-top: 10px;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}

.qa-share-container span {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #333;
}

.qa-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.qa-social-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
    font-size: 18px;
}

.qa-social-share-btn[data-platform="facebook"] {
    background-color: #3b5998;
}

.qa-social-share-btn[data-platform="twitter"] {
    background-color: #1da1f2;
}

.qa-social-share-btn[data-platform="kakaotalk"] {
    background-color: #FEE500;
    color: #000;
}

.qa-social-share-btn[data-platform="link"] {
    background-color: #20c997;
}

.qa-social-share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

