/* ════════════════════════════════════════════════════════
   blog.css  —  OneSecret Blog Styles
   Assumes site base styles (body bg #0f172a, base font, nav)
   are already loaded via the shared stylesheet.
   ════════════════════════════════════════════════════════ */

/* ── Shared layout ──────────────────────────────────────── */
.blog-index,
.blog-post {
  color: #e2e8f0;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Tags & meta shared ─────────────────────────────────── */
.post-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.post-date,
.post-read-time {
  font-size: 0.8rem;
  color: #64748b;
}

/* ════════════════════════════════════════════════════════
   BLOG INDEX
   ════════════════════════════════════════════════════════ */

/* Hero */
.blog-hero {
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Grid section */
.blog-grid-section { padding: 3rem 0; }

/* Featured card */
.post-card--featured {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(15, 23, 42, 0.6) 100%);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 12px;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
}

.post-card--featured .post-card__title { font-size: 1.5rem; }
.post-card--featured .post-card__excerpt { font-size: 1rem; max-width: 680px; }

/* Post grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 1.25rem;
}

/* Post card */
.post-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.5rem 1.75rem;
  transition: border-color 0.2s, background 0.2s;
}

.post-card:hover {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.04);
}

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.post-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #f1f5f9;
  line-height: 1.4;
  margin: 0 0 0.6rem;
  letter-spacing: -0.01em;
}

.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a:hover { color: #38bdf8; }

.post-card__excerpt {
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0 0 1.1rem;
}

.post-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap 0.15s;
}

.post-card__cta:hover { gap: 0.5rem; }
.post-card__cta--disabled { color: #334155; cursor: default; }

/* Blog CTA section */
.blog-cta {
  padding: 3rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ════════════════════════════════════════════════════════
   BLOG ARTICLE
   ════════════════════════════════════════════════════════ */

.blog-post .container {
  max-width: 740px;
}

/* Article header */
.post-header {
  padding: 3.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-bottom: 2.5rem;
}

.post-header__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.post-header h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.post-lead {
  font-size: 1.1rem;
  color: #94a3b8;
  line-height: 1.65;
  margin: 0;
  border-left: 3px solid #38bdf8;
  padding-left: 1rem;
}

/* Article body typography */
.post-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #cbd5e1;
  margin: 1.75rem 0 0.5rem;
}

.post-body p {
  font-size: 1rem;
  color: #94a3b8;
  line-height: 1.75;
  margin: 0 0 1.1rem;
}

.post-body a {
  color: #38bdf8;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.4);
  text-underline-offset: 2px;
}

.post-body a:hover {
  text-decoration-color: #38bdf8;
}

.post-body ul,
.post-body ol:not(.steps) {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
  color: #94a3b8;
  line-height: 1.75;
}

.post-body li { margin-bottom: 0.4rem; }

.post-body code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: #e2e8f0;
}

/* Comparison table */
.comparison-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0 2rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison-table td {
  padding: 0.65rem 1rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table tr:last-child td { border-bottom: none; }

.comparison-table td:first-child {
  color: #cbd5e1;
  font-weight: 500;
}

.cell--good { color: #4ade80; }
.cell--warn { color: #fb923c; }

/* Steps list */
ol.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

ol.steps li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 0;
}

ol.steps li strong {
  color: #e2e8f0;
  display: block;
  margin-bottom: 0.2rem;
}

ol.steps li p {
  margin: 0;
  font-size: 0.9rem;
}

.step-number {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.1rem;
}

/* Callout box */
.post-callout {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(15, 23, 42, 0.4));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 2.5rem 0;
}

.callout-icon { font-size: 1.5rem; flex-shrink: 0; }

.post-callout strong {
  display: block;
  color: #f1f5f9;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.post-callout p {
  margin: 0;
  font-size: 0.9rem;
}

/* FAQ */
.faq {
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.faq__item {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.faq__item:last-child { border-bottom: none; }

.faq__item h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e2e8f0;
  margin: 0 0 0.5rem;
}

.faq__item p {
  font-size: 0.9rem;
  margin: 0;
}

/* Article footer */
.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2.5rem 0 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.back-link {
  font-size: 0.9rem;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s;
}

.back-link:hover { color: #94a3b8; }

/* ════════════════════════════════════════════════════════
   SHARED CTA BOX & BUTTON
   ════════════════════════════════════════════════════════ */

.cta-box {
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 2.5rem 2rem;
}

.cta-lock {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.75rem;
}

.cta-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.5rem;
}

.cta-box p {
  color: #94a3b8;
  margin: 0 0 1.5rem;
}

.btn-primary {
  display: inline-block;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.7rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #7dd3fc;
  transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .post-grid { grid-template-columns: 1fr; }
  .post-card--featured { padding: 1.5rem; }
  .post-footer { flex-direction: column; align-items: flex-start; }
  .comparison-table th,
  .comparison-table td { padding: 0.5rem 0.75rem; font-size: 0.82rem; }
}
