/* ===========================
   ProAffiliateVault Blog CSS
   Clean, fast, SEO-friendly
   =========================== */

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

:root {
  --primary: #1a56db;
  --primary-dark: #1140a6;
  --accent: #f59e0b;
  --text: #1f2937;
  --muted: #6b7280;
  --light: #f3f4f6;
  --white: #ffffff;
  --border: #e5e7eb;
  --max-width: 1100px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 17px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--primary);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.site-logo {
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--primary);
  text-decoration: none;
}

.site-nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.site-nav a { color: var(--text); font-weight: 500; font-size: 0.95rem; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 600;
}
.btn-nav:hover { background: var(--primary-dark); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1a56db 0%, #1140a6 100%);
  color: var(--white);
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 30px;
  opacity: 0.92;
}

.btn-hero {
  display: inline-block;
  background: var(--accent);
  color: #1f2937;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.15s;
}
.btn-hero:hover { transform: translateY(-2px); text-decoration: none; }

/* Blog Section */
.blog-section { padding: 60px 0; }
.blog-section h2 { font-size: 1.8rem; margin-bottom: 32px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

.post-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  background: var(--white);
  transition: box-shadow 0.2s;
}
.post-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.post-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.post-card h3 { font-size: 1.1rem; margin-bottom: 10px; line-height: 1.4; }
.post-card h3 a { color: var(--text); }
.post-card h3 a:hover { color: var(--primary); text-decoration: none; }
.post-excerpt { color: var(--muted); font-size: 0.9rem; margin-bottom: 16px; }

.post-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.read-more { color: var(--primary); font-weight: 600; }

/* Resource Bar */
.resource-bar {
  background: var(--light);
  padding: 50px 20px;
  border-top: 1px solid var(--border);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.resource-item {
  background: var(--white);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.resource-item h3 { font-size: 1rem; margin-bottom: 8px; }
.resource-item p { color: var(--muted); font-size: 0.9rem; margin-bottom: 14px; }
.resource-item a {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.resource-item a:hover { background: var(--primary-dark); text-decoration: none; }

/* Post Page */
.post-header {
  background: var(--light);
  padding: 50px 0 40px;
  border-bottom: 1px solid var(--border);
}

.post-category {
  font-size: 0.75rem;
  font-weight:  700;
  text-transform: uppercase;
  color: var(--primary);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.post-title { font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; margin-bottom: 16px; }

.post-meta { color: var(--muted); font-size: 0.9rem; }

.post-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 48px;
  padding-top: 48px;
  padding-bottom: 48px;
  align-items: start;
}

@media (max-width: 768px) {
  .post-layout { grid-template-columns: 1fr; }
}

.post-content { max-width: 720px; }
.post-content h2 { font-size: 1.5rem; margin: 32px 0 14px; }
.post-content h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.post-content p { margin-bottom: 18px; }
.post-content ul, .post-content ol { margin: 0 0 18px 24px; }
.post-content li { margin-bottom: 6px; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  background: var(--light);
  margin: 24px 0;
  border-radius: 0 8px 8px 0;
}

/* Sidebar */
.post-sidebar { position: sticky; top: 80px; }

.sidebar-box {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.sidebar-box h3 { font-size: 1rem; margin-bottom: 8px; }
.sidebar-box p { font-size: 0.88rem; color: var(--muted); margin-bottom: 14px; }

.btn-sidebar {
  display: block;
  text-align: center;
  background: var(--primary);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
}
.btn-sidebar:hover { background: var(--primary-dark); text-decoration: none; }

/* Post CTA */
.post-cta {
  background: linear-gradient(135deg, #1a56db, #1140a6);
  color: var(--white);
  padding: 50px 20px;
  text-align: center;
}
.post-cta h3 { font-size: 1.6rem; margin-bottom: 10px; }
.post-cta p { margin-bottom: 24px; opacity: 0.9; }

.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #1f2937;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
}
.btn-cta:hover { text-decoration: none; opacity: 0.9; }

/* Landing Page */
.landing-page { max-width: 860px; margin: 0 auto; padding: 60px 20px; }

/* Pagination */
.pagination { display: flex; gap: 12px; justify-content: center; margin-top: 40px; }
.btn-page {
  background: var(--primary);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--text);
  color: #9ca3af;
  padding: 32px 0;
  text-align: center;
  font-size: 0.88rem;
}
.site-footer a { color: #93c5fd; }
.disclaimer { margin-top: 8px; font-size: 0.8rem; opacity: 0.7; }

/* Responsive */
@media (max-width: 600px) {
  .hero { padding: 50px 20px; }
  .site-nav { gap: 12px; }
}
