/* ===================================
   성남 수정구 경찰발전협의회 - 공통 스타일
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700;800&display=swap');

:root {
  --primary: #003087;       /* 경찰 남색 */
  --primary-dark: #001f5c;
  --primary-light: #1a4faa;
  --accent: #c8a84b;        /* 금색 포인트 */
  --accent-light: #f0d98a;
  --bg-light: #f4f6fb;
  --bg-white: #ffffff;
  --text-dark: #1a1a2e;
  --text-mid: #444466;
  --text-light: #7a7a99;
  --border: #e0e4f0;
  --shadow-sm: 0 2px 8px rgba(0,48,135,0.08);
  --shadow-md: 0 8px 32px rgba(0,48,135,0.12);
  --shadow-lg: 0 16px 48px rgba(0,48,135,0.16);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── 네비게이션 ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(0,48,135,0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--primary-dark);
  font-weight: 800;
  flex-shrink: 0;
}

.nav-logo-text { color: #fff; }
.nav-logo-text .title { font-size: 15px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.3; }
.nav-logo-text .sub { font-size: 11px; font-weight: 400; opacity: 0.8; letter-spacing: 0.5px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-menu li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  background: rgba(200,168,75,0.25);
  color: var(--accent-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 26px; height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: var(--transition);
}

/* ── 페이지 헤더 ── */
.page-header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  padding: 120px 24px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
  color: #fff;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  position: relative;
}

.page-header .breadcrumb {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin-top: 12px;
  position: relative;
}

.page-header .breadcrumb a { color: var(--accent-light); text-decoration: none; }

/* ── 섹션 공통 ── */
.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 56px;
}

.section-title .label {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title h2 {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -1px;
  line-height: 1.3;
}

.section-title p {
  color: var(--text-light);
  font-size: 16px;
  margin-top: 12px;
}

/* ── 카드 ── */
.card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* ── 버튼 ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: var(--transition);
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,48,135,0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,48,135,0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--accent), #b8940e);
  color: var(--primary-dark);
  box-shadow: 0 4px 16px rgba(200,168,75,0.4);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200,168,75,0.5);
}

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

.badge-primary { background: #e8eeff; color: var(--primary); }
.badge-gold { background: #fff8e1; color: #b8940e; }
.badge-green { background: #e8f5e9; color: #2e7d32; }
.badge-red { background: #ffebee; color: #c62828; }

/* ── 테이블 ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.data-table thead {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
}

.data-table thead th {
  padding: 16px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.5px;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.data-table tbody tr:hover { background: var(--bg-light); }
.data-table tbody tr:last-child { border-bottom: none; }

.data-table tbody td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-mid);
}

/* ── 푸터 ── */
footer {
  background: var(--primary-dark);
  color: rgba(255,255,255,0.8);
  padding: 60px 24px 32px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer-brand .logo-icon {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: var(--primary-dark);
  font-weight: 800;
}

.footer-brand .logo-text { color: #fff; font-size: 15px; font-weight: 700; }

.footer-brand p {
  font-size: 13px;
  line-height: 1.8;
  opacity: 0.75;
}

.footer-links h4 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-links ul { list-style: none; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--accent-light); }

.footer-bottom {
  max-width: 1280px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 12px; opacity: 0.6; }

/* ── 반응형 ── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(0,30,90,0.98);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    backdrop-filter: blur(12px);
  }

  .nav-menu.open { display: flex; }
  .nav-menu li { width: 100%; }
  .nav-menu li a { padding: 12px 16px; border-radius: 8px; }
  .nav-toggle { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── 유틸리티 ── */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ── 페이지 전환 애니메이션 ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeInUp 0.6s ease both; }
.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }
