/* ─── smithery_mcp 게시판 스킨 전용 스타일 ─────────────────────────── */

/* 배지 */
.sm-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 600;
  margin-right: 4px;
}
.sm-verified   { background: #d1fae5; color: #065f46; }
.sm-unverified { background: #f3f4f6; color: #6b7280; }
.sm-remote     { background: #dbeafe; color: #1d4ed8; }
.sm-local      { background: #f3e8ff; color: #6b21a8; }

/* 필 카운트 */
.sm-pill-cnt { font-size: .75rem; opacity: .7; margin-left: 2px; }

/* 카드 그리드 */
.sm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 16px 0;
}

.sm-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s, border-color .15s;
}
.sm-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  border-color: #93c5fd;
}

.sm-card-badges { display: flex; gap: 4px; flex-wrap: wrap; }

.sm-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  line-height: 1.4;
}

.sm-owner {
  font-size: .78rem;
  color: #6b7280;
}

.sm-desc {
  font-size: .85rem;
  color: #374151;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.sm-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}

.sm-stat {
  font-size: .78rem;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  padding: 2px 6px;
}

.sm-cmd {
  font-size: .72rem;
  color: #374151;
  background: #f3f4f6;
  border-radius: 4px;
  padding: 2px 6px;
  font-family: monospace;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 빈 상태 */
.sm-empty { text-align: center; padding: 60px 20px; color: #6b7280; }

/* 상세 보기 */
.sm-view-header {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
}
.sm-view-badges { margin-bottom: 10px; }
.sm-view-title  { font-size: 1.6rem; font-weight: 800; margin: 0 0 6px; color: #111; }
.sm-view-owner  { font-size: .9rem; color: #6b7280; margin-bottom: 12px; }
.sm-view-info   { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #4b5563; }

.sm-view-body  { display: flex; flex-direction: column; gap: 20px; }
.sm-section    { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 20px; }
.sm-section h2 { font-size: 1rem; font-weight: 700; margin: 0 0 12px; color: #111; }

/* 설치 명령 */
.sm-install {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1e293b;
  border-radius: 8px;
  padding: 14px 16px;
}
.sm-install code {
  flex: 1;
  color: #e2e8f0;
  font-family: monospace;
  font-size: .88rem;
  word-break: break-all;
}
.sm-copy-btn {
  flex-shrink: 0;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 6px 14px;
  font-size: .82rem;
  cursor: pointer;
}
.sm-copy-btn:hover { background: #2563eb; }
.sm-install-note { font-size: .82rem; color: #6b7280; margin: 8px 0 0; }

/* 정보 테이블 */
.sm-info-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.sm-info-table tr { border-bottom: 1px solid #f3f4f6; }
.sm-info-table th { width: 130px; text-align: left; color: #6b7280; padding: 8px 12px 8px 0; font-weight: 600; }
.sm-info-table td { padding: 8px 0; color: #111; }
.sm-info-table code { background: #f3f4f6; padding: 2px 6px; border-radius: 4px; font-size: .82rem; }

/* 링크 */
.sm-links { display: flex; gap: 10px; flex-wrap: wrap; }
.sm-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 600;
}
.sm-link-btn:hover { background: #f9fafb; border-color: #93c5fd; }

/* 이전/다음 */
.sm-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  gap: 10px;
}
.sm-nav-btn {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  color: #374151;
  text-decoration: none;
  font-size: .85rem;
}
.sm-nav-btn:hover { background: #f9fafb; }
.sm-nav-center { font-weight: 600; }

/* 관리자 수정 폼 */
.sm-write-table { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
.sm-write-table th { width: 140px; text-align: left; padding: 10px; background: #f9fafb; border: 1px solid #e5e7eb; font-size: .88rem; color: #6b7280; }
.sm-write-table td { padding: 10px; border: 1px solid #e5e7eb; font-size: .88rem; }
.sm-write-actions { display: flex; gap: 10px; }

/* 페이지네이션 (공통 pcest-pager 재사용) */
.pcest-pager { display:flex; align-items:center; justify-content:center; gap:6px; margin:20px 0; }
.pcest-pager .pg a, .pcest-pager .pg span, .pcest-pager .pg strong {
  min-width:30px; height:30px; padding:0 6px;
  border:1px solid #ddd; border-radius:4px; background:#fff; color:#555;
  font-size:12px; display:inline-flex; align-items:center; justify-content:center;
}
.pcest-pager .pg .pg_current, .pcest-pager .pg strong {
  background:#2b2b2b; border-color:#2b2b2b; color:#fff; font-weight:700;
}
.pcest-pg-total { font-size:12px; color:#888; margin-left:6px; }

/* 반응형 */
@media (max-width: 600px) {
  .sm-grid { grid-template-columns: 1fr; }
  .sm-view-title { font-size: 1.3rem; }
}
