/* BidYard Deals — Blog Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #f4f4f4;
  --surface: #ffffff;
  --surface2: #f9f9f9;
  --border: #e8e8e8;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #c0392b;
  --green: #27ae60;
  --radius: 8px;
  --max-w: 900px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex; align-items: center; gap: 24px;
  height: 56px;
}

.site-header .nav-brand {
  font-weight: 800; font-size: 22px;
  color: var(--accent); text-decoration: none;
  letter-spacing: -.5px; flex-shrink: 0;
}

.site-header nav { display: flex; gap: 24px; align-items: center; flex: 1; }
.site-header nav a {
  color: #444; text-decoration: none;
  font-size: 14px; font-weight: 500; transition: color .15s;
}
.site-header nav a:hover { color: var(--accent); }

.site-header .nav-tg {
  margin-left: auto;
  background: var(--accent) !important; color: #fff !important;
  padding: 8px 16px; border-radius: 4px;
  font-weight: 700; font-size: 13px;
}
.site-header .nav-tg:hover { background: #a93226 !important; }

.site-header .nav-fb {
  background: #1877F2 !important; color: #fff !important;
  padding: 8px 16px; border-radius: 4px;
  font-weight: 700; font-size: 13px;
}
.site-header .nav-fb:hover { background: #145dbf !important; }

@media (max-width: 640px) {
  .site-header { padding: 0 16px; gap: 16px; }
  .site-header .nav-tg, .site-header .nav-fb { display: none; }
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 56px 32px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 1.5rem;
}

.badge {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--accent);
  border-radius: 9999px;
  padding: .3rem 1rem;
  font-size: .82rem;
  font-weight: 600;
}

/* ── Posts grid ──────────────────────────────────────────────────────────── */
.index-main { max-width: var(--max-w); margin: 0 auto; padding: 0 32px 80px; }

.section-title {
  font-size: 13px; font-weight: 700;
  color: var(--muted); text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.posts-grid { margin-top: 8px; }

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
  transition: border-color .15s, box-shadow .15s;
}

.post-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.post-meta {
  font-size: 12px; color: var(--muted);
  font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 8px;
}

.post-card h2 {
  font-size: 1.15rem; font-weight: 700; margin-bottom: 10px;
}

.post-card h2 a { color: var(--text); text-decoration: none; }
.post-card h2 a:hover { color: var(--accent); }

.read-more {
  color: var(--accent); text-decoration: none;
  font-size: .85rem; font-weight: 600;
}
.read-more:hover { text-decoration: underline; }

.post-excerpt { font-size: .85rem; color: var(--muted); margin: 6px 0 10px; }

.empty-state {
  color: var(--muted); font-style: italic;
  padding: 2rem 0; text-align: center;
}

/* ── Post content ────────────────────────────────────────────────────────── */
.post-content {
  max-width: 760px;
  margin: 40px auto;
  padding: 0 32px 80px;
}

.post-content h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800; margin-bottom: 24px;
  letter-spacing: -.02em; color: var(--text);
}

.post-content h2 {
  font-size: 1.25rem; font-weight: 700;
  margin: 36px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.post-content h3 {
  font-size: 1.05rem; font-weight: 600;
  margin: 24px 0 8px; color: var(--text);
}

.post-content p { margin-bottom: 16px; color: #444; }

.post-content a {
  color: var(--accent); text-decoration: underline;
  text-decoration-color: rgba(192,57,43,.35);
}
.post-content a:hover { text-decoration-color: var(--accent); }

.post-content img {
  max-width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin: 20px 0;
}

.post-content ul, .post-content ol {
  padding-left: 24px; margin-bottom: 16px;
}
.post-content li { color: #444; margin-bottom: 4px; }

/* Deal price callout */
.deal-price {
  display: inline-block;
  background: var(--green);
  color: #fff;
  border-radius: 4px;
  padding: 2px 8px;
  font-weight: 700; font-size: .88rem;
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { max-width: var(--max-w); margin: 0 auto; padding: 12px 32px 0; }
.breadcrumb ol { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.breadcrumb li + li::before { content: '\203A'; margin-right: 6px; color: #bbb; }
.breadcrumb a { color: #666; text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* ── Post header ─────────────────────────────────────────────────────────── */
.post-header { margin-bottom: 24px; }
.post-date { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }

/* ── Deal item ───────────────────────────────────────────────────────────── */
.deal-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.cta-btn {
  display: inline-block;
  background: var(--accent); color: #fff;
  border-radius: 4px;
  padding: 8px 18px;
  font-size: .88rem; font-weight: 700;
  text-decoration: none; margin-top: 8px;
  transition: background .15s;
}
.cta-btn:hover { background: #a93226; color: #fff; }

/* ── Related posts aside ─────────────────────────────────────────────────── */
.related-posts {
  max-width: 760px; margin: 0 auto 40px;
  padding: 20px 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.related-posts h2 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.related-posts a { color: var(--accent); text-decoration: none; font-size: .9rem; }
.related-posts a:hover { text-decoration: underline; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 28px 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  background: #fff;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .hero { padding: 40px 20px 28px; }
  .index-main, .post-content { padding-left: 20px; padding-right: 20px; }
  .post-card { padding: 18px 20px; }
  .breadcrumb { padding: 10px 20px 0; }
}
