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

:root {
  --primary: #2D1B69;
  --primary-light: #4A2FBA;
  --accent: #FF6B6B;
  --amber: #FFB347;
  --bg: #FAFAF9;
  --white: #ffffff;
  --text: #1a1a1a;
  --text-muted: #777;
  --border: #efefef;
  --card-shadow: 0 4px 24px rgba(0,0,0,0.08);
  --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans KR', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* NAV */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 999;
}
.nav-logo {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--primary); }
.nav-btn {
  background: var(--primary);
  color: white !important;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px !important;
  font-weight: 700 !important;
}
.nav-btn:hover { background: var(--primary-light); color: white !important; }

/* BUTTONS */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 16px rgba(45,27,105,0.3);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45,27,105,0.35);
}
.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--amber));
  color: white;
  box-shadow: 0 4px 16px rgba(255,107,107,0.35);
}
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,107,107,0.45); }
.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary); color: white; }
.btn-full { width: 100%; display: block; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* CARDS */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--card-shadow);
}

/* SECTION */
.section { padding: 64px 24px; max-width: 1100px; margin: 0 auto; }
.section-sm { padding: 40px 24px; max-width: 680px; margin: 0 auto; }
.section-title { font-size: 28px; font-weight: 900; margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 40px; }

/* BADGE */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.badge-purple { background: #ede9ff; color: var(--primary); }
.badge-red { background: #ffe9e9; color: var(--accent); }
.badge-amber { background: #fff4e0; color: #d97706; }

/* BLOG GRID */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }
.blog-card-thumb {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, #ede9ff, #fce4ec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
}
.blog-card-body { padding: 20px; }
.blog-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.blog-card-body p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.blog-card-meta { font-size: 12px; color: #bbb; margin-top: 12px; }

/* FOOTER */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-logo { font-size: 20px; font-weight: 900; color: white; margin-bottom: 8px; }
.footer-desc { font-size: 13px; margin-bottom: 24px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: white; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.4); border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; margin-top: 8px; }

/* ARTICLE */
.article-wrap { max-width: 720px; margin: 0 auto; padding: 40px 24px 80px; }
.article-header { margin-bottom: 32px; }
.article-title { font-size: 28px; font-weight: 900; line-height: 1.4; margin-bottom: 12px; }
.article-meta { color: var(--text-muted); font-size: 13px; display: flex; gap: 16px; flex-wrap: wrap; }
.article-thumb {
  width: 100%;
  height: 280px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #ede9ff, #fce4ec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  margin-bottom: 32px;
}
.article-body { font-size: 16px; line-height: 1.9; color: #333; }
.article-body h2 { font-size: 21px; font-weight: 800; margin: 36px 0 14px; color: var(--primary); }
.article-body h3 { font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 16px; }
.article-body li { margin-bottom: 8px; }
.article-body .highlight {
  background: #ede9ff;
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-size: 15px;
}

/* FORM */
.form-group { margin-bottom: 20px; }
.form-label { font-size: 14px; font-weight: 700; margin-bottom: 8px; display: block; }
.form-input, .form-textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: 'Noto Sans KR', sans-serif;
  transition: border-color 0.2s;
  background: white;
}
.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.form-textarea { height: 140px; resize: none; }

/* UPLOAD */
.upload-zone {
  border: 2.5px dashed #d0c8f0;
  border-radius: 16px;
  padding: 36px 24px;
  text-align: center;
  cursor: pointer;
  background: #faf8ff;
  transition: all 0.2s;
}
.upload-zone:hover { border-color: var(--primary); background: #f0eaff; }
.upload-zone .uz-icon { font-size: 44px; margin-bottom: 10px; }
.upload-zone p { color: var(--text-muted); font-size: 14px; }

.preview-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--amber);
  display: block;
  margin: 16px auto 0;
  box-shadow: 0 4px 16px rgba(255,179,71,0.3);
}

/* SCORE ANIM */
@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  70% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.pop-in { animation: popIn 0.5s ease forwards; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links a:not(.nav-btn) { display: none; }
  .section-title { font-size: 22px; }
  .blog-grid { grid-template-columns: 1fr; }
  .article-title { font-size: 22px; }
}
