@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --brand-50: #f0f9ff;
  --brand-100: #e0f2fe;
  --brand-500: #0ea5e9;
  --brand-600: #0284c7;
  --brand-700: #0369a1;
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-900: #0f172a;
  --transition-slow: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: #020617; /* High contrast slate */
  letter-spacing: -0.02em;
}

/* Share Buttons */
.share-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-slow);
}

.share-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.1);
}

/* ════════════ SEARCH & FILTERS ════════════ */
#blog-search {
  transition: var(--transition-slow);
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: white;
  color: var(--slate-500);
  border: 2px solid var(--slate-100);
  transition: var(--transition-slow);
}

.filter-btn:hover {
  border-color: var(--brand-600);
  color: var(--brand-600);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: white;
  box-shadow: 0 10px 20px -5px rgba(2, 132, 199, 0.3);
}

/* ════════════ BLOG CARDS ════════════ */
.blog-card {
  background: white;
  border-radius: 24px;
  border: 1px solid var(--slate-100);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-12px);
  border-color: var(--brand-100);
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.08);
}

.card-image-wrapper {
  aspect-ratio: 16 / 10;
}

/* ════════════ ANIMATIONS ════════════ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* ════════════ SIDEBARS & TOC ════════════ */
aside {
  z-index: 20;
}

#post-index a {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-400);
  transition: var(--transition-fast);
  line-height: 1.6;
}

#post-index a:hover {
  color: var(--brand-600);
}

#post-index a[data-level="H3"] {
  margin-left: 1rem;
}

#sidebar-topics a {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

/* Custom Scrollbar for Index */
.custom-scrollbar::-webkit-scrollbar {
  width: 3px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--slate-200);
  border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: var(--brand-500);
}

/* responsive grid */
@media (max-width: 1024px) {
  .lg\:col-span-12 {
    grid-template-columns: 1fr;
  }
}
