@charset "UTF-8";

body {
    font-family: 'Noto Sans KR', system-ui, -apple-system, BlinkMacSystemFont;
}

/* ---------- 상단 히어로 ---------- */

.inquiry-hero {
    margin-top: 76px;
    padding: 32px 0 24px;
    background:
        radial-gradient(circle at 0% 0%, #e0f2fe 0%, transparent 60%),
        radial-gradient(circle at 100% 0%, #fef3c7 0%, transparent 60%),
        linear-gradient(to bottom, #eff6ff 0%, #f9fafb 100%);
    border-bottom: 1px solid #e5e7eb;
}

.inquiry-hero-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.inquiry-hero-text h1 {
    font-size: 24px;
    margin-bottom: 6px;
    color: #111827;
}

.inquiry-hero-text p {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
}

.inquiry-badge {
    display: inline-block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    border: 1px solid #d1d5db;
    color: #6b7280;
    margin-bottom: 8px;
}

.inquiry-hero-info {
    background: rgba(255,255,255,0.9);
    border-radius: 14px;
    padding: 10px 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(148,163,184,0.35);
    font-size: 12px;
    color: #374151;
}

.inquiry-hero-info .info-line + .info-line {
    margin-top: 4px;
}

.info-label {
    display: inline-block;
    min-width: 70px;
    color: #6b7280;
}

.info-value {
    font-weight: 500;
}

/* ---------- 레이아웃 ---------- */

.inquiry-section {
    padding: 28px 0 60px;
    background: #f9fafb;
}

.inquiry-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 20px;
}

/* 좌측 사이드 */

.inquiry-side {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(148,163,184,0.35);
    font-size: 13px;
}

.side-card h2 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #111827;
}

.side-type-list {
    list-style: none;
}

.side-type-list li {
    padding: 6px 10px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 12px;
    color: #4b5563;
}

.side-type-list li + li {
    margin-top: 4px;
}

.side-type-list li:hover {
    background: #f3f4f6;
}

.side-type-list li.active {
    background: linear-gradient(135deg,#6366f1,#f97316);
    color: #ffffff;
    font-weight: 500;
}

.side-card.notice ul {
    list-style: disc;
    padding-left: 18px;
    font-size: 12px;
    color: #6b7280;
}

.side-card.notice li + li {
    margin-top: 4px;
}

/* 우측 게시판 */

.inquiry-main {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.board-title h2 {
    font-size: 18px;
    color: #111827;
}

.board-count {
    font-size: 12px;
    color: #6b7280;
}

.board-count strong {
    color: #111827;
}

.board-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.select-small {
    border-radius: 999px;
    border: 1px solid #d1d5db;
    padding: 5px 10px;
    font-size: 12px;
    background: #ffffff;
    color: #4b5563;
}

.board-search {
    display: flex;
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid #d1d5db;
    background: #ffffff;
}

.board-search input {
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    min-width: 160px;
}

.board-search button {
    border: none;
    padding: 6px 14px;
    background: #111827;
    color: #f9fafb;
    font-size: 12px;
    cursor: pointer;
}

.btn-write {
    border-radius: 999px;
    border: none;
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(135deg,#6366f1,#f97316);
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(99,102,241,0.35);
}

.btn-write:hover {
    filter: brightness(1.03);
}

/* 게시판 카드 */

.board-card {
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 24px rgba(148,163,184,0.4);
    padding: 12px 14px 14px;
}

/* 테이블 */

.inquiry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.inquiry-table thead th {
    text-align: center;
    padding: 8px 6px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #6b7280;
    font-weight: 500;
}

.inquiry-table tbody td {
    padding: 8px 6px;
    border-bottom: 1px solid #f3f4f6;
    text-align: center;
    color: #4b5563;
}

.inquiry-table tbody tr:last-child td {
    border-bottom: none;
}

.inquiry-table tbody tr:hover {
    background: #f9fafb;
}

.inquiry-table td.title {
    text-align: left;
    padding-left: 10px;
    color: #111827;
    cursor: pointer;
}

.row-notice {
    background: #fefce8;
}

/* 뱃지 */

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    border: 1px solid transparent;
    white-space: nowrap;
}

/* 구분 타입 */
.type-notice {
    background: #fef9c3;
    border-color: #facc15;
    color: #854d0e;
}

.type-account {
    background: #e0f2fe;
    border-color: #60a5fa;
    color: #1d4ed8;
}

.type-pay {
    background: #fee2e2;
    border-color: #f97373;
    color: #b91c1c;
}

.type-bug {
    background: #fce7f3;
    border-color: #f472b6;
    color: #be185d;
}

.type-suggest {
    background: #dcfce7;
    border-color: #4ade80;
    color: #166534;
}

.type-etc {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #374151;
}

/* 상태 */
.status-new {
    background: #eef2ff;
    border-color: #6366f1;
    color: #3730a3;
}

.status-ing {
    background: #e0f2fe;
    border-color: #0284c7;
    color: #075985;
}

.status-done {
    background: #dcfce7;
    border-color: #22c55e;
    color: #166534;
}

/* 페이지네이션 */

.pagination {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.page-btn {
    min-width: 28px;
    padding: 4px 6px;
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 12px;
    cursor: pointer;
    color: #4b5563;
}

.page-btn.active {
    background: #111827;
    color: #f9fafb;
    border-color: #111827;
}

.page-btn:hover:not(.active) {
    background: #f3f4f6;
}

/* ---------- 1:1 문의 채팅 위젯 ---------- */

.inquiry-chat-launcher {
    position: fixed;
    right: 26px;
    bottom: 22px;
    z-index: 950;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg,#6366f1,#f97316);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 12px 26px rgba(99,102,241,0.5);
    display: flex;
    align-items: center;
    gap: 6px;
}

.inquiry-chat-window {
    position: fixed;
    right: 26px;
    bottom: 80px;
    width: 320px;
    max-height: 460px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 18px 40px rgba(15,23,42,0.6);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 960;
}

.inquiry-chat-window.open {
    display: flex;
}

.chat-header {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg,#eef2ff,#e0f2fe);
}

.chat-title h3 {
    font-size: 14px;
    color: #111827;
}

.chat-badge {
    display: inline-block;
    font-size: 10px;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(17,24,39,0.9);
    color: #f9fafb;
    margin-bottom: 4px;
}

.chat-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    color: #4b5563;
}

.chat-body {
    padding: 10px 10px 6px;
    flex: 1;
    overflow-y: auto;
    background: #f3f4f6;
}

.chat-msg {
    display: flex;
    flex-direction: column;
    max-width: 82%;
    margin-bottom: 8px;
}

.chat-msg.bot {
    align-items: flex-start;
}

.chat-msg.user {
    align-items: flex-end;
    margin-left: auto;
}

.chat-msg .bubble {
    padding: 7px 10px;
    border-radius: 14px;
    font-size: 12px;
    line-height: 1.5;
    white-space: pre-line;
}

.chat-msg.bot .bubble {
    background: #e5e7eb;
    color: #111827;
    border-bottom-left-radius: 4px;
}

.chat-msg.user .bubble {
    background: #111827;
    color: #f9fafb;
    border-bottom-right-radius: 4px;
}

.chat-msg .time {
    font-size: 10px;
    color: #9ca3af;
    margin-top: 2px;
}

.chat-input-area {
    border-top: 1px solid #e5e7eb;
    padding: 8px;
    display: flex;
    gap: 6px;
    background: #ffffff;
}

.chat-input-area textarea {
    flex: 1;
    resize: none;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 7px 8px;
    font-size: 12px;
    max-height: 72px;
}

.chat-input-area button {
    border-radius: 12px;
    border: none;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    background: #111827;
    color: #f9fafb;
    cursor: pointer;
}

/* ---------- 1:1 문의 챗봇 빠른 선택 ---------- */

.chat-quick-wrap {
    margin-top: 4px;
    margin-bottom: 8px;
    padding: 6px 6px 8px;
    background: rgba(255,255,255,0.7);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.chat-quick-title {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
}

.chat-quick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.chat-quick-btn {
    border: none;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 11px;
    background: #111827;
    color: #f9fafb;
    cursor: pointer;
}

.chat-quick-btn:hover {
    filter: brightness(1.05);
}

/* ---------- 1:1 상담원 모드용 ---------- */

.chat-msg.system {
    align-items: center;
    max-width: 100%;
    margin: 6px 0;
}

.chat-msg.system .bubble {
    background: transparent;
    color: #9ca3af;
    font-size: 10px;
    padding: 0;
}

.pagination {
    margin-top: 20px;
    display: flex;
    gap: 6px;
    justify-content: center;
    align-items: center;
}

.page-btn {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 999px;
    border: 1px solid #d0d5e6;
    background: #fff;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    color: #333f6b;
    text-decoration: none;
}

.page-btn:hover {
    background: #eef3ff;
}

.page-btn.active {
    background: #3f6cff;
    color: #fff;
    border-color: #3f6cff;
    font-weight: 600;
}

.page-btn.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* ---------- 문의 유형 사이드 링크 ---------- */

/* li 전체를 클릭 영역 + 기본 링크 스타일 제거 */
.inquiry-side .side-type-list li a {
    display: block;
    width: 100%;
    text-decoration: none;
    color: inherit;              /* li의 글자색을 그대로 사용 */
}

/* 호버 시 살짝 강조 */
.inquiry-side .side-type-list li:hover a {
    color: #111827;
}

/* 활성 메뉴(선택된 카테고리) – 흰색 글자 유지 */
.inquiry-side .side-type-list li.active a {
    color: #ffffff;
    font-weight: 600;
}

/* ---------- 문의 리스트 제목 링크 ---------- */

.inquiry-table td.title a {
    display: inline-block;
    max-width: 100%;
    text-decoration: none;          /* 밑줄 제거 */
    color: #111827;                 /* 기본 글자색 */
    font-weight: 500;
    white-space: nowrap;            /* 한 줄로만 */
    overflow: hidden;               /* 넘치면 … 처리 */
    text-overflow: ellipsis;
    transition: color 0.15s ease, transform 0.15s ease;
}

/* 행에 마우스를 올렸을 때 살짝 강조 */
.inquiry-table tbody tr:hover td.title a {
    color: #4f46e5;                 /* 보라 계열 포인트 컬러 */
}

/* 링크에 직접 호버 시 */
.inquiry-table td.title a:hover {
    color: #4f46e5;
    transform: translateY(-1px);
}

/* 문의 게시판 영역 내 링크 공통 스타일 */
.inquiry-section a {
    text-decoration: none;
    color: inherit;
}

.inquiry-section a:hover {
    text-decoration: none;
}