/* inquiry-list.css - 문의 내역 페이지 */

.inquiry-list-main {
  min-height: calc(100vh - 200px);
  padding: 60px 0;
  background: #f5f5f5;
}

.inquiry-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 페이지 헤더 */
.page-header {
  text-align: center;
  margin-bottom: 50px;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
}

.page-description {
  font-size: 1.1rem;
  color: #7f8c8d;
}

/* 문의하기 버튼 */
.inquiry-actions {
  text-align: right;
  margin-bottom: 30px;
}

.btn-write-inquiry {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--brand-color, var(--brand-color, #a50808));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-write-inquiry:hover {
  background: var(--brand-color-dark, #8a0606);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* 문의 내역 목록 */
.inquiry-list-wrapper {
  background: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.list-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
}

.list-count {
  font-size: 0.95rem;
  color: #7f8c8d;
}

.list-count strong {
  color: var(--brand-color, var(--brand-color, #a50808));
  font-weight: 700;
}

/* 로딩 스피너 */
.loading-spinner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 60px 20px;
  color: #7f8c8d;
}

.loading-spinner i {
  font-size: 2.5rem;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* 문의 카드 */
.inquiry-list {
  display: grid;
  gap: 20px;
}

.inquiry-card {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.inquiry-card:hover {
  background: white;
  border-color: var(--brand-color, var(--brand-color, #a50808));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.inquiry-type {
  display: inline-block;
  padding: 4px 12px;
  background: #e9ecef;
  color: #495057;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
}

.status-badge {
  padding: 4px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 20px;
}

.status-pending {
  background: #fff3cd;
  color: #856404;
}

.status-answered {
  background: #d1ecf1;
  color: #0c5460;
}

.status-closed {
  background: #d6d8db;
  color: #383d41;
}

.inquiry-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 10px;
  line-height: 1.4;
}

.inquiry-preview {
  color: #6c757d;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 15px;
}

.inquiry-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.inquiry-date {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.inquiry-replied {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #28a745;
  font-weight: 600;
}

/* 빈 상태 */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 80px 20px;
  text-align: center;
}

.empty-state i {
  font-size: 4rem;
  color: #cbd5e0;
}

.empty-state p {
  font-size: 1.1rem;
  color: #7f8c8d;
}

.btn-write-first {
  display: inline-block;
  padding: 12px 30px;
  background: var(--brand-color, var(--brand-color, #a50808));
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-write-first:hover {
  background: var(--brand-color-dark, #8a0606);
  transform: translateY(-2px);
}

/* 로그인 필요 */
.login-required {
  background: white;
  border-radius: 12px;
  padding: 80px 40px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 40px;
}

.login-required i {
  font-size: 4rem;
  color: #cbd5e0;
  margin-bottom: 20px;
}

.login-required h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.login-required p {
  font-size: 1.1rem;
  color: #7f8c8d;
  margin-bottom: 30px;
}

.login-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.btn-login,
.btn-register {
  padding: 12px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login {
  background: var(--brand-color, var(--brand-color, #a50808));
  color: white;
}

.btn-login:hover {
  background: var(--brand-color-dark, #8a0606);
  transform: translateY(-2px);
}

.btn-register {
  background: white;
  color: var(--brand-color, var(--brand-color, #a50808));
  border: 2px solid var(--brand-color, var(--brand-color, #a50808));
}

.btn-register:hover {
  background: var(--brand-color, var(--brand-color, #a50808));
  color: white;
  transform: translateY(-2px);
}

/* 문의 안내 */
.inquiry-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.info-card {
  display: flex;
  gap: 20px;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.info-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-color, var(--brand-color, #a50808)) 0%, var(--brand-color-dark, #8a0606) 100%);
  color: white;
  border-radius: 12px;
  font-size: 1.5rem;
}

.info-content {
  flex: 1;
}

.info-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 8px;
}

.info-description {
  font-size: 0.95rem;
  color: #7f8c8d;
  line-height: 1.6;
}

/* 에러 메시지 */
.error-message {
  text-align: center;
  padding: 40px;
  color: #dc3545;
  font-weight: 600;
}

/* 페이지네이션 */
.pagination-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e9ecef;
}

.page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid #dee2e6;
  background: white;
  color: #495057;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.page-btn:hover:not(:disabled) {
  background: var(--brand-color, var(--brand-color, #a50808));
  color: white;
  border-color: var(--brand-color, var(--brand-color, #a50808));
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 5px;
}

.page-num {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #dee2e6;
  background: white;
  color: #495057;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.page-num:hover {
  background: #f8f9fa;
  border-color: var(--brand-color, var(--brand-color, #a50808));
  color: var(--brand-color, var(--brand-color, #a50808));
}

.page-num.active {
  background: var(--brand-color, var(--brand-color, #a50808));
  color: white;
  border-color: var(--brand-color, var(--brand-color, #a50808));
  font-weight: 700;
}

/* 반응형 */
@media (max-width: 768px) {
  .inquiry-list-main {
    padding: 40px 0;
  }

  .page-title {
    font-size: 2rem;
  }

  .inquiry-list-wrapper {
    padding: 20px;
  }

  .list-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .inquiry-actions {
    text-align: center;
  }

  .btn-write-inquiry {
    width: 100%;
    justify-content: center;
  }

  .inquiry-footer {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .inquiry-info {
    grid-template-columns: 1fr;
  }

  .login-actions {
    flex-direction: column;
    gap: 10px;
  }

  .btn-login,
  .btn-register {
    width: 100%;
  }
}
