/* blog.css - Notion Design System for competitive-eating */

/* =====================================================
   Notion Design System — Blog Styles (competitive-eating)
   ===================================================== */

/* ── Font Import ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

/* ── CSS Variables (inherited from ../styles.css) ── */
:root {
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Noto Sans JP', sans-serif;
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-secondary: #4a5568;
  --color-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-border-subtle: #f3f4f6;
  --color-accent: #d32f2f;
  --color-accent-light: #ff5722;
  --radius-sm: 6px;
  --radius-md: 8px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 24px rgba(0,0,0,0.08);
  --transition: all 0.2s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--color-text); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-accent); }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout: 2‑column ── */
.blog-container,
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  gap: 40px;
}
.main-content { flex: 1; min-width: 0; }
.blog-sidebar,
aside.sidebar {
  width: 300px;
  flex-shrink: 0;
}

/* ── Archive Header ── */
.archive-header {
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.archive-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}
.archive-description {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

/* ── Blog Cards ── */
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-subtle);
}
.blog-thumbnail,
.blog-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.blog-content {
  padding: 20px 24px 24px;
}
.blog-content h2,
.blog-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
}
.blog-content h2 a:hover,
.blog-card-title a:hover {
  color: var(--color-accent);
}
time,
.blog-card-date {
  display: block;
  font-size: 0.8rem;
  color: var(--color-muted);
  margin-bottom: 10px;
}
.article-summary,
.blog-card-excerpt {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}
.read-more,
.read-more-btn {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-accent);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.read-more:hover,
.read-more-btn:hover {
  border-bottom-color: var(--color-accent);
}

/* ── Single Article ── */
article .blog-hero-image {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 32px;
}
.article-content {
  max-width: 720px;
}
.article-content h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.article-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 36px 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.article-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 28px 0 10px;
}
.article-content p {
  margin-bottom: 16px;
  color: var(--color-text-secondary);
}
.article-content ul, .article-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
  color: var(--color-text-secondary);
}
.article-content li { margin-bottom: 6px; }
.article-content a { color: var(--color-accent); text-decoration: underline; text-underline-offset: 3px; }
.article-content a:hover { color: var(--color-accent-light); }
.article-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: 16px;
  margin: 20px 0;
  color: var(--color-muted);
  font-style: italic;
}

/* ── Sidebar ── */
.sidebar-section,
.sidebar-widget {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-section h3,
.widget-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border-subtle);
}
.sidebar-section ul,
.widget-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-section ul li,
.widget-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--color-border-subtle);
}
.sidebar-section ul li:last-child,
.widget-list li:last-child { border-bottom: none; }
.sidebar-section ul li a,
.widget-list li a {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}
.sidebar-section ul li a:hover,
.widget-list li a:hover { color: var(--color-accent); }

/* ── Amazon Ad Placeholder ── */
.amazon-ad {
  background: var(--color-border-subtle);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

/* ── Sitenavi Ad Containers ── */
.sidebar-ad { padding: 12px; text-align: center; }
.sidebar-ad a { display: inline-block; }

/* ── Mobile Menu ── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}
.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 6px 0;
  transition: var(--transition);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .blog-container,
  .container {
    flex-direction: column;
    padding: 0 16px;
    gap: 24px;
  }
  .blog-sidebar,
  aside.sidebar {
    width: 100%;
  }
  .archive-title { font-size: 1.4rem; }
  .blog-content h2,
  .blog-card-title { font-size: 1.05rem; }
  .blog-thumbnail,
  .blog-card-image { height: 160px; }
  .mobile-menu-btn { display: block; }
}

/* ── Utilities ── */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }
