/* 모바일 퍼스트 - 운전기사 알바 매칭 서비스 */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #f59e0b;
  --success: #10b981;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --white: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --safe-bottom: env(safe-area-inset-bottom, 0);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.5;
  min-height: 100vh;
  padding-bottom: calc(72px + var(--safe-bottom));
}

/* 헤더 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
}

.header-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.header-back:active {
  background: var(--gray-100);
}

/* 컨테이너 */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.container-narrow {
  max-width: 400px;
  margin: 0 auto;
  padding: 16px;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover, .btn-primary:active {
  background: var(--primary-dark);
}

.btn-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}

.btn-secondary:hover, .btn-secondary:active {
  background: var(--gray-200);
}

.btn-outline {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover, .btn-outline:active {
  background: var(--gray-50);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}

.btn-sm {
  padding: 10px 16px;
  font-size: 0.875rem;
}

/* 폼 */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--gray-900);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 0.75rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* 카드 */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 12px;
}

.card-body {
  padding: 16px;
}

.card-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--gray-900);
}

.card-meta {
  font-size: 0.875rem;
  color: var(--gray-500);
}

/* 구인 카드 (리스트용) */
.job-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: border-color 0.2s;
}

.job-card:active {
  border-color: var(--primary);
}

.job-card-academy {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 4px;
}

.job-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.job-card-info {
  font-size: 0.875rem;
  color: var(--gray-600);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.job-card-tag {
  display: inline-block;
  padding: 4px 8px;
  font-size: 0.75rem;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: 6px;
  margin-top: 8px;
}

.job-card-tag.urgent {
  background: #fef3c7;
  color: #b45309;
}

/* 배지 */
.badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
}

.badge-success {
  background: #d1fae5;
  color: #065f46;
}

.badge-warning {
  background: #fef3c7;
  color: #b45309;
}

.badge-info {
  background: #dbeafe;
  color: #1e40af;
}

/* 하단 네비 */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  padding: 8px 0;
  padding-bottom: calc(8px + var(--safe-bottom));
  display: flex;
  justify-content: space-around;
  z-index: 90;
}

.bottom-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px;
  color: var(--gray-500);
  text-decoration: none;
  font-size: 0.75rem;
}

.bottom-nav a.active {
  color: var(--primary);
  font-weight: 600;
}

.bottom-nav a span:first-child {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

/* 히어로 (랜딩) */
.hero {
  text-align: center;
  padding: 40px 20px 32px;
}

.hero-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
  line-height: 1.3;
}

.hero p {
  font-size: 0.9375rem;
  color: var(--gray-500);
  margin-bottom: 32px;
}

/* 진입 버튼 2개 */
.entry-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.entry-btn {
  display: flex;
  align-items: center;
  padding: 20px 20px;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 600;
  font-size: 1rem;
  text-align: left;
  box-shadow: var(--shadow);
  transition: border-color 0.2s;
}

.entry-btn:hover, .entry-btn:active {
  border-color: var(--primary);
}

.entry-btn-icon {
  font-size: 2rem;
  margin-right: 16px;
}

.entry-btn-text strong {
  display: block;
  margin-bottom: 2px;
}

.entry-btn-text span {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--gray-500);
}

/* 구분선 */
.divider {
  height: 1px;
  background: var(--gray-200);
  margin: 16px 0;
}

/* 리스트 */
.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
  color: inherit;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-title {
  font-weight: 500;
  color: var(--gray-900);
}

.list-item-sub {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 2px;
}

/* 유틸 */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 12px;
}

.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--gray-500);
  font-size: 0.9375rem;
}

.empty-state-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
  opacity: 0.6;
}
