/* ============================================
   phonebyun 판례 페이지 전용 스타일
   ============================================ */

/* 통계 값 작은 텍스트 (마지막 크롤링 시각용) */
.stat-value-sm {
  font-size: 18px;
}

/* 검색 및 필터 바 */
.filter-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.filter-search {
  flex: 1;
  min-width: 0;
}
.form-select {
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s;
  min-width: 140px;
}
.form-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* 페이지네이션 */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 20px;
}
.page-btn {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid var(--border-input);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.page-btn:hover {
  background: var(--bg-hover);
}
.page-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.page-btn:disabled:hover {
  background: var(--bg-surface);
}

/* 모달 */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--bg-surface);
  border: 1px solid var(--border-base);
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-base);
}
.modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}
.modal-close {
  background: none;
  border: none;
  font-size: 22px;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.modal-close:hover {
  color: var(--text-primary);
}
.modal-body {
  padding: 24px;
}
.detail-row {
  display: flex;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-soft);
}
.detail-row:last-child {
  border-bottom: none;
}
.detail-label {
  width: 100px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 500;
}
.detail-value {
  font-size: 13px;
  color: var(--text-primary);
}

/* 반응형 */
@media (max-width: 1024px) {
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-search {
    flex-basis: 100%;
  }
}

@media (max-width: 768px) {
  .filter-bar {
    flex-direction: column;
    gap: 8px;
  }
  .filter-search {
    flex-basis: auto;
  }
  .form-input {
    font-size: 14px;
  }
  .form-select {
    min-width: 0;
    width: 100%;
    font-size: 14px;
  }
  .pagination {
    flex-wrap: wrap;
    gap: 4px;
  }
  .page-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  /* 모달 전체 화면 */
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100vh;
  }
  .modal-header {
    padding: 16px;
  }
  .modal-body {
    padding: 16px;
  }
  .detail-row {
    flex-direction: column;
    gap: 4px;
  }
  .detail-label {
    width: auto;
    font-size: 12px;
  }
  .detail-value {
    font-size: 13px;
  }
}
