@import url('style.css');

/* ================================================================
   cognaura.ai — Blog-specific styles
   ================================================================ */

.blog-hero {
  position: relative;
  text-align: center;
  padding: 80px 24px 60px;
  overflow: hidden;
}
.blog-hero h1 {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1.1;
  margin-bottom: 18px;
}
.blog-hero p {
  max-width: 520px;
  margin: 0 auto;
  font-size: 16px;
  color: var(--text-secondary);
}
.blog-hero .aura { z-index: 0; opacity: 0.8; }
.blog-hero > *:not(.aura) { position: relative; z-index: 2; }

/* ---- Post index grid ---- */
.post-index {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 8px;
}
@media (min-width: 768px) {
  .post-index { grid-template-columns: repeat(2, 1fr); }
}

.post-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: 0.3s ease;
  color: inherit;
  min-height: 220px;
}
.post-card:hover {
  border-color: rgba(124, 58, 237, 0.4);
  transform: translateY(-2px);
  background: var(--surface-elevated);
}
.post-card .post-num {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.post-card h3 {
  font-size: 20px;
  letter-spacing: -0.8px;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--text-primary);
}
.post-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}
.post-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.category-pill {
  position: relative;
  display: inline-block;
  padding: 5px 12px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  background: rgba(10, 10, 15, 0.6);
}
.category-pill span {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.category-pill::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 0.5px;
  border-radius: inherit;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.read-link {
  font-size: 13px;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Article blocks ---- */
.articles { padding-top: 40px; }

.post {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 0;
  scroll-margin-top: 80px;
}
.post + .post { border-top: 0.5px solid var(--border-subtle); }

.post .category-pill { margin-bottom: 22px; }

.post h2 {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1.5px;
  line-height: 1.2;
  margin-bottom: 18px;
}

.post-meta {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 28px;
}
.post-meta span + span::before { content: ' · '; margin: 0 4px; color: var(--text-muted); }

.post-divider {
  height: 0.5px;
  background: var(--border-subtle);
  border: 0;
  margin: 0 0 32px;
}

.post-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-secondary);
}
.post-body p + p { margin-top: 18px; }
.post-body strong { color: var(--text-primary); font-weight: 500; }

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 36px;
}
.tag {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  background: var(--surface);
}

.back-top {
  display: inline-block;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}
.back-top:hover { color: var(--text-primary); }
