/* ===== 주소야 매거진 — Design System ===== */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  --primary: #1a1a2e;
  --secondary: #16213e;
  --accent: #e94560;
  --accent-light: #ff6b81;
  --text: #2d3436;
  --text-light: #636e72;
  --text-muted: #b2bec3;
  --bg: #fafafa;
  --bg-card: #ffffff;
  --bg-dark: #0f0f1a;
  --border: #eee;
  --shadow: 0 2px 15px rgba(0,0,0,.06);
  --shadow-hover: 0 8px 30px rgba(0,0,0,.12);
  --radius: 12px;
  --transition: all .3s ease;
}

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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-light); }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
.mag-header {
  background: var(--primary);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}

.mag-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.mag-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.5px;
}
.mag-logo:hover { color: #fff; }
.mag-logo span { color: var(--accent); }

.mag-nav { display: flex; gap: 28px; list-style: none; }
.mag-nav a {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}
.mag-nav a:hover { color: #fff; }

.nav-toggle { display: none; color: #fff; font-size: 1.5rem; cursor: pointer; background: none; border: none; }

/* ===== HERO ===== */
.mag-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, #1a1a3e 100%);
  padding: 80px 0 60px;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mag-hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233,69,96,.15) 0%, transparent 70%);
  border-radius: 50%;
}
.mag-hero h1 {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.mag-hero .accent { color: var(--accent); }
.mag-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== ARTICLE CARDS ===== */
.articles-section {
  padding: 60px 0;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 12px;
}
.section-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.section-header .view-all {
  font-size: .85rem;
  color: var(--accent);
  font-weight: 500;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.article-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.article-card .card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.article-card .card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-tag {
  display: inline-block;
  background: rgba(233,69,96,.1);
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  width: fit-content;
  text-transform: uppercase;
}

.article-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.5;
  color: var(--primary);
}
.article-card h3 a { color: inherit; }
.article-card h3 a:hover { color: var(--accent); }

.article-card .card-excerpt {
  font-size: .9rem;
  color: var(--text-light);
  line-height: 1.7;
  flex: 1;
}

.card-meta {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .8rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

/* ===== ARTICLE PAGE ===== */
.article-page {
  padding: 50px 0 80px;
}
.article-page .container {
  max-width: 760px;
}
.article-page .breadcrumb {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.article-page .breadcrumb a { color: var(--text-light); }
.article-page .breadcrumb a:hover { color: var(--accent); }

.article-page h1 {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.4;
  margin-bottom: 16px;
  color: var(--primary);
}

.article-meta-bar {
  display: flex;
  gap: 16px;
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.article-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--primary);
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.article-content h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 30px 0 12px;
  color: var(--secondary);
}
.article-content p {
  margin-bottom: 20px;
  color: var(--text);
  line-height: 1.9;
}
.article-content ul, .article-content ol {
  margin: 16px 0 24px 20px;
  color: var(--text);
}
.article-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.article-content blockquote {
  background: #f8f9fa;
  border-left: 4px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-light);
}
.article-content .tip-box {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0fe 100%);
  border: 1px solid #c5d5f7;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 24px 0;
}
.tip-box strong { color: var(--secondary); }

/* ===== ABOUT PAGE ===== */
.about-section {
  padding: 60px 0;
}
.about-section .container {
  max-width: 760px;
}
.about-section h1 {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 28px;
  color: var(--primary);
}
.about-section h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 36px 0 14px;
  color: var(--primary);
}
.about-section p {
  margin-bottom: 18px;
  line-height: 1.9;
  color: var(--text);
}

/* ===== FOOTER ===== */
.mag-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,.5);
  padding: 40px 0;
  text-align: center;
  font-size: .85rem;
  line-height: 1.8;
}
.mag-footer a { color: rgba(255,255,255,.7); }
.mag-footer a:hover { color: #fff; }
.footer-links { margin-bottom: 16px; }
.footer-links a { margin: 0 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .mag-header .container { height: 56px; }
  .mag-nav { display: none; }
  .mag-nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 20px;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
  }
  .nav-toggle { display: block; }

  .mag-hero { padding: 50px 0 40px; }
  .mag-hero h1 { font-size: 1.7rem; }
  .mag-hero p { font-size: 1rem; }

  .article-grid { grid-template-columns: 1fr; gap: 20px; }

  .article-page h1 { font-size: 1.5rem; }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
