/* ===== BLOG PAGE CSS ===== */

.blog-header {
  padding: calc(var(--nav-h) + 5rem) 0 5rem;
  background: var(--bg);
  position: relative;
}

.blog-header h1 { margin: 0.5rem 0 1.25rem; }

/* FEATURED POST */
.featured-post-section {
  padding: 0 0 6rem;
  background: var(--bg);
}

.featured-post {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  position: relative;
}

.featured-post::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,180,0.03), transparent 60%);
  pointer-events: none;
}

.fp-label {
  padding: 1.5rem 2.5rem 0;
}

.fp-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  padding: 2rem 2.5rem 2.5rem;
  align-items: center;
}

.fp-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(0,255,180,0.25);
  border-radius: 3px;
  color: var(--accent);
  background: rgba(0,255,180,0.06);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-date, .blog-read {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
}

.fp-info h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.fp-info p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.fp-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.fp-tags span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.25rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.fp-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Blog card art */
.blog-card-art {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  width: 100%;
  max-width: 320px;
}

.bca-isolate { }

.bca-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.bca-box {
  flex: 1;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.bca-box span {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  display: block;
  margin-bottom: 0.5rem;
}

.bca-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 4px;
}

.b-green { background: rgba(255,100,100,0.4); width: 70%; }
.b-accent { background: var(--accent); width: 90%; }
.b-accent:nth-child(3) { width: 65%; }
.b-accent:nth-child(4) { width: 80%; }

.bca-arrow {
  font-size: 1.2rem;
  color: var(--accent);
  flex-shrink: 0;
}

.bca-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.1em;
}

/* POSTS */
.posts-section {
  padding: 6rem 0;
  background: var(--bg2);
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  transition-delay: calc(var(--i, 0) * 0.08s);
}

.post-card:hover { transform: translateY(-6px); border-color: rgba(0,255,180,0.2); }

.post-art {
  height: 120px;
  position: relative;
  overflow: hidden;
}

.pa1 { background: linear-gradient(135deg, #001a10, #003020); }
.pa2 { background: linear-gradient(135deg, #1a0800, #301500); }
.pa3 { background: linear-gradient(135deg, #1a0010, #300020); }
.pa4 { background: linear-gradient(135deg, #1a1200, #302000); }
.pa5 { background: linear-gradient(135deg, #00101a, #002030); }
.pa6 { background: linear-gradient(135deg, #0a001a, #180030); }

.post-art::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon points='0,120 100,20 200,80 200,120' fill='rgba(255,255,255,0.03)'/%3E%3C/svg%3E");
  background-size: cover;
}

.post-body {
  padding: 1.75rem;
}

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

.post-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.post-link {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  transition: opacity 0.2s;
}

.post-link:hover { opacity: 0.7; }

/* NEWSLETTER */
.newsletter-section {
  padding: 6rem 0;
  background: var(--bg);
}

.newsletter-card {
  background: var(--surface);
  border: 1px solid rgba(0,255,180,0.15);
  border-radius: 24px;
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,255,180,0.04), transparent 60%);
}

.nl-text { position: relative; z-index: 1; }
.nl-text h2 { margin: 0.5rem 0 0.75rem; font-size: 2.5rem; }
.nl-text p { color: var(--text-muted); }

.nl-form { position: relative; z-index: 1; }

.nf-group {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.nl-input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s;
}

.nl-input:focus { border-color: var(--accent); }
.nl-input::placeholder { color: var(--text-dim); }

.nl-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

@media (max-width: 1024px) {
  .posts-grid { grid-template-columns: repeat(2, 1fr); }
  .fp-content { grid-template-columns: 1fr; }
  .fp-visual { display: none; }
  .newsletter-card { grid-template-columns: 1fr; }
  .nf-group { flex-direction: column; }
}

@media (max-width: 600px) {
  .posts-grid { grid-template-columns: 1fr; }
}
