/* Handled Blog — Dark Theme */
:root {
  --bg: #0a0a0a;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --border: #1a1a1a;
  --border-hover: #2a2a2a;
  --text: #e4e4e7;
  --text-muted: #a1a1aa;
  --text-heading: #fafafa;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --purple-deep: #7c3aed;
  --purple-glow: rgba(139, 92, 246, 0.15);
  --purple-glow-strong: rgba(139, 92, 246, 0.25);
  --gradient: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 50%, #a78bfa 100%);
  --radius: 12px;
  --radius-lg: 16px;
  --max-width: 1100px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a {
  color: var(--purple-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--purple);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Exo', sans-serif;
  color: var(--text-heading);
  font-weight: 600;
  line-height: 1.3;
}

/* ─── Navbar ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Exo', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
}

.nav-brand:hover {
  color: var(--text-heading);
}

.nav-logo {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: var(--text-heading);
}

.nav-links a.btn-nav {
  background: var(--gradient);
  color: #fff;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
}

.nav-links a.btn-nav:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ─── Hero ─── */
.hero {
  padding: 100px 0 60px;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
}

.hero h1 .accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

/* ─── Section Headers ─── */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ─── Article Cards ─── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  padding: 0 0 80px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  box-shadow: 0 0 30px var(--purple-glow);
  transform: translateY(-3px);
}

.article-card .card-tag {
  display: inline-block;
  background: var(--purple-glow-strong);
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
  width: fit-content;
}

.article-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card h3 a {
  color: var(--text-heading);
}

.article-card h3 a:hover {
  color: var(--purple-light);
}

.article-card .card-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 20px;
}

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

.article-card .read-more {
  color: var(--purple-light);
  font-weight: 500;
  font-size: 0.85rem;
}

.article-card .read-more:hover {
  color: var(--purple);
}

/* ─── CTA Banner ─── */
.cta-banner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  margin: 20px 0 80px;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
}

.cta-banner h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
}

.cta-banner p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 28px;
  position: relative;
}

.btn-primary {
  display: inline-block;
  background: var(--gradient);
  color: #fff;
  padding: 14px 36px;
  border-radius: 10px;
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  position: relative;
  transition: var(--transition);
}

.btn-primary:hover {
  color: #fff;
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--purple-glow-strong);
}

/* ─── Post Content ─── */
.post-header {
  text-align: center;
  padding: 100px 0 48px;
  max-width: 760px;
  margin: 0 auto;
}

.post-header .card-tag {
  display: inline-block;
  background: var(--purple-glow-strong);
  color: var(--purple-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.post-header h1 {
  font-size: 2.6rem;
  max-width: 700px;
  margin: 0 auto 20px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.post-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.post-meta .separator {
  margin: 0 8px;
  opacity: 0.4;
}

.post-divider {
  max-width: 680px;
  margin: 0 auto 48px;
  border: none;
  border-top: 1px solid var(--border);
}

.post-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.post-content > p:first-child {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.post-content h2 {
  font-size: 1.6rem;
  margin: 56px 0 20px;
  padding-top: 16px;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-size: 1.25rem;
  margin: 40px 0 14px;
  color: var(--text-heading);
}

.post-content p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
}

.post-content ul, .post-content ol {
  margin: 0 0 28px 20px;
  color: var(--text);
}

.post-content li {
  margin-bottom: 12px;
  line-height: 1.7;
  font-size: 1.05rem;
  padding-left: 4px;
}

.post-content blockquote {
  border-left: 3px solid var(--purple);
  padding: 20px 28px;
  margin: 36px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
}

.post-content blockquote p {
  color: var(--text-muted);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--purple-light);
}

.post-content code {
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.88em;
  color: var(--purple-light);
  border: 1px solid var(--border);
}

.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  overflow-x: auto;
  margin: 32px 0;
}

.post-content pre code {
  padding: 0;
  background: none;
  border: none;
}

.post-content img {
  max-width: 100%;
  border-radius: var(--radius);
  margin: 36px 0;
  border: 1px solid var(--border);
}

.post-content a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(167, 139, 250, 0.3);
}

.post-content a:hover {
  color: var(--purple);
  text-decoration-color: var(--purple);
}

.post-content strong {
  color: var(--text-heading);
  font-weight: 600;
}

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ─── Post Footer CTA ─── */
.post-footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

.post-footer .cta-banner {
  margin: 0;
}

/* ─── Page Hero ─── */
.page-hero {
  text-align: center;
  padding: 100px 0 40px;
  position: relative;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: 2.8rem;
  letter-spacing: -0.02em;
  position: relative;
  margin-bottom: 16px;
}

.page-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  position: relative;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ─── Page Content ─── */
.page-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.page-content > p:first-child {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.page-content h2 {
  font-size: 1.5rem;
  margin: 20px 0 18px;
  letter-spacing: -0.01em;
}

.page-content h3 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
}

.page-content p {
  margin-bottom: 24px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.page-content ul, .page-content ol {
  margin: 0 0 28px 20px;
}

.page-content li {
  margin-bottom: 14px;
  line-height: 1.7;
  font-size: 1.05rem;
  padding-left: 4px;
}

.page-content blockquote {
  border-left: 3px solid var(--purple);
  padding: 20px 28px;
  margin: 32px 0;
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  border: 1px solid var(--border);
  border-left: 3px solid var(--purple);
}

.page-content blockquote p {
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0;
}

.page-content strong {
  color: var(--text-heading);
  font-weight: 600;
}

.page-content a {
  color: var(--purple-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(167, 139, 250, 0.3);
}

.page-content a:hover {
  color: var(--purple);
  text-decoration-color: var(--purple);
}

.page-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

@media (max-width: 768px) {
  .page-hero h1 {
    font-size: 2rem;
  }
  .page-subtitle {
    font-size: 1.05rem;
  }
}

/* ─── Footer ─── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

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

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--text-heading);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1.05rem;
  }
  .articles-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .article-card {
    padding: 24px;
  }
  .post-header h1 {
    font-size: 2rem;
  }
  .nav-links {
    gap: 20px;
  }
  .cta-banner {
    padding: 40px 24px;
  }
  .cta-banner h2 {
    font-size: 1.6rem;
  }
  .footer-content {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 60px 0 40px;
  }
  .hero h1 {
    font-size: 1.8rem;
  }
  .nav-links a:not(.btn-nav) {
    display: none;
  }
  .post-header h1 {
    font-size: 1.6rem;
  }
}


/* ─── Featured Post ─── */
.featured-post {
  display: block;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-height: 320px;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.featured-post:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px var(--purple-glow);
  border-color: var(--border-hover);
}

.featured-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.featured-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 24px;
  background: linear-gradient(transparent, rgba(10, 10, 10, 0.95));
}

.featured-overlay h2 {
  font-family: 'Exo', sans-serif;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 6px;
}

.featured-overlay p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 768px) {
  .featured-post {
    max-height: 240px;
  }
  .featured-image {
    height: 240px;
  }
  .featured-overlay h2 {
    font-size: 1.15rem;
  }
  .featured-overlay p {
    font-size: 0.85rem;
  }
}


/* ─── Post Hero Image ─── */
.post-hero-image {
  max-width: 480px;
  margin: 0 auto 32px;
  padding: 0 24px;
}

.post-hero-image img {
  width: 100%;
  max-height: 280px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--border);
}

/* ─── Homepage Hero Layout ─── */
.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-text {
  flex: 1;
  text-align: left;
}

.hero-cta {
  display: inline-block;
  margin-top: 28px;
  background: var(--gradient);
  color: #fff !important;
  padding: 12px 28px;
  border-radius: 8px;
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none !important;
}

.hero-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--purple-glow-strong);
}

.hero-photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.founder-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--purple);
  box-shadow: 0 0 40px var(--purple-glow-strong), 0 0 80px var(--purple-glow);
  display: block;
}

.founder-name {
  font-family: 'Exo', sans-serif;
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
  margin: 0;
  text-align: center;
}

.founder-title {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin: 0;
  text-align: center;
}

@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
    gap: 32px;
  }
  .hero-text {
    text-align: center;
  }
  .founder-avatar {
    width: 120px;
    height: 120px;
  }
}
