/* ============================================= */
/*  Parveez Ahmad Lone — Blog Styles             */
/*  Premium Dark Theme with Glassmorphism         */
/* ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Background */
  --bg-primary: #06060b;
  --bg-secondary: #0c0c14;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --bg-glass-border: rgba(255, 255, 255, 0.08);

  /* Text */
  --text-primary: #f0f0f5;
  --text-secondary: #9a9ab0;
  --text-muted: #5c5c72;
  --text-accent: #a78bfa;

  /* Accents */
  --accent-primary: #8b5cf6;
  --accent-secondary: #06b6d4;
  --accent-warm: #f472b6;
  --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 50%, #10b981 100%);
  --gradient-warm: linear-gradient(135deg, #f472b6 0%, #8b5cf6 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(6, 182, 212, 0.08) 100%);

  /* Spacing */
  --container-width: 1200px;
  --article-width: 760px;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2.5rem;
  --spacing-xl: 4rem;
  --spacing-2xl: 6rem;

  /* Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.15);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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-primary);
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

::selection {
  background: rgba(139, 92, 246, 0.3);
  color: var(--text-primary);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---- Animated Background Mesh ---- */
.bg-mesh {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
}

.bg-mesh::before,
.bg-mesh::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: float 20s ease-in-out infinite;
}

.bg-mesh::before {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.bg-mesh::after {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -10s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* ---- Navigation ---- */
.blog-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 0;
  transition: all var(--transition-smooth);
}

.blog-nav.scrolled {
  background: rgba(6, 6, 11, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-glass-border);
  padding: 0.7rem 0;
}

.nav-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-primary);
  text-decoration: none;
}

.nav-logo .logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gradient-primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.25rem 0;
  transition: color var(--transition-fast);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
  transition: width var(--transition-smooth);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none;
}

.nav-back-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: rgba(139, 92, 246, 0.3);
}

/* ---- Container ---- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.article-container {
  max-width: var(--article-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* ---- Author Hero ---- */
.author-hero {
  padding: calc(var(--spacing-2xl) + 80px) 0 var(--spacing-lg);
  position: relative;
}

.author-hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-xl);
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  position: relative;
  overflow: hidden;
}

.author-hero-inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  transform: translate(30%, -30%);
  pointer-events: none;
}

.author-hero-content {
  flex: 1;
  max-width: 600px;
  position: relative;
  z-index: 2;
}

.author-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  line-height: 1.1;
}

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

.author-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
}

.author-hero-socials {
  display: flex;
  gap: 1rem;
}

.author-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.author-social-link:hover {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
}

.author-hero-image-wrapper {
  position: relative;
  flex-shrink: 0;
  z-index: 2;
}

.author-hero-image-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: var(--gradient-primary);
  filter: blur(40px);
  opacity: 0.3;
  border-radius: 50%;
  z-index: 1;
}

.author-hero-image {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--bg-glass-border);
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-lg);
}

@media (max-width: 900px) {
  .author-hero-inner {
    flex-direction: column-reverse;
    text-align: center;
    padding: var(--spacing-xl);
  }
  
  .author-hero-socials {
    justify-content: center;
  }
  
  .author-hero-image {
    width: 220px;
    height: 220px;
  }
}

/* ---- Category Filters ---- */
.category-filters {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: var(--spacing-lg) 0;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
}

/* ---- Featured Post ---- */
.featured-post {
  margin: var(--spacing-lg) 0 var(--spacing-xl);
}

.featured-card {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  transition: all var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.featured-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
  color: inherit;
}

.featured-card-image {
  aspect-ratio: 16/10;
  background: var(--gradient-subtle);
  overflow: hidden;
  position: relative;
}

.featured-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.featured-card:hover .featured-card-image img {
  transform: scale(1.05);
}

.featured-card-content {
  padding: var(--spacing-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: var(--spacing-md);
}

.featured-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

.featured-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

.featured-card .excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--spacing-md);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.post-meta .divider {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ---- Post Grid ---- */
.posts-section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--bg-glass-border);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-2xl);
}

.post-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  transition: all var(--transition-smooth);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

.post-card:hover {
  border-color: rgba(139, 92, 246, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-6px);
  color: inherit;
}

.post-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.post-card:hover .post-card-image img {
  transform: scale(1.08);
}

.post-card-image .category-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  background: rgba(6, 6, 11, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
}

.post-card-body {
  padding: var(--spacing-md);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.post-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.post-card .excerpt {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
  margin-bottom: var(--spacing-sm);
}

.post-card .post-meta {
  margin-top: auto;
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--bg-glass-border);
}

.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.85rem;
  transition: gap var(--transition-fast);
}

.read-more-link:hover {
  gap: 0.8rem;
}

/* ---- Newsletter Section ---- */
.newsletter-section {
  padding: var(--spacing-2xl) 0;
  text-align: center;
}

.newsletter-card {
  background: var(--gradient-subtle);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
}

.newsletter-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.newsletter-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.newsletter-card p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto var(--spacing-lg);
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 460px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--bg-glass-border);
  background: var(--bg-glass);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: all var(--transition-fast);
}

.newsletter-form input::placeholder {
  color: var(--text-muted);
}

.newsletter-form input:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

.newsletter-form button {
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  border: none;
  background: var(--gradient-primary);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.newsletter-form button:hover {
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

/* ---- Footer ---- */
.blog-footer {
  padding: var(--spacing-xl) 0;
  border-top: 1px solid var(--bg-glass-border);
  margin-top: var(--spacing-xl);
}

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

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

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

.footer-copy {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ================================================= */
/*  ARTICLE PAGE STYLES                              */
/* ================================================= */

/* ---- Article Header ---- */
.article-header {
  padding: calc(var(--spacing-2xl) + 80px) 0 var(--spacing-xl);
  text-align: center;
}

.article-category {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.2);
  color: var(--accent-primary);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--spacing-md);
}

.article-header h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: var(--spacing-md);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  flex-wrap: wrap;
}

.article-meta-bar .meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-meta-bar .meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

/* ---- Article Hero Image ---- */
.article-hero-image {
  max-width: 960px;
  margin: 0 auto var(--spacing-xl);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--bg-glass-border);
}

.article-hero-image img {
  width: 100%;
  aspect-ratio: 21/9;
  object-fit: cover;
}

/* ---- Author Card (Top of Article) ---- */
.author-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: var(--spacing-md) 0;
  margin-bottom: var(--spacing-lg);
  border-bottom: 1px solid var(--bg-glass-border);
}

.author-bar-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bg-glass-border);
}

.author-bar-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
  flex-shrink: 0;
}

.author-bar-info h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.author-bar-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ---- Article Body ---- */
.article-body {
  padding-bottom: var(--spacing-xl);
}

.article-body h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: var(--spacing-xl) 0 var(--spacing-sm);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.article-body h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: var(--spacing-lg) 0 var(--spacing-sm);
  line-height: 1.35;
}

.article-body p {
  margin-bottom: var(--spacing-md);
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 600;
}

.article-body em {
  color: var(--text-accent);
  font-style: italic;
}

.article-body ul, .article-body ol {
  margin: var(--spacing-sm) 0 var(--spacing-md);
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  line-height: 1.75;
}

.article-body li::marker {
  color: var(--accent-primary);
}

/* Blockquotes */
.article-body blockquote {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  border-left: 3px solid;
  border-image: var(--gradient-primary) 1;
  background: var(--bg-glass);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.7;
}

.article-body blockquote p {
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Code blocks */
.article-body code {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.15);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  font-size: 0.88em;
  color: var(--accent-primary);
}

.article-body pre {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
}

.article-body pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Images in article */
.article-body .article-image {
  margin: var(--spacing-lg) 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--bg-glass-border);
}

.article-body .article-image img {
  width: 100%;
}

.article-body .image-caption {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.75rem;
  background: var(--bg-glass);
  font-style: italic;
}

/* Callout / Highlight Box */
.callout {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  border-radius: var(--radius-md);
  border: 1px solid;
}

.callout-info {
  background: rgba(6, 182, 212, 0.06);
  border-color: rgba(6, 182, 212, 0.2);
}

.callout-info .callout-icon { color: var(--accent-secondary); }

.callout-tip {
  background: rgba(16, 185, 129, 0.06);
  border-color: rgba(16, 185, 129, 0.2);
}

.callout-warning {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.2);
}

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.callout p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* ---- Tags ---- */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid var(--bg-glass-border);
  margin-top: var(--spacing-lg);
}

.article-tag {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.article-tag:hover {
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
}

/* ---- Author Bio Card ---- */
.author-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  margin: var(--spacing-xl) 0;
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

.author-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-glass-border);
  flex-shrink: 0;
}

.author-avatar-placeholder {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: white;
  flex-shrink: 0;
}

.author-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.author-info .author-title {
  font-size: 0.85rem;
  color: var(--accent-primary);
  margin-bottom: 0.75rem;
}

.author-info .author-bio {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.author-socials {
  display: flex;
  gap: 0.75rem;
}

.author-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.author-social-link:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
}

/* ---- Related Posts ---- */
.related-posts {
  padding: var(--spacing-xl) 0;
}

.related-posts h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

/* ---- Share Bar ---- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: var(--spacing-md) 0;
}

.share-bar span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--bg-glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.share-btn:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* ---- Scroll Progress Bar ---- */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-primary);
  z-index: 999;
  transition: width 0.1s linear;
}

/* ---- Fade In Animation ---- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .featured-card {
    grid-template-columns: 1fr;
  }

  .featured-card-content {
    padding: var(--spacing-lg);
  }

  .post-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }

  .author-socials {
    justify-content: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .blog-hero h1 {
    font-size: 2rem;
  }

  .article-header h1 {
    font-size: 1.75rem;
  }

  .nav-links {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .container, .article-container {
    padding: 0 var(--spacing-md);
  }

  .article-meta-bar {
    flex-direction: column;
    gap: 0.5rem;
  }

  .article-meta-bar .meta-divider {
    display: none;
  }

  .share-bar {
    justify-content: center;
  }
}

/* ---- Print Styles ---- */
@media print {
  .blog-nav, .bg-mesh, .progress-bar, .newsletter-section, .share-bar { display: none; }
  body { background: white; color: #222; }
  .article-body h2, .article-body h3 { color: #111; }
  .article-body p, .article-body li { color: #333; }
}
