/* KPN - Korea Preppers Network 공통 스타일 */

/* Pretendard 폰트 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

/* 컬러 시스템 */
:root {
  --bg: #0D0D0D;
  --text: #EAEAEA;
  --accent: #7F5AF0;
  --subtle: #72757E;
  --line: #1E1E1E;
  --card-bg: #111;
}

/* 기본 리셋 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Pretendard', sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

/* 타이포그래피 */
h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.4rem;
}

h2 {
  font-size: 1.8rem;
}

h3 {
  font-size: 1.4rem;
}

p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

small {
  font-size: 0.9rem;
  color: var(--subtle);
}

a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease-in-out;
}

a:hover {
  color: var(--accent);
}

/* 네비게이션 */
nav {
  position: sticky;
  top: 0;
  background: rgba(13, 13, 13, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  z-index: 100;
}

nav .container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .logo {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul li a {
  position: relative;
  padding: 0.5rem 0;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* 메인 컨테이너 */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* 섹션 */
section {
  padding: 3rem 0;
}

/* 버튼 */
button,
.btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  font-family: 'Pretendard', sans-serif;
}

button:hover,
.btn:hover {
  background: var(--accent);
  color: var(--bg);
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 카드 */
.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1.5rem;
  background: var(--card-bg);
  transition: border-color 0.2s ease-in-out;
}

.card:hover {
  border-color: var(--accent);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 0.5rem;
}

/* 그리드 레이아웃 */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

/* 히어로 섹션 */
.hero {
  text-align: center;
  padding: 6rem 0 4rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.2rem;
  color: var(--subtle);
  margin-bottom: 2rem;
}

/* 폼 */
form {
  max-width: 480px;
  margin: 0 auto;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text);
  font-weight: 500;
}

input,
textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: 'Pretendard', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease-in-out;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

/* 환영 메시지 */
.welcome {
  text-align: center;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
  margin-bottom: 2rem;
  color: var(--accent);
}

/* 언어 전환 버튼 */
#lang-switcher {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1001;
}

#lang-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(13, 13, 13, 0.95);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 0.9rem;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

#lang-btn:hover {
  background: var(--accent);
  color: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(127, 90, 240, 0.3);
}

.lang-icon {
  font-size: 1.1rem;
}

.lang-code {
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* 푸터 */
footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  text-align: center;
  color: var(--subtle);
  margin-top: 4rem;
}

/* 반응형 */
@media (max-width: 768px) {
  nav ul {
    gap: 1rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  section {
    padding: 2rem 0;
  }

  /* 언어 전환 버튼 모바일 */
  #lang-switcher {
    top: 0.7rem;
    right: 0.7rem;
  }

  #lang-btn {
    padding: 0.5rem 0.8rem;
    font-size: 0.85rem;
  }

  .lang-icon {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  nav .container {
    flex-direction: column;
    gap: 1rem;
  }

  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
}

