@charset "utf-8";
/**
 * shadcn/ui 분위기 디자인 시스템
 * 우리동네노동권찾기 프로젝트용
 *
 * shadcn/ui의 핵심 특징:
 * - Zinc/Neutral 기반 중성 팔레트
 * - 깔끔한 테두리, 최소한의 그림자
 * - 정확한 타이포그래피 계층 구조
 * - CSS 변수 기반 테마 시스템
 */

/* ─────────────────────────────────────────────
   1. CSS Design Tokens (shadcn/ui 기반)
   ───────────────────────────────────────────── */
:root {
  /* 배경 */
  --background: 0 0% 100%;
  --foreground: 240 10% 3.9%;

  /* 카드 */
  --card: 0 0% 100%;
  --card-foreground: 240 10% 3.9%;

  /* 팝오버 */
  --popover: 0 0% 100%;
  --popover-foreground: 240 10% 3.9%;

  /* 프라이머리 (zinc-900) */
  --primary: 240 5.9% 10%;
  --primary-foreground: 0 0% 98%;

  /* 세컨더리 (zinc-100) */
  --secondary: 240 4.8% 95.9%;
  --secondary-foreground: 240 5.9% 10%;

  /* 뮤트 (zinc-100) */
  --muted: 240 4.8% 95.9%;
  --muted-foreground: 240 3.8% 46.1%;

  /* 액센트 (zinc-100) */
  --accent: 240 4.8% 95.9%;
  --accent-foreground: 240 5.9% 10%;

  /* 파괴적 (red) */
  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 98%;

  /* 성공 */
  --success: 142 76% 36%;
  --success-foreground: 0 0% 98%;

  /* 경고 */
  --warning: 38 92% 50%;
  --warning-foreground: 0 0% 10%;

  /* 정보 */
  --info: 221 83% 53%;
  --info-foreground: 0 0% 98%;

  /* 테두리 & 입력 */
  --border: 240 5.9% 90%;
  --input: 240 5.9% 90%;
  --ring: 240 5.9% 10%;

  /* 반경 */
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;

  /* 그림자 */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* 폰트 */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Noto Sans KR', 'Nanum Gothic', 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Consolas, monospace;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --line-height: 1.5;
  --line-height-tight: 1.25;
  --line-height-relaxed: 1.625;

  /* 전환 */
  --transition: 0.15s ease;
  --transition-slow: 0.3s ease;
}

/* ─────────────────────────────────────────────
   2. Base Reset & Typography
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: hsl(var(--foreground));
  background-color: hsl(var(--background));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─────────────────────────────────────────────
   3. 타이포그래피 계층 구조
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: var(--line-height-tight);
  color: hsl(var(--foreground));
  letter-spacing: -0.02em;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  line-height: var(--line-height-relaxed);
  color: hsl(var(--foreground));
}

small {
  font-size: var(--font-size-sm);
  color: hsl(var(--muted-foreground));
}

a {
  color: hsl(var(--foreground));
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--transition);
}

a:hover {
  color: hsl(var(--muted-foreground));
}

/* ─────────────────────────────────────────────
   4. 버튼 시스템
   ───────────────────────────────────────────── */
.btn, button.btn, a.btn,
input[type="submit"].btn,
input[type="button"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: 1;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition), opacity var(--transition);
  cursor: pointer;
  text-decoration: none;
  border: 1px solid transparent;
  user-select: none;
  padding: 0.5rem 1rem;
  height: 2.25rem;
}

.btn:focus-visible,
button.btn:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

.btn:disabled,
button.btn:disabled {
  pointer-events: none;
  opacity: 0.5;
}

/* 기본 버튼 (Default) - shadcn primary */
.btn-default,
.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.btn-default:hover,
.btn-primary:hover {
  background-color: hsl(var(--primary) / 0.9);
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary) / 0.9);
}

/* 세컨더리 버튼 */
.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
}

.btn-secondary:hover {
  background-color: hsl(var(--secondary) / 0.8);
  color: hsl(var(--secondary-foreground));
}

/* 아웃라인 버튼 */
.btn-outline {
  background-color: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.btn-outline:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* 고스트 버튼 */
.btn-ghost {
  background-color: transparent;
  color: hsl(var(--foreground));
  border-color: transparent;
}

.btn-ghost:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

/* 파괴 버튼 */
.btn-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  border-color: hsl(var(--destructive));
}

.btn-destructive:hover {
  background-color: hsl(var(--destructive) / 0.9);
  color: hsl(var(--destructive-foreground));
}

/* 링크 버튼 */
.btn-link {
  background-color: transparent;
  color: hsl(var(--foreground));
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 0;
  height: auto;
}

/* 버튼 크기 */
.btn-sm {
  height: 2rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  height: 2.75rem;
  padding: 0.625rem 1.5rem;
  font-size: var(--font-size-base);
  border-radius: var(--radius-lg);
}

.btn-xl {
  height: 3.25rem;
  padding: 0.75rem 2rem;
  font-size: var(--font-size-lg);
  border-radius: var(--radius-lg);
}

/* ─────────────────────────────────────────────
   5. 폼 컴포넌트
   ───────────────────────────────────────────── */
.form-control,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
textarea,
select {
  display: flex;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--input));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: var(--font-size-sm);
  line-height: var(--line-height);
  padding: 0.5rem 0.75rem;
  height: 2.25rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-sans);
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
textarea:focus,
select:focus {
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15);
  outline: none;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: hsl(var(--muted-foreground));
}

.form-control:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  background-color: hsl(var(--muted));
  cursor: not-allowed;
  opacity: 0.7;
}

textarea {
  height: auto;
  min-height: 6rem;
  resize: vertical;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  background-size: 1.25em;
  -webkit-appearance: none;
  padding-right: 2.5rem;
}

/* 라벨 */
.form-label,
label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: hsl(var(--foreground));
  margin-bottom: 0.375rem;
  line-height: var(--line-height);
}

/* 필수 표시 */
.form-label.required::after,
label.required::after {
  content: ' *';
  color: hsl(var(--destructive));
}

/* 도움말 텍스트 */
.form-text,
.form-hint {
  font-size: var(--font-size-sm);
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* 오류 메시지 */
.form-error,
.invalid-feedback {
  font-size: var(--font-size-sm);
  color: hsl(var(--destructive));
  margin-top: 0.25rem;
}

.form-control.is-invalid,
input.is-invalid,
textarea.is-invalid,
select.is-invalid {
  border-color: hsl(var(--destructive));
}

.form-control.is-invalid:focus,
input.is-invalid:focus {
  border-color: hsl(var(--destructive));
  box-shadow: 0 0 0 3px hsl(var(--destructive) / 0.15);
}

/* ─────────────────────────────────────────────
   6. 카드 컴포넌트
   ───────────────────────────────────────────── */
.card {
  background-color: hsl(var(--card));
  color: hsl(var(--card-foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-header {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.5rem;
  padding-bottom: 0;
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
  color: hsl(var(--card-foreground));
}

.card-description {
  font-size: var(--font-size-sm);
  color: hsl(var(--muted-foreground));
}

.card-content {
  padding: 1.5rem;
}

.card-footer {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  padding-top: 0;
}

/* ─────────────────────────────────────────────
   7. 배지 (Badge)
   ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  border: 1px solid transparent;
  padding: 0.125rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  transition: all var(--transition);
  white-space: nowrap;
}

.badge-default {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.badge-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-color: hsl(var(--border));
}

.badge-outline {
  background-color: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}

.badge-destructive {
  background-color: hsl(var(--destructive));
  color: hsl(var(--destructive-foreground));
  border-color: hsl(var(--destructive));
}

.badge-success {
  background-color: hsl(var(--success));
  color: hsl(var(--success-foreground));
  border-color: hsl(var(--success));
}

/* ─────────────────────────────────────────────
   8. 알림 (Alert)
   ───────────────────────────────────────────── */
.alert {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
  padding: 1rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
}

.alert-destructive {
  border-color: hsl(var(--destructive) / 0.5);
  background-color: hsl(var(--destructive) / 0.05);
  color: hsl(var(--destructive));
}

.alert-success {
  border-color: hsl(var(--success) / 0.5);
  background-color: hsl(var(--success) / 0.05);
  color: hsl(var(--success));
}

.alert-warning {
  border-color: hsl(var(--warning) / 0.5);
  background-color: hsl(var(--warning) / 0.08);
  color: hsl(38 92% 35%);
}

.alert-info {
  border-color: hsl(var(--info) / 0.5);
  background-color: hsl(var(--info) / 0.05);
  color: hsl(var(--info));
}

/* ─────────────────────────────────────────────
   9. 구분선 (Separator)
   ───────────────────────────────────────────── */
.separator,
hr {
  border: none;
  border-top: 1px solid hsl(var(--border));
  margin: 1.5rem 0;
}

/* ─────────────────────────────────────────────
   10. 테이블
   ───────────────────────────────────────────── */
.table-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid hsl(var(--border));
}

table {
  width: 100%;
  caption-side: bottom;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

thead {
  border-bottom: 1px solid hsl(var(--border));
}

thead tr th {
  height: 3rem;
  padding: 0 1rem;
  text-align: left;
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--muted) / 0.5);
}

tbody tr {
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color var(--transition);
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover {
  background-color: hsl(var(--muted) / 0.5);
}

tbody td {
  padding: 1rem;
  color: hsl(var(--foreground));
  vertical-align: middle;
}

/* ─────────────────────────────────────────────
   11. 페이지네이션
   ───────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-size: var(--font-size-sm);
  text-decoration: none;
  transition: all var(--transition);
  font-weight: 500;
}

.page-item .page-link:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
  border-color: hsl(var(--border));
}

.page-item.active .page-link {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.page-item.disabled .page-link {
  background-color: hsl(var(--muted));
  color: hsl(var(--muted-foreground));
  pointer-events: none;
  opacity: 0.5;
}

/* ─────────────────────────────────────────────
   12. 내비게이션 (Navbar)
   ───────────────────────────────────────────── */
.navbar {
  background-color: hsl(var(--background)) !important;
  border-bottom: 1px solid hsl(var(--border)) !important;
  box-shadow: none !important;
  padding: 0 !important;
}

.navbar-brand {
  font-size: var(--font-size-base) !important;
  font-weight: 700 !important;
  color: hsl(var(--foreground)) !important;
  text-decoration: none !important;
  letter-spacing: -0.02em;
}

.navbar-brand:hover {
  color: hsl(var(--foreground)) !important;
}

.nav-link {
  font-size: var(--font-size-sm) !important;
  font-weight: 500 !important;
  color: hsl(var(--muted-foreground)) !important;
  text-decoration: none !important;
  padding: 1rem 0.875rem !important;
  transition: color var(--transition) !important;
  border-bottom: 2px solid transparent;
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: hsl(var(--foreground)) !important;
}

.nav-link.active {
  border-bottom-color: hsl(var(--foreground));
}

.dropdown-menu {
  background-color: hsl(var(--popover)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-md) !important;
  padding: 0.25rem !important;
  min-width: 10rem;
}

.dropdown-item {
  font-size: var(--font-size-sm) !important;
  font-weight: 400 !important;
  color: hsl(var(--foreground)) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.5rem 0.75rem !important;
  text-decoration: none !important;
  transition: background-color var(--transition) !important;
}

.dropdown-item:hover {
  background-color: hsl(var(--accent)) !important;
  color: hsl(var(--accent-foreground)) !important;
}

.dropdown-item.active {
  background-color: hsl(var(--accent)) !important;
  color: hsl(var(--accent-foreground)) !important;
  font-weight: 500 !important;
}

.navbar-toggler {
  border: 1px solid hsl(var(--border)) !important;
  border-radius: var(--radius-sm) !important;
  padding: 0.375rem 0.5rem !important;
  color: hsl(var(--foreground)) !important;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.15) !important;
  outline: none !important;
}

/* ─────────────────────────────────────────────
   13. 사이드바 & 레이아웃
   ───────────────────────────────────────────── */
.sidebar {
  background-color: hsl(var(--background));
  border-right: 1px solid hsl(var(--border));
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  text-decoration: none;
  transition: all var(--transition);
}

.sidebar-nav-item:hover {
  background-color: hsl(var(--accent));
  color: hsl(var(--accent-foreground));
}

.sidebar-nav-item.active {
  background-color: hsl(var(--accent));
  color: hsl(var(--foreground));
}

/* ─────────────────────────────────────────────
   14. 게시판 전용 컴포넌트
   ───────────────────────────────────────────── */
.board-surface {
  /* shadcn 토큰 오버라이드 */
  --theme-bg-primary: hsl(var(--background));
  --theme-bg-secondary: hsl(var(--muted) / 0.5);
  --theme-bg-accent: hsl(var(--accent));
  --theme-border-light: hsl(var(--border));
  --theme-border-medium: hsl(var(--border));
  --theme-border-strong: hsl(240 5.9% 80%);
  --theme-border-primary: hsl(var(--primary));
  --theme-text-primary: hsl(var(--foreground));
  --theme-text-secondary: hsl(var(--muted-foreground));
  --theme-text-muted: hsl(var(--muted-foreground));
  --theme-success: hsl(var(--success));
  --theme-warning: hsl(var(--warning));
  --theme-error: hsl(var(--destructive));
  --theme-info: hsl(var(--info));
  --theme-primary: hsl(var(--primary));
  --theme-primary-light: hsl(var(--secondary));
  --theme-primary-dark: hsl(240 5.9% 5%);
  --theme-secondary: hsl(var(--secondary));
  --theme-secondary-light: hsl(var(--muted));
  --theme-secondary-dark: hsl(240 4.8% 85%);
  --theme-shadow-sm: var(--shadow-sm);
  --theme-shadow-md: var(--shadow-md);
  --theme-shadow-lg: var(--shadow-lg);
  --theme-radius: var(--radius-lg);
  --theme-radius-sm: var(--radius-sm);
  --theme-radius-lg: var(--radius-xl);

  background-color: hsl(var(--background));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.board-surface .board-header {
  padding: 1.5rem;
  border-bottom: 1px solid hsl(var(--border));
}

.board-surface .board-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: hsl(var(--foreground));
}

.board-surface .board-description {
  font-size: var(--font-size-sm);
  color: hsl(var(--muted-foreground));
  margin-top: 0.25rem;
}

/* 게시판 목록 행 */
.board-surface .board-row {
  border-bottom: 1px solid hsl(var(--border));
  transition: background-color var(--transition);
}

.board-surface .board-row:hover {
  background-color: hsl(var(--muted) / 0.5);
}

.board-surface .board-row:last-child {
  border-bottom: none;
}

/* 게시물 제목 링크 */
.board-surface .post-title-link {
  color: hsl(var(--foreground));
  text-decoration: none;
  font-weight: 500;
}

.board-surface .post-title-link:hover {
  color: hsl(var(--muted-foreground));
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* 게시판 검색 영역 */
.board-surface .search-container {
  background-color: hsl(var(--muted) / 0.3) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1rem !important;
}

/* ─────────────────────────────────────────────
   15. 입력 그룹
   ───────────────────────────────────────────── */
.input-group {
  display: flex;
  align-items: center;
}

.input-group-text {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.75rem;
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: hsl(var(--muted-foreground));
  background-color: hsl(var(--muted));
  border: 1px solid hsl(var(--input));
  border-right: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  height: 2.25rem;
}

.input-group .form-control,
.input-group input {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.input-group .btn {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  border-left: none;
}

/* ─────────────────────────────────────────────
   16. 스켈레톤 (로딩 상태)
   ───────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg,
    hsl(var(--muted)) 25%,
    hsl(var(--muted) / 0.5) 50%,
    hsl(var(--muted)) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─────────────────────────────────────────────
   17. 유틸리티 클래스
   ───────────────────────────────────────────── */
.text-muted {
  color: hsl(var(--muted-foreground)) !important;
}

.text-primary-custom {
  color: hsl(var(--primary)) !important;
}

.bg-muted {
  background-color: hsl(var(--muted)) !important;
}

.bg-card {
  background-color: hsl(var(--card)) !important;
}

.border-default {
  border: 1px solid hsl(var(--border)) !important;
}

.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-xl { border-radius: var(--radius-xl) !important; }
.rounded-full { border-radius: 9999px !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow-md { box-shadow: var(--shadow-md) !important; }
.shadow-none { box-shadow: none !important; }

/* ─────────────────────────────────────────────
   18. 접근성
   ───────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 0.5rem 1rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 0.5rem;
  left: 0.5rem;
}

/* 포커스 링 */
:focus-visible {
  outline: 2px solid hsl(var(--ring));
  outline-offset: 2px;
}

/* ─────────────────────────────────────────────
   19. 반응형
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }

  .card-header,
  .card-content,
  .card-footer {
    padding: 1rem;
  }

  .btn {
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .navbar-brand {
    font-size: var(--font-size-sm) !important;
  }
}

/* ─────────────────────────────────────────────
   20. 다크모드 (선택 사항)
   ───────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  :root {
    --background: 240 10% 3.9%;
    --foreground: 0 0% 98%;
    --card: 240 10% 3.9%;
    --card-foreground: 0 0% 98%;
    --popover: 240 10% 3.9%;
    --popover-foreground: 0 0% 98%;
    --primary: 0 0% 98%;
    --primary-foreground: 240 5.9% 10%;
    --secondary: 240 3.7% 15.9%;
    --secondary-foreground: 0 0% 98%;
    --muted: 240 3.7% 15.9%;
    --muted-foreground: 240 5% 64.9%;
    --accent: 240 3.7% 15.9%;
    --accent-foreground: 0 0% 98%;
    --destructive: 0 62.8% 50.6%;
    --destructive-foreground: 0 0% 98%;
    --border: 240 3.7% 15.9%;
    --input: 240 3.7% 15.9%;
    --ring: 240 4.9% 83.9%;
    --success: 142 70% 45%;
    --info: 221 83% 60%;
    --warning: 38 92% 55%;
  }
}
