/* ============================================================
   YAVAWE 고객센터 & 제안소 전용 스타일 (support.css)
   ============================================================ */

:root {
  --sp-primary: #ff5f7e;
  --sp-primary-hover: #e84c6c;
  --sp-blue: #3a86ff;
  --sp-green: #2ec4b6;
  --sp-orange: #ff9f1c;
  --sp-purple: #8338ec;
  --sp-bg-soft: #f8fafc;
  --sp-border: #e2e8f0;
  --sp-text-main: #1e293b;
  --sp-text-muted: #64748b;
  --sp-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.support-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 10px 16px 60px;
}

/* 상단 고객센터 헤더 배너 */
.support-hero {
  background: linear-gradient(135deg, #fff5f7 0%, #f0f7ff 100%);
  border: 1px solid #ffd6de;
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: var(--sp-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.support-hero-title h1 {
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--sp-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.support-hero-title p {
  margin: 0;
  color: var(--sp-text-muted);
  font-size: 15px;
  line-height: 1.5;
}

.support-mail-card {
  background: #ffffff;
  border: 1.5px solid #ffccd5;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(255, 95, 126, 0.08);
}

.support-mail-card .mail-icon {
  font-size: 28px;
  line-height: 1;
}

.support-mail-card .mail-meta {
  display: flex;
  flex-direction: column;
}

.support-mail-card .mail-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--sp-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.support-mail-btn {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: color 0.15s;
}

.support-mail-btn:hover {
  color: var(--sp-primary);
  text-decoration: underline;
}

.support-mail-badge {
  background: #ffe8ec;
  color: var(--sp-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 6px;
}

/* 주요 네비게이션 탭 (문의/제안 작성 vs 접수 게시판 vs FAQ) */
.support-main-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--sp-border);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.support-main-tabs::-webkit-scrollbar { display: none; }

.support-tab-btn {
  background: none;
  border: none;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sp-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.support-tab-btn:hover {
  color: var(--sp-primary);
}

.support-tab-btn.active {
  color: var(--sp-primary);
  border-bottom-color: var(--sp-primary);
  font-weight: 800;
}

/* 폼 & 게시판 섹션 래퍼 */
.support-section {
  display: none;
}
.support-section.active {
  display: block;
  animation: fadeIn 0.25s ease-out;
}

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

/* ── 작성 폼 (Form) ────────────────────────────────── */
.support-form-card {
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--sp-shadow);
  margin-bottom: 32px;
}

.support-form-header {
  margin-bottom: 22px;
}
.support-form-header h2 {
  font-size: 20px;
  margin: 0 0 6px;
  color: var(--sp-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.support-form-header p {
  margin: 0;
  font-size: 14px;
  color: var(--sp-text-muted);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 700;
  color: var(--sp-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group label .required {
  color: var(--sp-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 14px;
  border: 1.5px solid var(--sp-border);
  border-radius: 10px;
  background: #ffffff;
  color: var(--sp-text-main);
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--sp-primary);
  box-shadow: 0 0 0 3px rgba(255, 95, 126, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

.form-group .field-hint {
  font-size: 12px;
  color: var(--sp-text-muted);
  margin-top: 2px;
}

/* 비밀글 토글 카드 */
.secret-toggle-card {
  background: #fffdf5;
  border: 1.5px solid #fed7aa;
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.secret-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 700;
  color: #9a3412;
  font-size: 15px;
  user-select: none;
}

.secret-checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ea580c;
}

.secret-pw-box {
  display: none;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px dashed #fbd38d;
}
.secret-pw-box.show {
  display: grid;
}

.secret-pw-box label {
  font-size: 13px;
  font-weight: 700;
  color: #7c2d12;
  white-space: nowrap;
}

.secret-pw-box input {
  padding: 8px 12px;
  font-size: 14px;
  max-width: 220px;
  border: 1.5px solid #fbd38d;
  border-radius: 8px;
}

/* 제출 버튼 영역 */
.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-sp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  text-decoration: none;
}

.btn-sp-primary {
  background: var(--sp-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(255, 95, 126, 0.35);
}
.btn-sp-primary:hover {
  background: var(--sp-primary-hover);
  transform: translateY(-1px);
}

.btn-sp-secondary {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.btn-sp-secondary:hover {
  background: #e2e8f0;
}

.btn-sp-mail {
  background: #eef2ff;
  color: var(--sp-blue);
  border: 1px solid #c7d2fe;
}
.btn-sp-mail:hover {
  background: #e0e7ff;
}

/* ── 게시판 및 문의 목록 (Board) ──────────────────── */
.board-card {
  background: #ffffff;
  border: 1px solid var(--sp-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--sp-shadow);
}

.board-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

.board-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-chip {
  background: #f1f5f9;
  border: 1px solid var(--sp-border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sp-text-muted);
  cursor: pointer;
  transition: all 0.15s;
}

.filter-chip:hover {
  background: #e2e8f0;
  color: var(--sp-text-main);
}

.filter-chip.active {
  background: var(--sp-text-main);
  color: #ffffff;
  border-color: var(--sp-text-main);
}

.board-search {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--sp-border);
  border-radius: 8px;
  padding: 6px 12px;
  gap: 6px;
}

.board-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 13px;
  width: 170px;
}

/* 게시판 아이템 리스트 */
.board-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border: 1px solid var(--sp-border);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  gap: 14px;
}

.post-item:hover {
  border-color: #ffd6de;
  background: #fffdfd;
  box-shadow: 0 4px 12px rgba(255, 95, 126, 0.08);
  transform: translateY(-1px);
}

.post-item.secret-post {
  background: #fafaf9;
}

.post-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.post-header-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.category-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.tag-suggestion { background: #e0f2fe; color: #0284c7; }
.tag-inquiry { background: #f3e8ff; color: #9333ea; }
.tag-bug { background: #fee2e2; color: #dc2626; }
.tag-account { background: #fef3c7; color: #d97706; }
.tag-notice { background: #dcfce7; color: #15803d; }

.status-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
}
.status-received { background: #f1f5f9; color: #475569; }
.status-reviewing { background: #fff7ed; color: #c2410c; }
.status-completed { background: #ecfdf5; color: #047857; }

.post-title-text {
  font-size: 15px;
  font-weight: 700;
  color: var(--sp-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.lock-icon {
  color: #ea580c;
  font-size: 14px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--sp-text-muted);
}

.board-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--sp-text-muted);
}
.board-empty .empty-icon {
  font-size: 40px;
  margin-bottom: 10px;
}

/* ── 모달 (상세보기 및 비밀번호 확인) ─────────────── */
.sp-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sp-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.sp-modal-card {
  background: #ffffff;
  border-radius: 18px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.sp-modal-overlay.open .sp-modal-card {
  transform: scale(1);
}

.sp-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}
.sp-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.sp-modal-header {
  border-bottom: 1px solid var(--sp-border);
  padding-bottom: 14px;
}

.sp-modal-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.sp-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--sp-text-main);
  margin: 0 0 6px;
  line-height: 1.4;
}

.sp-modal-meta {
  font-size: 13px;
  color: var(--sp-text-muted);
  display: flex;
  gap: 12px;
}

.sp-modal-content {
  font-size: 15px;
  line-height: 1.7;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f8fafc;
  padding: 16px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
}

/* 관리자/운영팀 답변 영역 */
.admin-reply-box {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-reply-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-reply-author {
  font-size: 13px;
  font-weight: 800;
  color: #166534;
  display: flex;
  align-items: center;
  gap: 6px;
}

.admin-reply-date {
  font-size: 12px;
  color: #4ade80;
}

.admin-reply-body {
  font-size: 14px;
  line-height: 1.6;
  color: #14532d;
  white-space: pre-wrap;
}

/* 비밀번호 입력 모달 전용 */
.pw-modal-box {
  text-align: center;
  padding: 10px 0;
}

.pw-modal-icon {
  font-size: 44px;
  margin-bottom: 10px;
}

.pw-modal-input {
  width: 200px;
  font-size: 22px;
  letter-spacing: 6px;
  text-align: center;
  padding: 10px;
  margin: 14px auto;
  display: block;
  border: 2px solid var(--sp-primary);
  border-radius: 10px;
  outline: none;
}

.pw-modal-msg {
  font-size: 13px;
  color: #ef4444;
  min-height: 18px;
  margin-top: 4px;
}

/* 스마트 메일 도우미 모달 / 토스트 */
.mail-helper-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  max-width: 480px;
  width: 100%;
}
.mail-helper-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--sp-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mail-helper-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--sp-text-muted);
  line-height: 1.5;
}

.mail-copy-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.mail-copy-address {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}
.btn-copy {
  background: #ffffff;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-copy:hover {
  background: var(--sp-primary);
  color: #ffffff;
  border-color: var(--sp-primary);
}

.webmail-shortcuts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-webmail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  border: 1px solid #e2e8f0;
  color: #334155;
  background: #ffffff;
  transition: all 0.15s;
}
.btn-webmail:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.btn-webmail.gmail { color: #ea4335; border-color: #fca5a5; background: #fef2f2; }
.btn-webmail.naver { color: #03c75a; border-color: #86efac; background: #f0fdf4; }

/* 토스트 피드백 알림 */
.support-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  z-index: 2000;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.support-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ── 파일 첨부 (File Dropzone & Preview) ── */
.file-dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.file-dropzone:hover,
.file-dropzone.dragover {
  border-color: var(--sp-primary);
  background: #fff5f7;
}
.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}
.dropzone-icon {
  font-size: 28px;
  line-height: 1;
}
.dropzone-content p {
  margin: 0;
  font-size: 14px;
  color: #334155;
}
.dropzone-content b {
  color: var(--sp-primary);
  text-decoration: underline;
}
.dropzone-tip {
  font-size: 12px;
  color: #94a3b8;
}

.file-preview-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.file-preview-item {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.file-preview-thumb {
  width: 100%;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  background: #f1f5f9;
}
.file-preview-icon {
  width: 100%;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: #f1f5f9;
  border-radius: 6px;
}
.file-preview-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.file-preview-name {
  font-size: 11px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.file-preview-size {
  font-size: 10px;
  color: #64748b;
}
.file-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(15, 23, 42, 0.7);
  color: #ffffff;
  border: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.15s;
}
.file-preview-remove:hover {
  background: #ef4444;
}

/* 상세 모달 내 첨부파일 갤러리 */
.sp-modal-attachments {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}
.attachment-gallery {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.attachment-thumb-card {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  max-width: 120px;
}
.attachment-thumb-card:hover {
  border-color: var(--sp-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.attachment-thumb-img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
}
.attachment-thumb-name {
  font-size: 11px;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
  text-align: center;
}

/* 이미지 줌 모달 */
.image-zoom-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.image-zoom-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.image-zoom-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.image-zoom-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.image-zoom-close:hover {
  background: rgba(255, 255, 255, 0.4);
}

