/*
Theme Name:  VOBET Magazine
Theme URI:   https://vobet-magazine.com
Description: VOBET Magazine — 크립토·스포츠·라이프스타일 프리미엄 한국어 미디어
Author:      VOBET
Author URI:  https://vobet-magazine.com
Version:     1.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vobet-magazine
Tags:        blog, dark, custom-colors
*/

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --white:        #ffffff;
  --bg:           #0b1120;
  --text:         #e8edf5;
  --text-muted:   #7a8aaa;
  --accent:       #FFD000;
  --accent-light: rgba(255,208,0,0.15);
  --accent-dark:  #e6bb00;
  --border:       #1a2540;
  --card-bg:      #111d35;
  --dark:         #0d1828;
  --dark-2:       #080f1c;
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --shadow-sm:    0 1px 4px rgba(0,5,20,.5);
  --shadow:       0 4px 16px rgba(0,5,20,.6);
  --shadow-lg:    0 8px 32px rgba(0,5,20,.7);
  --shadow-hover: 0 20px 60px rgba(0,5,20,.8);
  --transition:   0.25s ease;
  --nav-h:        64px;
  --max-w:        1560px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Gradient Image Placeholders ──────────────────────────── */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}
.grad-crypto   { background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #533483 100%); }
.grad-sports   { background: linear-gradient(135deg, #0d1b2a 0%, #1b4332 40%, #2d6a4f 70%, #40916c 100%); }
.grad-life     { background: linear-gradient(135deg, #2d1b69 0%, #7b2d8b 40%, #c44569 70%, #f8a5c2 100%); }
.grad-defi     { background: linear-gradient(135deg, #05445e 0%, #189ab4 50%, #75e6da 100%); }
.grad-rwa      { background: linear-gradient(135deg, #3d0000 0%, #870000 50%, #f46b45 100%); }
.grad-ufc      { background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%); }
.grad-dark-feature { background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #3a3a3a 100%); }

/* ─── Typography helpers ────────────────────────────────────── */
.kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tag-crypto   { background: rgba(79,70,229,.2); color: #818cf8; }
.tag-sports   { background: rgba(22,163,74,.2); color: #4ade80; }
.tag-life     { background: rgba(162,28,175,.2); color: #e879f9; }
.tag-accent   { background: rgba(255,208,0,.15); color: #FFD000; }

/* ─── 1. STICKY NAV ─────────────────────────────────────────── */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: #0d1828;
  border-bottom: 1px solid #1a2540;
  transition: box-shadow var(--transition);
}
#nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.6); }

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  font-weight: 900;
  font-size: 17px;
  letter-spacing: -.04em;
}
.nav-logo-text { display: flex; align-items: baseline; gap: 4px; }
.nav-logo-brand {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #f0f0f0;
}
.nav-logo-sub {
  font-size: 12px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: .06em;
}

/* Custom logo image size */
.nav-logo .custom-logo-link { display: flex !important; align-items: center !important; }
.nav-logo .custom-logo-link img,
.nav-logo img.custom-logo,
.custom-logo-link img,
img.custom-logo {
  height: 36px !important;
  width: auto !important;
  max-width: 160px !important;
  max-height: 36px !important;
  object-fit: contain !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-links a {
  position: relative;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  overflow: hidden;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.nav-links a:hover { color: var(--text); background: #1a2540; }
.nav-links a:hover::after { transform: scaleX(1); }

/* WordPress menu compatibility */
.nav-links ul, .nav-links .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links .current-menu-item > a { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: 1px solid #333; color: #aaa;
  padding: 5px 10px; border-radius: 6px; cursor: pointer;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  transition: border-color var(--transition), color var(--transition);
}
.lang-btn:hover { border-color: #555; color: #fff; }
.lang-btn img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
.lang-caret { transition: transform var(--transition); }
.lang-switcher:hover .lang-caret,
.lang-switcher:focus-within .lang-caret { transform: rotate(180deg); }
.lang-menu {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: var(--card); border: 1px solid var(--border); border-radius: 8px;
  min-width: 130px; z-index: 999; padding: 4px 0;
  list-style: none; margin: 0; box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.lang-switcher:hover .lang-menu,
.lang-switcher:focus-within .lang-menu { display: block; }
.lang-menu li a {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; color: #aaa; font-size: 0.8rem; font-weight: 500; text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.lang-menu li a:hover { background: #1a2540; color: #fff; }
.lang-menu li a.is-current { color: var(--accent); }
.lang-menu li a img { width: 18px; height: 12px; object-fit: cover; border-radius: 2px; }
.nav-search {
  width: 36px;
  height: 36px;
  border: 1px solid #333;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition);
}
.nav-search:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.nav-cta {
  padding: 8px 20px;
  background: var(--accent);
  color: #111;
  font-size: 13px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  letter-spacing: .01em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,208,0,.35);
}

/* ─── 2. HERO ────────────────────────────────────────────────── */
.hero { padding: 48px 0 64px; }

.hero-card {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #f0f0f0 75%),
    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 48px 48px;
  background-position: 0 0, 0 24px, 24px -24px, -24px 0px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 460px;
  position: relative;
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
}
.hero-image-wrap img,
.hero-image-wrap .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-image-wrap:hover img,
.hero-image-wrap:hover .img-placeholder {
  transform: scale(1.06);
}
.hero-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 2;
}
.hero-badge .tag {
  font-size: 10px;
  padding: 4px 12px;
}
.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.2) 0%, transparent 60%);
  pointer-events: none;
}

.hero-content {
  padding: 48px 48px 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  background: transparent;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #e6a800;
  margin-bottom: 14px;
}
.hero-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #0d1b2e;
  margin-bottom: 18px;
}
.hero-excerpt {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.7;
  color: #333;
  margin-bottom: 28px;
  max-width: 440px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.hero-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  overflow: hidden;
}
.hero-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta-text { display: flex; flex-direction: column; gap: 1px; }
.hero-author { font-size: 13px; font-weight: 600; color: #0d1b2e; }
.hero-date { font-size: 12px; color: #666; }

.btn-read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--accent);
  color: #111;
  font-size: 14px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  width: fit-content;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-read:hover {
  background: #f5c800;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,208,0,.4);
}
.btn-read .arrow { transition: transform var(--transition); }
.btn-read:hover .arrow { transform: translateX(3px); }

/* ─── Section Headers ────────────────────────────────────────── */
.section-header {
  margin-bottom: 32px;
}
.section-header.flex {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.see-all:hover { border-color: var(--accent); }

/* ─── 3. POPULAR THIS MONTH ──────────────────────────────────── */
.popular { padding: 0 0 64px; }

.popular-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  position: relative;
}
.popular-grid::after {
  content: '';
  position: absolute;
  right: -2px;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #FFD000 0%, #e879f9 50%, #22d3ee 100%);
}

.popular-intro {
  background: #0b1120;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  min-height: 352px;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 352px;
  justify-content: center;
  position: relative;
}
.popular-intro::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--radius-lg) + 2px);
  background: linear-gradient(135deg, #FFD000, #e879f9 50%, #22d3ee);
  z-index: -1;
}
.popular-intro .kicker { color: var(--accent); }
.popular-intro .section-title { color: white; }
.popular-intro p {
  font-size: 14px;
  line-height: 1.65;
  color: #aaaaaa;
}
.popular-count {
  font-size: 48px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -.04em;
  margin-top: 8px;
}
.popular-count span { font-size: 16px; font-weight: 500; color: #888; letter-spacing: 0; }

.popular-scroll-wrap {
  min-width: 0;
  min-height: 352px;
  clip-path: inset(-80px 0px -80px 0px);
  padding: 16px 0;
  margin: -16px 0;
}
.popular-scroll {
  display: flex;
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  min-width: 0;
  width: 100%;
  padding: 20px 4px 16px;
  margin-top: -20px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.popular-scroll::-webkit-scrollbar { height: 4px; }
.popular-scroll::-webkit-scrollbar-track { background: transparent; }
.popular-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.pop-card {
  width: 250px;
  flex-shrink: 0;
  height: 320px;
  background: #111d35;
  border: 1px solid #2a3a5c;
  border-radius: var(--radius);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  color: var(--text);
  flex-shrink: 0;
  text-decoration: none;
  margin-left: -55px;
  box-shadow: -14px 0 20px rgba(0,5,20,0.75);
}
.pop-card:first-child {
  margin-left: 0;
  box-shadow: none;
}

.pop-card:nth-child(1) { z-index: 1; }
.pop-card:nth-child(2) { z-index: 2; }
.pop-card:nth-child(3) { z-index: 3; }
.pop-card:nth-child(4) { z-index: 4; }
.pop-card:nth-child(5) { z-index: 5; }
.pop-card:nth-child(6) { z-index: 6; }
.pop-card:nth-child(7) { z-index: 7; }
.pop-card:nth-child(8) { z-index: 8; }

.pop-card:hover {
  transform: translateX(-18px) translateY(-14px);
  z-index: 20 !important;
  box-shadow: 0 0 0 1px var(--accent), 0 20px 48px rgba(0,5,20,.9);
  border-color: var(--accent);
}
.pop-card-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}
.pop-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: -.02em;
  color: var(--text);
  flex: 1;
}
.pop-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pop-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}
.pop-author-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.pop-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pop-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

/* ─── 4. LATEST + SIDEBAR ────────────────────────────────────── */
.latest-section { padding: 0 0 64px; }
.latest-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.article-list { display: flex; flex-direction: column; gap: 0; }
.article-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  overflow: visible;
  transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-bottom: 12px;
}
.article-card:hover {
  background: #152040;
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  z-index: 10;
}
.article-thumb {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  align-self: start;
  flex-shrink: 0;
}
.article-thumb img,
.article-thumb .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.article-card:hover .article-thumb img,
.article-card:hover .article-thumb .img-placeholder {
  transform: scale(1.08);
}
.article-body { display: flex; flex-direction: column; gap: 0; justify-content: center; }
.article-tags { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.article-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -.01em;
  transition: color var(--transition);
}
.article-card:hover .article-title { color: var(--accent); }
.article-title a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.article-tags, .article-thumb a, .article-thumb .img-placeholder { position: relative; z-index: 2; }
.article-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}
.article-meta .sep { color: var(--border); }
.article-read-time {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  background: #1a2540;
  border-radius: 100px;
  font-size: 11px;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar-card {
  background: #111d35;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}
.sidebar-card-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.quick-hits-list { display: flex; flex-direction: column; gap: 0; }
.quick-hit {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
  cursor: pointer;
}
.quick-hit:last-child { border-bottom: none; padding-bottom: 0; }
.quick-hit:hover .quick-hit-text { color: var(--accent); }
.quick-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 7px;
}
.quick-hit-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text);
  transition: color var(--transition);
}
.quick-hit-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

.newsletter-card {
  background: var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  color: white;
}
.newsletter-card .sidebar-card-title {
  color: rgba(255,255,255,.7);
  border-color: rgba(255,255,255,.2);
}
.newsletter-heading {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}
.newsletter-sub {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
}
.newsletter-input-wrap { display: flex; flex-direction: column; gap: 8px; }
.newsletter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #444;
  background: #333;
  color: white;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: background var(--transition), border-color var(--transition);
}
.newsletter-input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-input:focus { background: #3a3a3a; border-color: var(--accent); }
.newsletter-btn {
  width: 100%;
  padding: 10px 14px;
  background: var(--dark);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  transition: background var(--transition), transform var(--transition);
}
.newsletter-btn:hover { background: #333; transform: translateY(-1px); }

.cat-list { display: flex; flex-direction: column; gap: 2px; }
.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.cat-item:hover { background: var(--accent-light); }
.cat-item:hover .cat-name { color: var(--accent); }
.cat-name { font-size: 14px; font-weight: 500; color: var(--text); transition: color var(--transition); }
.cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  background: #1a2540;
  padding: 2px 8px;
  border-radius: 100px;
}

/* ─── 5. COLLECTIONS ─────────────────────────────────────────── */
.collections { padding: 0 0 72px; }
.collections-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.coll-card {
  background: #111d35;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  overflow: visible;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
}
.coll-card:hover {
  border-color: var(--accent);
  transform: translateY(-10px);
  box-shadow: 0 24px 60px rgba(0,0,0,.7);
  z-index: 5;
}
.coll-img {
  height: 180px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.coll-img img,
.coll-img .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.coll-card:hover .coll-img img,
.coll-card:hover .coll-img .img-placeholder {
  transform: scale(1.08);
}
.coll-body { padding: 24px; }
.coll-tag { margin-bottom: 10px; }
.coll-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 8px;
  transition: color var(--transition);
}
.coll-card:hover .coll-title { color: var(--accent); }
.coll-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 16px;
}
.coll-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 5px;
}
.coll-count::before {
  content: '';
  display: block;
  width: 16px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* ─── 6. FOOTER ──────────────────────────────────────────────── */
footer {
  background: #080f1c;
  color: #aaaaaa;
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.footer-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 17px;
}
.footer-logo-text { font-size: 18px; font-weight: 800; color: white; letter-spacing: -.02em; }
.footer-logo-sub { font-size: 11px; font-weight: 300; color: #888; letter-spacing: .08em; margin-left: 4px; }
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #888;
  max-width: 260px;
  margin-bottom: 20px;
}
.footer-social { display: flex; gap: 8px; }
.social-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--dark-2);
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  font-size: 13px;
  font-weight: 700;
  transition: all var(--transition);
}
.social-btn:hover { background: var(--accent); border-color: var(--accent); color: white; }

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: white;
  margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 13px;
  color: #888;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #2a2a2a;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-copy { font-size: 12px; color: #555; }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 12px; color: #555; transition: color var(--transition); }
.footer-legal a:hover { color: var(--accent); }

/* ─── Divider ────────────────────────────────────────────────── */
.section-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 48px;
}

/* ─── Scroll-top button ──────────────────────────────────────── */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255,208,0,.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition);
  z-index: 50;
}
#scroll-top.visible { opacity: 1; pointer-events: all; }
#scroll-top:hover { transform: translateY(-3px); }

/* ─── Single Post ────────────────────────────────────────────── */
.single-post { padding: 48px 0 80px; }
.single-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}
.post-header { margin-bottom: 32px; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.post-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.post-excerpt {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.post-meta-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff8c42);
  overflow: hidden;
  flex-shrink: 0;
}
.post-meta-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-meta-info { display: flex; flex-direction: column; gap: 2px; }
.post-meta-author { font-size: 14px; font-weight: 600; }
.post-meta-date { font-size: 13px; color: var(--text-muted); }

.post-featured-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  aspect-ratio: 16/9;
}
.post-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}
.post-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 40px 0 16px;
  letter-spacing: -.02em;
}
.post-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 32px 0 12px;
}
.post-content p { margin-bottom: 20px; }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content ul, .post-content ol {
  margin: 0 0 20px 24px;
}
.post-content li {
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: #111d35;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}
.post-content img {
  border-radius: var(--radius);
  margin: 24px 0;
  width: 100%;
}
.post-content code {
  background: #1a2540;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
  font-family: 'Fira Code', monospace;
}
.post-content pre {
  background: #0d1828;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow-x: auto;
  margin: 24px 0;
}
.post-content pre code { background: none; padding: 0; }

/* ─── Archive Page ───────────────────────────────────────────── */
.archive-page { padding: 48px 0 80px; }
.archive-header { margin-bottom: 48px; }
.archive-header h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
}
.archive-header p { color: var(--text-muted); font-size: 16px; }
.archive-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Post Navigation (prev/next post links) */
.post-nav {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-nav a {
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  max-width: 48%;
}
.post-nav a:hover { text-decoration: underline; }
.post-nav .post-nav-next { text-align: right; margin-left: auto; }

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
  width: 100%;
}
/* paginate_links( type=list )로 출력될 때도 가로 정렬 보장 */
.pagination ul.page-numbers {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pagination ul.page-numbers li { margin: 0; }
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  background: #111d35;
  color: var(--text);
  transition: all var(--transition);
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #111; }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .popular-grid { grid-template-columns: 1fr; }
  .popular-intro { min-height: auto; flex-direction: row; flex-wrap: wrap; padding: 24px; }
  .single-layout { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 56px; }
  .container { padding: 0 16px; }

  .nav-links { display: none; }
  .nav-inner { gap: 16px; justify-content: space-between; }

  .hero { padding: 24px 0 40px; }
  .hero-card { grid-template-columns: 1fr; min-height: auto; }
  .hero-image-wrap { height: 240px; }
  .hero-content { padding: 24px; }
  .hero-title { font-size: 1.6rem; }
  .hero-excerpt { font-size: 14px; }

  .popular { padding: 0 0 40px; }
  .latest-section { padding: 0 0 40px; }
  .latest-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .article-card { grid-template-columns: 1fr; }
  .article-thumb { aspect-ratio: 16/9; }

  .collections { padding: 0 0 40px; }
  .collections-grid { grid-template-columns: 1fr; }

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

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
