/* ============================================
   PeptideReview Ghost Theme — Styles
   Ported from bridge page + blog/article styles
   ============================================ */

:root {
  --bg: #FAFAF7;
  --surface: #FFFFFF;
  --text: #1A1A1A;
  --text-secondary: #5A5A5A;
  --accent: #1B6B4A;
  --accent-light: #E8F5EE;
  --accent-dark: #134D35;
  --border: #E5E5E0;
  --warning: #C4841D;
  --warning-bg: #FFF8EB;
  --gold: #D4A017;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'DM Sans', -apple-system, sans-serif;
  --max-w: 720px;
}

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

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* Top bar */
.topbar {
  background: var(--accent-dark);
  color: rgba(255,255,255,0.9);
  text-align: center;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}
.topbar strong { color: #fff; }

/* Header */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.site-name span { color: var(--accent); }
.header-badge {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: var(--bg);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}

/* Hero */
.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 32px;
}
.hero-label {
  display: inline-block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  background: var(--accent-light);
  padding: 4px 12px;
  border-radius: 4px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}
.hero-meta {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
}
.hero-meta .dot { color: var(--border); }
.hero-meta .updated { color: var(--accent); font-weight: 500; }

/* Content */
.content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 64px;
}
.content p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: #2A2A2A;
}
.content h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.content h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

/* Callout box */
.callout {
  background: var(--warning-bg);
  border-left: 3px solid var(--warning);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5C4A1E;
}

/* Vendor cards */
.vendor-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
  position: relative;
}
.vendor-card:hover { box-shadow: var(--shadow-md); }

.vendor-card.featured {
  border-color: var(--accent);
  border-width: 2px;
}
.vendor-badge {
  position: absolute;
  top: -11px;
  left: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 12px;
  border-radius: 4px;
  font-weight: 600;
}

.vendor-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.vendor-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--text);
}
.vendor-score {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
}
.score-bar {
  width: 60px;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.score-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.vendor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.vendor-stat {
  padding: 10px 0;
}
.vendor-stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.vendor-stat-value {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.vendor-pros {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 12px 0 16px;
}
.vendor-pros .pro { color: var(--accent); }
.vendor-pros .con { color: var(--warning); }

.vendor-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.1s ease;
}
.vendor-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Comparison table */
.comparison-wrap {
  overflow-x: auto;
  margin: 32px 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
.comparison-table th {
  background: var(--bg);
  padding: 12px 16px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table .highlight {
  color: var(--accent);
  font-weight: 600;
}

/* Email capture */
.email-capture {
  background: linear-gradient(135deg, #1B6B4A 0%, #134D35 100%);
  border-radius: 12px;
  padding: 36px 32px;
  margin: 40px 0;
  color: #fff;
}
.email-capture h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.email-capture p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin-bottom: 20px;
  line-height: 1.5;
}
.email-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.email-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 12px 16px;
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--sans);
  outline: none;
  transition: border-color 0.2s;
}
.email-form input::placeholder { color: rgba(255,255,255,0.5); }
.email-form input:focus { border-color: rgba(255,255,255,0.6); }
.email-form button {
  padding: 12px 24px;
  background: #fff;
  color: var(--accent-dark);
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--sans);
  transition: transform 0.1s;
  white-space: nowrap;
}
.email-form button:hover { transform: translateY(-1px); }
.email-note {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  margin-top: 10px;
}

/* Methodology */
.methodology {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 28px;
  margin: 32px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.methodology strong {
  color: var(--text);
  font-weight: 600;
}

/* Disclaimer */
.disclaimer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: #999;
  line-height: 1.7;
}

/* Footer */
.footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 48px;
  font-size: 13px;
  color: var(--text-secondary);
}

/* ============================================
   Blog Listing Styles (index/post list)
   ============================================ */

.post-list {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px 64px;
  list-style: none;
}

.post-list li {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.post-list li:first-child {
  padding-top: 0;
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.post-list a:hover h2 {
  color: var(--accent);
}

.post-list h2 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.post-list .post-excerpt {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 8px;
}

.post-list .post-meta {
  font-size: 13px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-list .post-meta .dot {
  color: var(--border);
}

/* ============================================
   Article / Post Page Styles
   ============================================ */

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

.article-header h1 {
  font-family: var(--serif);
  font-size: clamp(28px, 5vw, 38px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.article-header .article-excerpt {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

.article-meta .dot {
  color: var(--border);
}

.article-meta .updated {
  color: var(--accent);
  font-weight: 500;
}

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

/* Article body typography */
.article-body p {
  margin-bottom: 20px;
  font-size: 16px;
  line-height: 1.75;
  color: #2A2A2A;
}

.article-body h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  margin: 40px 0 16px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text);
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px 24px;
  font-size: 16px;
  line-height: 1.75;
  color: #2A2A2A;
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 8px;
}

.article-body blockquote {
  background: var(--warning-bg);
  border-left: 3px solid var(--warning);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 6px 6px 0;
  font-size: 15px;
  line-height: 1.6;
  color: #5C4A1E;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px 0;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s ease;
}

.article-body a:hover {
  color: var(--accent-dark);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 600px) {
  .hero { padding: 32px 20px 24px; }
  .content { padding: 0 20px 48px; }
  .vendor-card { padding: 20px; }
  .vendor-grid { grid-template-columns: 1fr 1fr; }
  .email-capture { padding: 28px 20px; }
  .post-list { padding: 24px 20px 48px; }
  .article-header { padding: 32px 20px 20px; }
  .article-body { padding: 0 20px 48px; }
}
