/* fullake.co.kr — 메인 스타일시트 */
:root {
  --color-main: #F8BBD9;
  --color-main-dark: #E891B5;
  --color-sub: #FFF9C4;
  --color-sub-dark: #F5E6A3;
  --color-text: #2D2D2D;
  --color-text-muted: #5C5C5C;
  --color-bg: #FFFBFC;
  --color-card: #FFFFFF;
  --color-border: #F0E0E8;
  --font-sans: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  --max-width: 1120px;
  --content-width: 720px;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(45, 45, 45, 0.06);
  --header-h: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
}

img { max-width: 100%; height: auto; }

a {
  color: var(--color-main-dark);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: #C76B95; text-decoration: underline; }

h1, h2, h3, h4 {
  line-height: 1.35;
  font-weight: 700;
  margin-top: 0;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }

ul, ol { padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-card);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.site-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--color-text);
}
.site-logo:hover { text-decoration: none; color: var(--color-text); }
.site-logo .logo-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-main-dark);
}
.site-logo .logo-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--color-sub);
  color: var(--color-text);
  text-decoration: none;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-sub) 100%);
  padding: 3rem 0;
  margin-bottom: 2rem;
}
.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 0.75rem;
}
.hero .hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 1.5rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: var(--color-main-dark);
  color: #fff;
}
.btn-primary:hover { color: #fff; box-shadow: 0 4px 12px rgba(232, 145, 181, 0.4); }
.btn-secondary {
  background: var(--color-card);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { color: var(--color-text); background: var(--color-sub); }

/* Sections */
.section {
  padding: 2.5rem 0;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.section-title {
  font-size: 1.4rem;
  margin: 0;
}
.section-link {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 45, 45, 0.08);
}
.card-category {
  font-size: 0.8rem;
  color: var(--color-main-dark);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.card-title {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  line-height: 1.4;
}
.card-title a {
  color: var(--color-text);
  text-decoration: none;
}
.card-title a:hover { color: var(--color-main-dark); }
.card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  flex: 1;
  margin-bottom: 0.75rem;
}
.card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.card-badge {
  display: inline-block;
  background: var(--color-sub);
  color: var(--color-text);
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
}

/* Category cards */
.category-card {
  text-align: center;
  padding: 1.5rem;
}
.category-card .cat-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.category-card h3 { margin-bottom: 0.5rem; font-size: 1.1rem; }
.category-card p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

/* Info boxes */
.info-box {
  background: var(--color-sub);
  border-left: 4px solid var(--color-main-dark);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
}
.info-box h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.info-box.warning {
  background: #FFF3E0;
  border-left-color: #FFB74D;
}

/* Editor box */
.editor-box {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 2rem 0;
}
.editor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-main), var(--color-sub));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.editor-info h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.editor-info .editor-name a { font-weight: 700; }
.editor-info p { font-size: 0.9rem; color: var(--color-text-muted); margin: 0; }

/* Principles list */
.principles-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.principles-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  padding-left: 1.5rem;
  position: relative;
}
.principles-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-main-dark);
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding: 1rem 0;
  margin-bottom: 0.5rem;
}
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb span { margin: 0 0.35rem; }

/* Article */
.article-header { margin-bottom: 2rem; }
.article-header .subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin: 0.5rem 0 1rem;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.article-meta a { font-weight: 600; }

.toc-box {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.toc-box h2 { font-size: 1rem; margin-bottom: 0.75rem; }
.toc-box ol { margin: 0; }
.toc-box a { color: var(--color-text); font-size: 0.95rem; }

.article-body h2 {
  margin-top: 2rem;
  padding-top: 0.5rem;
}
.article-body h2:first-child { margin-top: 0; }

.mistakes-list, .checklist {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.mistakes-list h3, .checklist h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}
.checklist ul { list-style: none; padding: 0; }
.checklist li {
  padding-left: 1.5rem;
  position: relative;
}
.checklist li::before {
  content: '☐';
  position: absolute;
  left: 0;
}

.faq-section { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-q {
  padding: 1rem 1.25rem;
  background: var(--color-sub);
  font-weight: 600;
  margin: 0;
  font-size: 0.95rem;
}
.faq-a {
  padding: 1rem 1.25rem;
  margin: 0;
  font-size: 0.95rem;
}

.related-posts { margin: 2rem 0; }
.related-posts ul { list-style: none; padding: 0; }
.related-posts li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}
.related-posts li:last-child { border-bottom: none; }

.article-footer-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border);
}

/* Column style */
.column-card {
  border-left: 4px solid var(--color-main-dark);
}
.column-badge {
  background: var(--color-main);
  color: var(--color-text);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 0.5rem;
}

/* Author hub */
.author-hero {
  background: linear-gradient(135deg, var(--color-main) 0%, var(--color-sub) 60%);
  padding: 2.5rem 0;
  margin-bottom: 2rem;
}
.admin-write-btn {
  margin-top: 1rem;
}

/* Contact form */
.contact-form {
  max-width: 520px;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
}
.form-group textarea { min-height: 140px; resize: vertical; }

/* Trust pages */
.legal-content h2 { margin-top: 2rem; }
.legal-content h2:first-child { margin-top: 0; }

/* Sitemap */
.sitemap-list {
  columns: 2;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.sitemap-list li { margin-bottom: 0.5rem; break-inside: avoid; }
.sitemap-group { margin-bottom: 2rem; }
.sitemap-group h2 { font-size: 1.1rem; margin-bottom: 0.75rem; }

/* Footer */
.site-footer {
  background: var(--color-card);
  border-top: 1px solid var(--color-border);
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .footer-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-main-dark);
  margin-bottom: 0.5rem;
}
.footer-brand p {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.footer-links h4 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li { margin-bottom: 0.4rem; }
.footer-links a {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}
.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* 404 */
.error-page {
  text-align: center;
  padding: 4rem 1rem;
}
.error-page h1 { font-size: 4rem; color: var(--color-main-dark); margin-bottom: 0.5rem; }

/* CTA */
.cta-section {
  background: linear-gradient(135deg, var(--color-sub) 0%, var(--color-main) 100%);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  margin: 2rem 0;
}
.cta-section h2 { margin-bottom: 0.5rem; }
.cta-section p { color: var(--color-text-muted); margin-bottom: 1.25rem; }

/* Page main */
.page-main { min-height: calc(100vh - var(--header-h) - 200px); padding-bottom: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--color-card);
    border-bottom: 1px solid var(--color-border);
    padding: 0.5rem;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .sitemap-list { columns: 1; }
  .editor-box { flex-direction: column; }
  h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 2rem 0; }
}
