/*
Theme Name: NeuraPent Blog
Theme URI: https://neurapent.com
Author: NeuraPent
Description: Standalone blog theme matching the NeuraPent Resource & Research Hub design. Handles blog listing and single post pages only.
Version: 1.0
Text Domain: neurapent-blog
*/

:root {
  --bg-primary: #000000;
  --bg-card: #050508;
  --bg-card-hover: #08080d;
  --border-thin: 1px solid rgba(255, 255, 255, 0.05);
  --border-thick: 1px solid rgba(255, 255, 255, 0.12);
  --accent: #7C6FFF;
  --accent-hover: #9B91FF;
  --text-primary: #ffffff;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius-lg: 12px;
  --radius-md: 8px;
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }

/* ===== NAV (matches main site) ===== */
.nav {
  position: sticky; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: rgba(255, 255, 255, 0.08) solid 1px;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 1.25rem;
  font-family: var(--font-display); letter-spacing: 0.02em;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 6px 12px; border-radius: var(--radius-md);
  font-size: 0.82rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition); white-space: nowrap;
}
.nav-links a:hover { color: #ffffff; }
.nav-links a.active {
  background: rgba(255, 255, 255, 0.04); color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: var(--radius-md);
  font-size: 0.92rem; font-weight: 600;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: #ffffff; color: #000000; border: 1px solid #ffffff; }
.btn-primary:hover { background: #f4f4f5; transform: translateY(-1px); box-shadow: 0 0 24px rgba(255, 255, 255, 0.15); }
.btn-small { padding: 8px 18px; font-size: 0.82rem; }

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(4, 4, 6, 0.7);
  backdrop-filter: blur(20px);
  border: var(--border-thin);
  border-radius: var(--radius-lg);
  padding: 40px;
  transition: var(--transition);
}
.glass-card:hover {
  border-color: rgba(124, 111, 255, 0.25);
  background-color: var(--bg-card-hover);
  transform: translateY(-2px);
}

/* ===== PAGE BACKGROUND (matches the blog section's dark-cyan gradient on main site) ===== */
.content-bg {
  background: linear-gradient(180deg, #000000 0%, #03141f 50%, #000000 100%);
  border-top: 1px solid rgba(6, 182, 212, 0.15);
  border-bottom: 1px solid rgba(6, 182, 212, 0.15);
}

/* ===== HERO ===== */
.hero { padding: 48px 0 60px; text-align: center; }
.section-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 100px;
  background: #08080c; border: var(--border-thin);
  font-size: 0.75rem; font-weight: 500; color: var(--text-secondary);
  margin-bottom: 24px; font-family: var(--font-mono);
  letter-spacing: 0.05em; text-transform: uppercase;
}
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 8px var(--accent); animation: pulse 2s ease-in-out infinite;
  display: inline-block;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.section-title {
  font-family: var(--font-display); font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 800; letter-spacing: -0.03em; margin-bottom: 22px; line-height: 1.1;
  color: #ffffff;
}
.text-gradient {
  background: linear-gradient(135deg, #ffffff 30%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-secondary);
  max-width: 680px; margin: 0 auto; line-height: 1.6;
}

/* ===== BLOG HUB CONTENT ===== */
.blog-hub-content { padding-bottom: 120px; }

/* Featured post */
.featured-article {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px;
  align-items: center; margin-bottom: 64px;
}
.featured-content { padding: 20px 0; }
.featured-tag {
  display: inline-block; padding: 4px 12px; border-radius: 4px;
  font-size: 0.7rem; font-weight: 600; font-family: var(--font-mono);
  background: rgba(124, 111, 255, 0.1); color: var(--accent);
  margin-bottom: 20px;
}
.featured-content h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.featured-content h3 a { color: #ffffff; }
.featured-content h3 a:hover { color: var(--accent); }
.featured-content p { color: var(--text-secondary); font-size: 0.98rem; line-height: 1.65; margin-bottom: 28px; }
.featured-meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); margin-bottom: 24px; }
.featured-visual {
  height: 280px; border-radius: var(--radius-lg); border: var(--border-thin);
  background: linear-gradient(135deg, rgba(124, 111, 255, 0.05) 0%, rgba(0,0,0,0.8) 100%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.featured-visual img { width: 100%; height: 100%; object-fit: cover; }
.visual-fallback { font-size: 3.5rem; color: var(--accent); }

/* Grid of posts */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-bottom: 60px; }
.blog-card { display: flex; flex-direction: column; }
.blog-meta { display: flex; justify-content: space-between; margin-bottom: 18px; align-items: center; }
.blog-tag { font-family: var(--font-mono); font-size: 0.68rem; color: var(--accent); font-weight: 600; }
.blog-date { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }
.blog-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; line-height: 1.4; }
.blog-card h3 a { color: #ffffff; }
.blog-card h3 a:hover { color: var(--accent); }
.blog-card p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; flex-grow: 1; }
.read-more { font-size: 0.85rem; font-weight: 600; color: #ffffff; display: inline-flex; align-items: center; gap: 8px; transition: var(--transition); }
.read-more:hover { color: var(--accent); }

/* Pagination */
.blog-pagination { display: flex; justify-content: center; gap: 12px; margin-bottom: 60px; }
.blog-pagination a, .blog-pagination span {
  padding: 8px 16px; border: var(--border-thin); border-radius: var(--radius-md);
  font-size: 0.85rem; color: var(--text-secondary);
}
.blog-pagination .current { background: rgba(124, 111, 255, 0.1); color: var(--accent); border-color: rgba(124,111,255,0.25); }

/* ===== SINGLE POST ===== */
.single-post-wrap { max-width: 760px; margin: 0 auto; padding: 60px 40px 120px; }
.single-post-header { margin-bottom: 32px; }
.single-post-header h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; margin: 16px 0 14px; line-height: 1.2; font-weight: 800; }
.single-post-image { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 44px; }
.single-post-image img { width: 100%; }
.single-post-content { color: var(--text-secondary); font-size: 1.08rem; line-height: 1.85; }
.single-post-content h2 { font-size: 1.6rem; }
.single-post-content h3 { font-size: 1.3rem; }
.single-post-content h2, .single-post-content h3 { color: #ffffff; font-family: var(--font-display); font-weight: 700; margin: 40px 0 16px; }
.single-post-content p { margin-bottom: 22px; }
.single-post-content ul, .single-post-content ol { margin: 0 0 22px 24px; }
.single-post-content li { margin-bottom: 8px; }
.single-post-content a { color: var(--accent); text-decoration: underline; }
.single-post-content img { border-radius: var(--radius-md); margin: 32px 0; width: 100%; }
.single-post-content blockquote { border-left: 3px solid var(--accent); padding-left: 20px; color: var(--text-secondary); margin: 28px 0; font-style: italic; }
.single-post-content code { font-family: var(--font-mono); background: rgba(255,255,255,0.05); padding: 2px 6px; border-radius: 4px; font-size: 0.9em; }
.single-post-content hr { border: none; border-top: var(--border-thin); margin: 40px 0; }
.back-link { display: inline-flex; margin-top: 48px; padding-top: 32px; border-top: var(--border-thin); width: 100%; }

/* ===== FOOTER (matches main site) ===== */
.footer { background: #000000; padding: 80px 0 40px; border-top: var(--border-thin); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-logo-text {
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.82rem; margin-top: 16px; max-width: 280px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  border: var(--border-thin); background: rgba(255, 255, 255, 0.015);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary); transition: var(--transition);
}
.footer-social a:hover { border-color: rgba(255, 255, 255, 0.2); color: #ffffff; }
.footer-links h4 {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #ffffff; margin-bottom: 18px; font-family: var(--font-mono);
}
.footer-links a { display: block; padding: 6px 0; font-size: 0.82rem; color: var(--text-secondary); transition: var(--transition); }
.footer-links a:hover { color: #ffffff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 32px; border-top: var(--border-thin); }
.footer-bottom p { font-size: 0.78rem; color: var(--text-muted); }
.footer-disclaimer { font-size: 0.7rem; color: var(--text-muted); margin-top: 24px; text-align: center; font-style: italic; opacity: 0.7; }
@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .featured-article { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .nav-links { gap: 14px; }
  .container { padding: 0 20px; }
}
