/* ===== VibeWavelength — Clean White Magazine ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,700&family=Inter:wght@300;400;500;600;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --black: #111111;
  --dark: #333333;
  --gray: #666666;
  --light-gray: #999999;
  --border: #e8e8e8;
  --bg: #ffffff;
  --bg-off: #fafafa;
  --accent: #d63031;
  --accent-soft: #fff5f5;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', 'Noto Sans KR', -apple-system, sans-serif;
}

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

html { overflow-x: hidden; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ===== TOP BAR ===== */
.topbar {
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 12px;
  color: var(--light-gray);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar-left { display: flex; gap: 16px; }
.topbar-left a { color: var(--light-gray); transition: color 0.2s; font-weight: 500; letter-spacing: 0.5px; }
.topbar-left a:hover, .topbar-left a.active { color: var(--black); }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-right span { font-weight: 400; }

/* ===== HEADER ===== */
.header {
  padding: 32px 0 28px;
  text-align: center;
  border-bottom: 2px solid var(--black);
}
.header-logo {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--black);
  line-height: 1;
}
.header-tagline {
  font-size: 12px;
  color: var(--light-gray);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 400;
}

/* ===== NAV ===== */
.nav {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  z-index: 100;
}
.nav .container { display: flex; justify-content: center; gap: 32px; }
.nav a {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray);
  transition: color 0.2s;
  padding: 2px 0;
}
.nav a:hover { color: var(--black); }
.nav a.active { color: var(--black); border-bottom: 2px solid var(--accent); }

/* ===== HERO (Homepage) ===== */
.hero-feature {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
}
.hero-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 4px;
}
.hero-img-placeholder {
  width: 100%;
  height: 420px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  text-align: center;
  padding: 20px;
}
.hero-content .category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}
.hero-content h1 {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--black);
  margin-bottom: 16px;
}
.hero-content .excerpt {
  font-size: 16px;
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 20px;
  font-weight: 300;
}
.hero-content .meta {
  font-size: 12px;
  color: var(--light-gray);
  display: flex;
  align-items: center;
  gap: 12px;
}
.meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--light-gray); }

/* ===== ARTICLE GRID ===== */
.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  padding: 28px 0 20px;
  border-bottom: 2px solid var(--black);
  margin-bottom: 28px;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 0 0 48px;
}
.card { transition: transform 0.2s; cursor: pointer; }
.card:hover { transform: translateY(-3px); }
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 16px;
}
.card-img-placeholder {
  width: 100%;
  height: 220px;
  border-radius: 4px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  text-align: center;
  padding: 16px;
}
.card .category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--black);
  margin-bottom: 8px;
}
.card h3 a:hover { color: var(--accent); }
.card .excerpt {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.6;
  margin-bottom: 10px;
  font-weight: 300;
}
.card .meta {
  font-size: 11px;
  color: var(--light-gray);
}

/* ===== CONTENT LAYOUT (Article Page) ===== */
.content-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding: 40px 0 60px;
}

/* Article body */
.article-page .article-cat {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--accent); margin-bottom: 12px;
}
.article-page h1 {
  font-family: var(--serif);
  font-size: 40px; font-weight: 700; line-height: 1.2;
  color: var(--black); margin-bottom: 16px;
}
.article-page .subtitle {
  font-size: 18px; color: var(--gray); line-height: 1.65;
  margin-bottom: 20px; font-weight: 300;
}
.article-page .article-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; color: var(--light-gray);
  padding-bottom: 24px; margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.article-page .share-links { margin-left: auto; display: flex; gap: 8px; }
.share-link {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); display: flex;
  align-items: center; justify-content: center;
  font-size: 13px; transition: all 0.2s; cursor: pointer;
}
.share-link:hover { border-color: var(--accent); color: var(--accent); }

.article-body p {
  font-size: 17px; line-height: 1.9; color: var(--dark);
  margin-bottom: 20px; font-weight: 300;
}
.article-body p.lead {
  font-size: 20px; line-height: 1.75; color: var(--black); font-weight: 400;
}
.article-body h2 {
  font-family: var(--serif);
  font-size: 26px; font-weight: 700; color: var(--black);
  margin: 40px 0 16px; line-height: 1.3;
}

/* Pull quote */
.pull-quote {
  margin: 36px 0; padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: var(--bg-off);
}
.pull-quote blockquote {
  font-family: var(--serif);
  font-size: 20px; font-style: italic; line-height: 1.6;
  color: var(--black); margin-bottom: 10px;
}
.pull-quote cite {
  font-family: var(--sans);
  font-size: 12px; font-style: normal; font-weight: 600;
  color: var(--accent); letter-spacing: 0.5px;
}

/* Article image */
.article-figure {
  margin: 32px 0; border-radius: 4px; overflow: hidden;
}
.article-figure img, .article-figure .fig-placeholder {
  width: 100%; height: 360px; object-fit: cover;
}
.fig-placeholder {
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: var(--serif); font-style: italic;
  text-align: center; padding: 20px;
}
.article-figure figcaption {
  padding: 10px 0; font-size: 12px; color: var(--light-gray);
  font-style: italic; border-bottom: 1px solid var(--border);
}

/* Stats */
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border-radius: 4px; overflow: hidden;
  margin: 32px 0;
}
.stat { background: var(--bg-off); padding: 20px; text-align: center; }
.stat-num {
  font-family: var(--serif); font-size: 28px; font-weight: 900;
  color: var(--accent); line-height: 1; margin-bottom: 4px;
}
.stat-label {
  font-size: 11px; color: var(--light-gray);
  text-transform: uppercase; letter-spacing: 1px;
}

/* Divider */
.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 36px 0; color: var(--border);
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Shorts embed slot */
.shorts-slot {
  margin: 32px 0; padding: 24px; background: var(--bg-off);
  border: 1px solid var(--border); border-radius: 4px; text-align: center;
}
.shorts-slot-title {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 2px; color: var(--light-gray); margin-bottom: 16px;
}
.shorts-frame {
  width: 315px; height: 560px; max-width: 100%;
  margin: 0 auto; border-radius: 8px; overflow: hidden;
  background: var(--black);
}
.shorts-frame iframe { width: 100%; height: 100%; border: none; }
.shorts-placeholder {
  width: 315px; height: 560px; max-width: 100%;
  margin: 0 auto; border-radius: 8px;
  background: linear-gradient(180deg, #222, #444);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); gap: 8px;
}
.shorts-placeholder .play-icon { font-size: 48px; }
.shorts-placeholder .shorts-label { font-size: 12px; letter-spacing: 1px; }

/* Shorts grid on index */
.shorts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .shorts-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .shorts-grid { grid-template-columns: 1fr; }
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-block {
  border: 1px solid var(--border); border-radius: 4px; overflow: hidden;
}
.sidebar-block-title {
  padding: 14px 16px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  border-bottom: 1px solid var(--border); color: var(--black);
}

/* Ad slot */
.ad-slot {
  border: 1px dashed var(--border); border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 16px; text-align: center;
  color: var(--light-gray); min-height: 250px;
  background: var(--bg-off);
}
.ad-slot .ad-label {
  font-size: 9px; text-transform: uppercase;
  letter-spacing: 2px; color: #ccc; margin-bottom: 8px;
}
.ad-slot .ad-size { font-size: 12px; font-weight: 600; color: #bbb; }
.ad-slot .ad-note { font-size: 10px; color: #ccc; margin-top: 6px; }

/* Trending list */
.trending-list { padding: 0; }
.trending-item {
  display: flex; gap: 14px; padding: 14px 16px;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.trending-item:last-child { border-bottom: none; }
.trending-num {
  font-family: var(--serif); font-size: 24px; font-weight: 900;
  color: var(--border); line-height: 1; min-width: 28px;
}
.trending-info h4 { font-size: 13px; font-weight: 600; line-height: 1.4; margin-bottom: 2px; }
.trending-info h4 a:hover { color: var(--accent); }
.trending-info .t-cat {
  font-size: 10px; color: var(--accent); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}

/* Newsletter */
.newsletter {
  padding: 28px 20px; background: var(--black);
  border-radius: 4px; text-align: center; color: white;
}
.newsletter h3 { font-family: var(--serif); font-size: 20px; margin-bottom: 6px; }
.newsletter p { font-size: 12px; opacity: 0.5; margin-bottom: 16px; line-height: 1.6; }
.newsletter input {
  width: 100%; padding: 10px 14px; border: none; border-radius: 3px;
  font-size: 13px; font-family: var(--sans); margin-bottom: 8px;
}
.newsletter button {
  width: 100%; padding: 10px 14px; background: var(--accent); color: white;
  border: none; border-radius: 3px; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; cursor: pointer;
  transition: background 0.2s;
}
.newsletter button:hover { background: #c0392b; }

/* ===== FOOTER ===== */
.footer {
  border-top: 2px solid var(--black);
  padding: 40px 0 24px; margin-top: 48px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px; margin-bottom: 32px;
}
.footer-brand .f-logo {
  font-family: var(--serif); font-size: 24px; font-weight: 900;
  color: var(--black); margin-bottom: 8px;
}
.footer-brand p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.footer h4 {
  font-size: 10px; text-transform: uppercase;
  letter-spacing: 2px; color: var(--light-gray); margin-bottom: 12px;
}
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 6px; }
.footer ul a { font-size: 13px; color: var(--gray); transition: color 0.2s; }
.footer ul a:hover { color: var(--black); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 20px;
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--light-gray);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 2px;
  background: var(--accent); z-index: 9999; width: 0%;
  transition: width 0.1s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-layout { grid-template-columns: 1fr; }
  .hero-feature { grid-template-columns: 1fr; }
  .hero-img, .hero-img-placeholder { height: 300px; }
  .article-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .topbar .container { flex-wrap: wrap; gap: 8px; }
  .topbar-left { flex-wrap: wrap; gap: 10px; }
  .header { padding: 20px 0; }
  .header-logo { font-size: 28px; }
  .header-tagline { font-size: 10px; letter-spacing: 2px; }
  .nav .container { gap: 12px; flex-wrap: wrap; justify-content: flex-start; padding: 0 12px; }
  .nav a { font-size: 10px; letter-spacing: 1px; }
  .hero-feature { gap: 20px; padding: 24px 0; }
  .hero-content h1 { font-size: 24px; }
  .hero-content .excerpt { font-size: 14px; }
  .section-title { font-size: 18px; }
  .article-grid { grid-template-columns: 1fr; gap: 24px; }
  .card-img, .card-img-placeholder { height: 180px; }
  .article-page h1 { font-size: 26px; }
  .article-page .subtitle { font-size: 15px; }
  .article-page .article-meta { flex-wrap: wrap; gap: 8px; }
  .article-page .share-links { margin-left: 0; }
  .article-body p { font-size: 15px; }
  .article-body p.lead { font-size: 17px; }
  .article-body h2 { font-size: 22px; }
  .pull-quote { padding: 20px; margin: 24px 0; }
  .pull-quote blockquote { font-size: 17px; }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 14px 8px; }
  .stat-num { font-size: 22px; }
  .stat-label { font-size: 9px; }
  .shorts-slot { padding: 16px; }
  .shorts-frame { width: 100%; height: 0; padding-bottom: 177%; position: relative; }
  .shorts-frame iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .trending-item { padding: 10px 12px; }
  .trending-num { font-size: 20px; }
  .trending-info h4 { font-size: 12px; }
  .ad-slot { min-height: 100px !important; padding: 16px; }
}
@media (max-width: 480px) {
  .container { padding: 0 12px; }
  .header-logo { font-size: 24px; }
  .nav .container { gap: 8px; }
  .nav a { font-size: 9px; letter-spacing: 0.5px; }
  .hero-content h1 { font-size: 20px; }
  .article-page h1 { font-size: 22px; }
  .stats-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
