/* ========================================
   고객센터 페이지 스타일
   ======================================== */

/* 링크/버튼 클릭 시 파란색 아웃라인 제거 */
*, *:before, *:after {
  -webkit-tap-highlight-color: transparent !important;
}

a, button, input, select, textarea, *:focus {
  outline: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* 게시판 메뉴 링크 (탭 없이) */
.board-menu-links {
  display: flex;
  gap: 30px;
  padding: 25px 0;
  margin-bottom: 30px;
  border-bottom: 1px solid #eee;
}

.board-menu-links a {
  font-size: 16px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.board-menu-links a:hover {
  color: #00b9ff;
}

/* 간단한 리스트 형태 */
.cs-simple-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs-simple-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.2s ease;
}

.cs-simple-list li:last-child {
  border-bottom: none;
}

.cs-simple-list li:hover {
  background: #f9f9f9;
}

.cs-simple-list li a {
  flex: 1;
  color: #333;
  text-decoration: none;
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-simple-list li a:hover {
  color: #00b9ff;
}

.cs-simple-list li .date {
  flex-shrink: 0;
  font-size: 13px;
  color: #999;
  margin-left: 20px;
}

.cs-simple-list li.empty {
  justify-content: center;
  padding: 40px;
  color: #999;
}

/* 게시판 리스트 */
.cs-board-list {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 30px;
}

.cs-board-title {
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 700;
  color: #333;
  border-bottom: 2px solid #00b9ff;
  background: #fafafa;
}

.cs-board-title a {
  color: #333;
  text-decoration: none;
}

.cs-board-title a:hover {
  color: #00b9ff;
}

.cs-board-title i {
  margin-right: 10px;
  color: #00b9ff;
}

/* 테이블 스타일 */
.cs-table {
  width: 100%;
  border-collapse: collapse;
}

.cs-table thead {
  background: #f5f5f5;
}

.cs-table th {
  padding: 15px 10px;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.cs-table td {
  padding: 15px 10px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
  text-align: center;
}

.cs-table tbody tr:hover {
  background: #f9f9f9;
}

/* 컬럼 너비 */
.th-num, .td-num { width: 80px; }
.th-subject { text-align: left !important; }
.td-subject { text-align: left !important; }
.th-name, .td-name { width: 100px; }
.th-date, .td-date { width: 120px; }
.th-hit, .td-hit { width: 80px; }
.th-status, .td-status { width: 100px; }

/* 제목 링크 */
.td-subject a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.td-subject a:hover {
  color: #1a3a5c;
  text-decoration: underline;
}

/* 빈 목록 */
.td-empty {
  padding: 60px 20px !important;
  text-align: center !important;
  color: #888;
  font-size: 15px;
}

/* 답변 상태 */
.status-done {
  display: inline-block;
  padding: 5px 12px;
  background: #28a745;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

.status-wait {
  display: inline-block;
  padding: 5px 12px;
  background: #ffc107;
  color: #333;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
}

/* 더보기 / 버튼 영역 */
.cs-board-more,
.cs-board-btns {
  padding: 20px 30px;
  text-align: right;
  border-top: 1px solid #eee;
  background: #fafafa;
}

.cs-board-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.more-btn {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  color: #666;
  text-decoration: none;
  transition: color 0.2s ease;
}

.more-btn:hover {
  color: #1a3a5c;
}

.more-btn i {
  margin-left: 5px;
}

.write-btn {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(135deg, #1a3a5c 0%, #2c5282 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.write-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 58, 92, 0.3);
}

.write-btn i {
  margin-right: 8px;
}

/* 안내 메시지 */
.cs-empty {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.cs-empty i {
  display: block;
  font-size: 48px;
  color: #ddd;
  margin-bottom: 20px;
}

/* ========================================
   반응형
   ======================================== */
@media (max-width: 768px) {
  .cs-board-title {
    padding: 20px;
    font-size: 18px;
  }
  
  .cs-table th,
  .cs-table td {
    padding: 12px 8px;
    font-size: 13px;
  }
  
  .th-num, .td-num { width: 50px; }
  .th-date, .td-date { width: 90px; }
  .th-hit, .td-hit { display: none; }
  .th-name, .td-name { width: 70px; }
  .th-status, .td-status { width: 80px; }
  
  .status-done,
  .status-wait {
    padding: 4px 8px;
    font-size: 11px;
  }
  
  .cs-board-more,
  .cs-board-btns {
    padding: 15px 20px;
  }
  
  .write-btn {
    padding: 10px 18px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .cs-board-title {
    padding: 15px;
    font-size: 16px;
  }
  
  .cs-table th,
  .cs-table td {
    padding: 10px 5px;
    font-size: 12px;
  }
  
  .th-num, .td-num { width: 40px; }
  .th-date, .td-date { width: 75px; }
  .th-name, .td-name { width: 60px; }
  .th-status, .td-status { width: 65px; }
  
  .cs-board-btns {
    flex-direction: column;
    gap: 15px;
  }
  
  .write-btn {
    width: 100%;
    text-align: center;
  }
}
