/* certinumber-search MVP — 최소 스타일 */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}

a { color: #0066cc; text-decoration: none; }
a:hover { text-decoration: underline; }

header { border-bottom: 1px solid #ddd; padding-bottom: 0.5rem; margin-bottom: 1.5rem; }
header h1 { font-size: 1.3rem; }
header h1 a { color: inherit; }

/* 검색 폼 */
.search-form { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.search-form input[type="text"] {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.search-form button {
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  background: #0066cc;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.search-form button:hover { background: #0052a3; }

/* 검색 안내 */
.search-hint { color: #888; font-size: 0.85rem; margin-top: -0.75rem; margin-bottom: 1rem; }
.hero .search-hint { margin-top: 0.5rem; }

/* 검색 결과 */
.search-info { color: #666; margin-bottom: 1rem; font-size: 0.9rem; }
.result-list { list-style: none; }
.result-item {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}
.result-item:hover { background: #f8f9fa; }
.result-cert { font-weight: 600; font-size: 1.05rem; }
.result-meta { color: #666; font-size: 0.85rem; margin-top: 0.25rem; }
.result-dataset {
  display: inline-block;
  background: #e8f0fe;
  color: #1a73e8;
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.75rem;
}

/* 페이지네이션 */
.pagination { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.pagination a, .pagination span {
  padding: 0.4rem 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 0.9rem;
}
.pagination .current { background: #0066cc; color: #fff; border-color: #0066cc; }

/* 상세 페이지 */
.detail-header { margin-bottom: 1rem; }
.detail-header h2 { font-size: 1.2rem; }
.detail-dataset { color: #666; font-size: 0.9rem; }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th, .detail-table td {
  border: 1px solid #ddd;
  padding: 0.5rem 0.75rem;
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
}
.detail-table th {
  background: #f5f5f5;
  font-weight: 600;
  width: 200px;
  white-space: nowrap;
}
.detail-table td { word-break: break-all; }

/* 빈 상태/에러 */
.empty-state { text-align: center; padding: 3rem 1rem; color: #999; }
.empty-state h2 { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* 메인 페이지 */
.hero { text-align: center; padding: 3rem 1rem; }
.hero h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.hero p { color: #666; margin-bottom: 1.5rem; }
.dataset-count { font-size: 0.9rem; color: #999; margin-top: 1rem; }
