/* =============================================================
   Prakash Connects — Blog Shared Stylesheet
   Pure vanilla CSS. Zero JavaScript dependencies.
   Serves blogs/index.html and all individual blog post pages.
   ============================================================= */

/* ── 1. RESET & ROOT VARIABLES ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary:     #1e3a8a;
  --color-secondary:   #3b82f6;
  --color-bg:          #f9fafb;
  --color-bg-card:     #ffffff;
  --color-text:        #1f2937;
  --color-text-muted:  #6b7280;
  --color-border:      #e5e7eb;
  --color-border-dash: #d1d5db;
  --font-sans: 'Plus Jakarta Sans', sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --nav-height: 64px;
  --max-content: 72rem;
  --max-prose:   48rem;
}

html[data-theme="dark"] {
  --color-bg:          #000000;
  --color-bg-card:     #09090b;
  --color-text:        #e5e7eb;
  --color-text-muted:  #a1a1aa;
  --color-border:      #18181b;
  --color-border-dash: #27272a;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── 2. SKIP LINK (ACCESSIBILITY) ───────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  background: var(--color-primary);
  color: #fff;
  padding: 0.5rem 1.25rem;
  border-radius: 99px;
  font-size: 0.875rem;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { left: 1rem; }

/* ── 3. NAVIGATION ──────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  background-color: rgba(255,255,255,0.92);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
html[data-theme="dark"] #main-nav { background-color: rgba(0,0,0,0.92); }
#main-nav.scrolled { border-color: var(--color-border); box-shadow: 0 4px 24px rgba(0,0,0,0.07); }

.nav-inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
html[data-theme="dark"] .nav-logo { color: #60a5fa; }
.nav-logo span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}
html[data-theme="dark"] .nav-links a::after { background: #60a5fa; }
.nav-links a:hover { color: var(--color-primary); }
html[data-theme="dark"] .nav-links a:hover { color: #60a5fa; }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a[aria-current="page"] {
  color: var(--color-primary);
  font-weight: 800;
}
html[data-theme="dark"] .nav-links a[aria-current="page"] { color: #60a5fa; }

.nav-btn-tools {
  background: #000;
  color: #fff !important;
  padding: 0.45rem 1.2rem;
  border-radius: 99px;
  transition: background 0.2s !important;
}
.nav-btn-tools:hover { background: #27272a !important; }
html[data-theme="dark"] .nav-btn-tools { background: #fff !important; color: #000 !important; }
html[data-theme="dark"] .nav-btn-tools:hover { background: #e4e4e7 !important; }
.nav-btn-tools::after { display: none !important; }

.nav-btn-connect {
  background: var(--color-primary);
  color: #fff !important;
  padding: 0.45rem 1.2rem;
  border-radius: 99px;
  transition: background 0.2s !important;
}
.nav-btn-connect:hover { background: #1e40af !important; }
.nav-btn-connect::after { display: none !important; }

/* Dark toggle button */
#dark-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: none;
  background: transparent;
  color: var(--color-text-muted);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
#dark-toggle:hover { background: #eff6ff; }
html[data-theme="dark"] #dark-toggle:hover { background: #18181b; }

/* Mobile menu button */
#mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}

/* Mobile menu */
#mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
}
#mobile-menu.open { display: flex; }
#mobile-menu a {
  display: block;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
}
#mobile-menu a[aria-current="page"] { color: var(--color-primary); font-weight: 800; }
html[data-theme="dark"] #mobile-menu a[aria-current="page"] { color: #60a5fa; }

@media (max-width: 1023px) {
  .nav-links { display: none; }
  #dark-toggle { display: flex; } /* Keep visible on mobile, fix overlap below */
  #mobile-menu-btn { display: block; }
}

#dark-toggle, #mobile-menu-btn {
  -webkit-tap-highlight-color: transparent;
}
#dark-toggle:focus:not(:focus-visible), #mobile-menu-btn:focus:not(:focus-visible) {
  outline: none;
}

/* ── 4. FOCUS STYLES (ACCESSIBILITY) ────────────────────────── */
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--color-secondary);
  outline-offset: 4px;
  border-radius: 0.5rem;
}

/* ── 5. PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  padding-top: calc(var(--nav-height) + 4rem);
  padding-bottom: 4rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
}
.page-header-inner { max-width: var(--max-prose); margin: 0 auto; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.eyebrow-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 50%;
  background: var(--color-secondary);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.eyebrow-text {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
}

.page-header h1 {
  font-size: clamp(2.5rem, 6vw, 3.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  max-width: 38rem;
  font-weight: 300;
}
.page-header p a {
  color: var(--color-primary);
  font-weight: 500;
}
.page-header p a:hover { text-decoration: underline; }
html[data-theme="dark"] .page-header p a { color: #60a5fa; }

/* ── 6. MAIN CONTENT AREA ───────────────────────────────────── */
.content-area {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

/* Section labels */
.section-label {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.section-label.accent { color: var(--color-secondary); }
html[data-theme="dark"] .section-label { color: #52525b; }
html[data-theme="dark"] .section-label.accent { color: #60a5fa; }

/* ── 7. TAG CHIPS ───────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.875rem;
  border-radius: 99px;
  font-size: 0.675rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.tag-primary {
  background: #eff6ff;
  color: var(--color-primary);
  border-color: #bfdbfe;
}
html[data-theme="dark"] .tag-primary {
  background: rgba(59,130,246,0.15);
  color: #93c5fd;
  border-color: rgba(59,130,246,0.3);
}
.tag-neutral {
  background: #f3f4f6;
  color: #4b5563;
  border-color: #e5e7eb;
}
html[data-theme="dark"] .tag-neutral {
  background: #18181b;
  color: #a1a1aa;
  border-color: #27272a;
}

/* ── 8. FEATURED POST CARD ──────────────────────────────────── */
.featured-post-section { margin-bottom: 3rem; }

.featured-card {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1), box-shadow 0.3s ease;
}
.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(30,58,138,0.1);
}
html[data-theme="dark"] .featured-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

@media (min-width: 1024px) {
  .featured-card { grid-template-columns: 1fr 300px; }
}

.featured-card-body {
  padding: 2.5rem;
}

.featured-card-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }

.featured-card h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.featured-card:hover h2 { color: var(--color-primary); }
html[data-theme="dark"] .featured-card:hover h2 { color: #60a5fa; }

.featured-card p {
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  max-width: 55ch;
}

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

.read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.875rem;
  margin-top: 1.5rem;
  transition: gap 0.2s;
}
html[data-theme="dark"] .read-more { color: #60a5fa; }
.featured-card:hover .read-more { gap: 0.75rem; }
.read-more-arrow { font-size: 0.75rem; }

/* Cover art panel */
.cover-art {
  display: none;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 45%, #0ea5e9 80%, #38bdf8 100%);
  position: relative;
  overflow: hidden;
}
@media (min-width: 1024px) { .cover-art { display: flex; align-items: center; justify-content: center; } }
.cover-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cover-art-inner {
  position: relative;
  z-index: 1;
  padding: 2rem;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover-art-icon { margin-bottom: 0.75rem; opacity: 0.9; }
.cover-art-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}
.cover-art-sub { font-size: 0.7rem; color: rgba(255,255,255,0.6); font-weight: 500; }
.cover-art-dots { display: flex; gap: 0.375rem; margin-top: 1rem; }
.cover-art-dots span { width: 0.375rem; height: 0.375rem; border-radius: 50%; }
.cover-art-dots span:nth-child(1), .cover-art-dots span:nth-child(3) { background: rgba(255,255,255,0.4); }
.cover-art-dots span:nth-child(2) { background: rgba(255,255,255,0.7); }

/* ── 9. POST GRID ────────────────────────────────────────────── */
.post-grid-section { margin-bottom: 1.5rem; }

.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }

.post-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s cubic-bezier(.16,1,.3,1), box-shadow 0.3s ease;
}
.post-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(30,58,138,0.1);
}
html[data-theme="dark"] .post-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.5); }

.post-card-tags { display: flex; gap: 0.5rem; margin-bottom: 1rem; flex-wrap: wrap; }

.post-card h3 {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.post-card:hover h3 { color: var(--color-primary); }
html[data-theme="dark"] .post-card:hover h3 { color: #60a5fa; }

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

.post-card .read-more { font-size: 0.75rem; margin-top: 1rem; }

/* Placeholder cards */
.post-card-placeholder {
  background: var(--color-bg-card);
  border: 1px dashed var(--color-border-dash);
  border-radius: 1rem;
  padding: 1.5rem;
  opacity: 0.55;
}
.placeholder-line {
  height: 0.875rem;
  background: var(--color-border);
  border-radius: 99px;
  margin-bottom: 0.625rem;
}
.placeholder-line.short { width: 60%; }
.placeholder-line.medium { width: 83%; }
.placeholder-coming-soon {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
}

/* ── 10. NEWSLETTER / CTA BLOCK ─────────────────────────────── */
.cta-section { margin-top: 4rem; text-align: center; }

.cta-card {
  display: inline-block;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2.5rem 3.5rem;
  max-width: 28rem;
}
@media (max-width: 480px) { .cta-card { padding: 2rem 1.5rem; } }

.cta-emoji { font-size: 2rem; margin-bottom: 1rem; }

.cta-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.cta-card p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0a66c2;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 99px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s;
}
.linkedin-btn:hover { background: #1d4ed8; }

/* ── 11. FOOTER ─────────────────────────────────────────────── */
footer {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-card);
}
footer p {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  line-height: 2;
}
footer .site-link {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
}
footer .site-link:hover { opacity: 0.75; }
html[data-theme="dark"] footer .site-link { color: #60a5fa; text-decoration-color: #60a5fa; }

/* ── 12. SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s cubic-bezier(.16,1,.3,1), transform 0.8s cubic-bezier(.16,1,.3,1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* ── 13. BLOG POST STYLES ──────────────────────────────────── */

/* Progress & Cursor */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, #1e3a8a, #3b82f6, #0ea5e9);
  z-index: 9999; transition: width 0.08s linear; border-radius: 0 2px 2px 0;
}
#cursor-glow {
  position: fixed; top: 0; left: 0; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, rgba(59,130,246,0) 70%);
  border-radius: 50%; pointer-events: none; z-index: 1; transform: translate(-50%,-50%);
  transition: opacity 0.5s ease; opacity: 0;
}
html[data-theme="dark"] #cursor-glow { background: radial-gradient(circle, rgba(59,130,246,0.12) 0%, rgba(59,130,246,0) 70%); }
@media (hover: none) { #cursor-glow { display: none; } }

/* Layout Wrappers */
.post-header-section {
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 3.5rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  background: var(--color-bg);
}
.post-header-inner { max-width: var(--max-prose); margin: 0 auto; position: relative; }

.post-header-breadcrumb {
  margin-bottom: 2rem;
}
.post-header-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.post-header-breadcrumb a:hover {
  color: var(--color-primary);
}
html[data-theme="dark"] .post-header-breadcrumb a:hover {
  color: #60a5fa;
}

.post-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-text);
  margin-bottom: 1.25rem;
}

.post-excerpt {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  line-height: 1.75;
  font-weight: 400;
  margin-bottom: 2rem;
  font-family: var(--font-serif);
}

.post-header-tags { margin-bottom: 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.post-header-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  transition: color 0.2s;
}
.post-header-breadcrumb a:hover { color: var(--color-primary); }
html[data-theme="dark"] .post-header-breadcrumb a:hover { color: #93c5fd; }
.post-header-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}
.post-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.25rem;
  row-gap: 0.75rem;
  font-size: 0.625rem;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.25rem;
}
.post-header-meta a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.post-header-meta a:hover { color: var(--color-primary); }
html[data-theme="dark"] .post-header-meta a:hover { color: #60a5fa; }
.post-header-share {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

/* Article Body */
.post-body-section {
  background: var(--color-bg-card);
}
.article-body {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}
.article-body h2 {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--color-text);
  margin-top: 2.75rem;
  margin-bottom: 0.85rem;
}
.article-body p {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.95;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}
.article-body ul {
  font-family: var(--font-serif);
  color: var(--color-text-muted);
  margin: 0 0 1.75rem 1.5rem;
  list-style: disc;
}
.article-body li {
  margin-bottom: 0.8rem;
  line-height: 1.85;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
}
.article-body strong {
  color: var(--color-text);
  font-weight: 700;
}

.article-callout {
  border-left: 4px solid var(--color-secondary);
  background: rgba(59,130,246,0.06);
  border-radius: 0 1.5rem 1.5rem 0;
  padding: 1.5rem 2rem;
  margin: 2.5rem 0;
}
html[data-theme="dark"] .article-callout { background: rgba(59,130,246,0.1); }
.article-callout p {
  font-family: var(--font-sans) !important;
  font-size: 0.97rem !important;
  color: var(--color-primary) !important;
  font-weight: 500;
  margin-bottom: 0 !important;
  line-height: 1.7 !important;
}
html[data-theme="dark"] .article-callout p { color: #93c5fd !important; }

/* Share buttons */
.share-label {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-right: 0.25rem;
}
.share-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #fff;
  transition: transform 0.2s cubic-bezier(.16,1,.3,1), opacity 0.2s;
  flex-shrink: 0;
  border: none;
  cursor: pointer;
}
.share-btn:hover { transform: translateY(-2px); opacity: 0.85; }
.share-btn.btn-li { background: #0a66c2; }
.share-btn.btn-tw { background: #000; }
html[data-theme="dark"] .share-btn.btn-tw { background: #27272a; }
.share-btn.btn-wa { background: #25d366; }
.share-btn.btn-tg { background: #229ed9; }
.share-btn.btn-em { background: #374151; }
.share-btn.btn-cp { background: #f3f4f6; color: var(--color-text-muted); }
html[data-theme="dark"] .share-btn.btn-cp { background: #27272a; }
.share-btn.btn-cp:hover { background: #eff6ff; }
html[data-theme="dark"] .share-btn.btn-cp:hover { background: #3f3f46; }
.share-btn.btn-cp.copied { background: #dcfce7; color: #16a34a; }
html[data-theme="dark"] .share-btn.btn-cp.copied { background: #14532d; color: #4ade80; }

/* Divider */
.post-divider {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 1.5rem;
  background: var(--color-bg-card);
}
.post-divider-inner {
  border-top: 1px solid var(--color-border);
}

/* Author Section */
.post-author-section {
  background: var(--color-bg-card);
  padding-bottom: 3rem;
}
.post-author-inner {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.author-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: transform 0.4s cubic-bezier(.16,1,.3,1), box-shadow 0.4s ease;
}
@media (min-width: 640px) { .author-card { flex-direction: row; align-items: center; } }
.author-card:hover { transform: translateY(-4px); box-shadow: 0 25px 50px -12px rgba(30,58,138,0.12); }
html[data-theme="dark"] .author-card:hover { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8); }

.author-card-img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.7s, border-color 0.3s;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  background: var(--color-border);
  flex-shrink: 0;
}
html[data-theme="dark"] .author-card-img {
  border-color: #18181b;
}
.author-card:hover .author-card-img { filter: grayscale(0%); }
.author-card-body { flex: 1; min-width: 0; }
.author-card-label {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-secondary);
  margin-bottom: 0.25rem;
}
.author-card-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 0.25rem;
  color: var(--color-text);
}
.author-card-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.author-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.author-card-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.2s;
}
.author-card-links a:hover { opacity: 0.7; }
.author-link-port { color: var(--color-primary); }
html[data-theme="dark"] .author-link-port { color: #60a5fa; }
.author-link-li { color: #0a66c2; }
html[data-theme="dark"] .author-link-li { color: #60a5fa; }

/* Avatar small */
.avatar-sm {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(100%);
  background: var(--color-border);
}

/* Bottom CTA specific to post */
.post-bottom-cta {
  background: var(--color-bg-card);
  padding-bottom: 5rem;
}
.post-bottom-inner {
  max-width: var(--max-prose);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.post-bottom-card {
  background: linear-gradient(to bottom right, var(--color-primary), #2563eb);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  text-align: center;
  color: #fff;
}
.post-bottom-label {
  font-size: 0.625rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.7;
  margin-bottom: 0.75rem;
}
.post-bottom-title {
  font-size: clamp(1.5rem, 3vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 0.75rem;
}
.post-bottom-desc {
  font-size: 0.875rem;
  opacity: 0.7;
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 24rem;
  margin-left: auto;
  margin-right: auto;
}
.post-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}
.btn-solid-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  color: var(--color-primary);
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.btn-solid-white:hover { background: #eff6ff; transform: translateY(-2px); }

.btn-solid-wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #25d366;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
}
.btn-solid-wa:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 99px;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  transition: background 0.2s, border-color 0.2s;
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }
