/* 하키러브 공통 스타일 - 눈에 편한 슬레이트 톤 */

:root {
  --oh-primary: #334155;
  --oh-primary-light: #475569;
  --oh-primary-bg: #f1f5f9;
  --oh-text: #1e293b;
  --oh-text-muted: #64748b;
  --oh-border: #e5e7eb;
  --oh-bg: #f8fafc;
  /* 하키여기어때·팀목록·샵 목록 등 카드 테두리 */
  --oh-card-border: #cbd5e1;
  --oh-card-border-hover: #94a3b8;
  /* 포지션 색상: 공격=붉은, 수비=하늘색, 골리=노란 */
  --pos-fw-bg: #fce8e6;
  --pos-fw-color: #b91c1c;
  --pos-fw-border: #dc2626;
  --pos-df-bg: #e2e8f0;
  --pos-df-color: #334155;
  --pos-df-border: #475569;
  --pos-gk-bg: #fef7e0;
  --pos-gk-color: #b45309;
  --pos-gk-border: #fbbc04;
}

/* 포지션 뱃지/카드 색상 (선수명단·팀구성 공통) */
.position-badge.fw, .team-item.is-fw .position { background: var(--pos-fw-bg) !important; color: var(--pos-fw-color) !important; }
.position-badge.df, .team-item.is-df .position { background: var(--pos-df-bg) !important; color: var(--pos-df-color) !important; }
.position-badge.gk, .team-item.is-gk .position { background: var(--pos-gk-bg) !important; color: var(--pos-gk-color) !important; font-weight: 600; }

/* ─── 페이지 헤더 (그라데이션) - 심플·컴팩트 ───────────────────────────── */
.oh-page-header {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(51,65,85,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.oh-page-header h1 {
  margin: 0;
  font-size: 1.25em;
  font-weight: 700;
}

.oh-page-header .oh-subtitle {
  margin: 4px 0 0;
  opacity: 0.95;
  font-size: 0.9em;
}

.oh-header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ─── 버튼 ───────────────────────────────────────────────────────── */
.oh-btn-primary {
  background: #fff;
  color: #334155;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.oh-btn-primary:hover {
  background: #f1f5f9;
}

.oh-btn-secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.oh-btn-secondary:hover {
  background: rgba(255,255,255,0.3);
}

.oh-btn-accent {
  background: #475569;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.oh-btn-accent:hover {
  background: #334155;
}

.oh-btn-outline {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.oh-btn-outline:hover {
  background: #e2e8f0;
}

.oh-btn-danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.oh-btn-danger:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

/* ─── 카드 / 섹션 ────────────────────────────────────────────────── */
.oh-section-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.oh-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.oh-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  border-color: #cbd5e1;
}

/* ─── 링크 ───────────────────────────────────────────────────────── */
.oh-link {
  color: #334155;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.oh-link:hover {
  color: #475569;
}

/* ─── 폼 입력 포커스 ─────────────────────────────────────────────── */
.oh-input-focus:focus {
  outline: none;
  border-color: #475569 !important;
  box-shadow: 0 0 0 3px rgba(14,165,233,0.2);
}

/* ─── 빈 상태 ────────────────────────────────────────────────────── */
.oh-empty-state {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed #e2e8f0;
  color: #64748b;
}

.oh-empty-state-icon {
  font-size: 4em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.oh-empty-state-title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}

/* ─── 배지 ───────────────────────────────────────────────────────── */
.oh-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.85em;
  font-weight: 600;
}

.oh-badge-primary {
  background: #e2e8f0;
  color: #334155;
}

.oh-badge-success {
  background: #dcfce7;
  color: #166534;
}

.oh-badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.oh-badge-neutral {
  background: #f1f5f9;
  color: #475569;
}

/* ─── 테이블 ─────────────────────────────────────────────────────── */
.oh-table-wrap {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  overflow: hidden;
}

.oh-table {
  width: 100%;
  border-collapse: collapse;
}

.oh-table thead {
  background: #f8fafc;
  border-bottom: 2px solid #e5e7eb;
}

.oh-table th {
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  color: #475569;
  font-size: 0.9em;
}

.oh-table tbody tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}

.oh-table tbody tr:hover {
  background: #f8fafc;
}

.oh-table td {
  padding: 14px 12px;
  color: #1e293b;
  font-size: 0.95em;
}

/* ─── 페이지네이션 ────────────────────────────────────────────────── */
.oh-pagination {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  padding: 20px;
}

.oh-pagination a {
  padding: 10px 20px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
}

.oh-pagination a:hover {
  background: #475569;
  color: #fff;
  border-color: #475569;
}

/* ─── 검색 영역 ──────────────────────────────────────────────────── */
.oh-search-box {
  background: #fff;
  padding: 20px 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.oh-search-result {
  margin-top: 12px;
  padding: 12px 16px;
  background: #e2e8f0;
  border-left: 4px solid #475569;
  border-radius: 6px;
  color: #1e293b;
  font-size: 0.95em;
}

/* ─── 기존 클래스명 호환 (page-header, btn-new 등) - 심플·컴팩트 ───────── */
.page-header {
  background: linear-gradient(135deg, #334155 0%, #475569 100%);
  color: #fff;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(51,65,85,0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.page-header h1 {
  margin: 0;
  font-size: 1.25em;
  font-weight: 700;
  color: #fff;
}

.page-header a {
  color: rgba(255,255,255,0.95);
}

.page-header a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.page-header .btn-primary {
  background: #fff;
  color: #334155;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
}

.page-header .btn-primary:hover {
  background: #f1f5f9;
}

.page-header .btn-secondary {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

.page-header .btn-secondary:hover {
  background: rgba(255,255,255,0.3);
}

.btn-new {
  background: #fff;
  color: #334155;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  transition: all 0.2s;
}

.page-header .btn-new {
  background: #fff;
  color: #334155;
}

.btn-new:hover,
.page-header .btn-new:hover {
  background: #f1f5f9;
}

.section-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border: 1px solid #e5e7eb;
}

.empty-state {
  text-align: center;
  padding: 60px 24px;
  background: #fff;
  border-radius: 12px;
  border: 2px dashed #e2e8f0;
  color: #64748b;
}

.empty-state-icon {
  font-size: 4em;
  margin-bottom: 16px;
  opacity: 0.7;
}

.empty-state-title {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1e293b;
}
