@import url('/styles.css');

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG HERO
═══════════════════════════════════════════════════════════════════════════ */
.bl-hero {
  position: relative;
  padding: 112px 0 80px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.bl-hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -1;
  animation: orb-drift 12s ease-in-out infinite alternate;
}
.bl-hero-orb--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,70,229,.22), transparent 70%);
  top: -200px; left: 50%;
  transform: translateX(-50%);
  animation-duration: 14s;
}
.bl-hero-orb--2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(52,211,153,.12), transparent 70%);
  top: 0; right: -100px;
  animation-duration: 10s;
  animation-delay: -4s;
}
.bl-hero-orb--3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(99,102,241,.1), transparent 70%);
  bottom: -80px; left: -60px;
  animation-duration: 16s;
  animation-delay: -8s;
}
@keyframes orb-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, -20px) scale(1.08); }
}
.bl-hero-orb--1 {
  animation-name: orb-drift-center;
}
@keyframes orb-drift-center {
  from { transform: translateX(-50%) scale(1); }
  to   { transform: translateX(calc(-50% + 20px)) scale(1.06); }
}

.bl-hero-inner { position: relative; }

.bl-hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.bl-hero-meta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.bl-hero-meta-pills span {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  background: rgba(255,255,255,.02);
}

.bl-hero-title {
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.08;
  color: #fff;
  letter-spacing: -.03em;
  margin: 0 0 24px;
}
.bl-hero-sub {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
}
.bl-hero-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.3) 30%, rgba(52,211,153,.3) 70%, transparent);
}

/* ═══════════════════════════════════════════════════════════════════════════
   FEATURED POST
═══════════════════════════════════════════════════════════════════════════ */
.bl-featured-wrap { padding: 56px 0 0; }

.bl-featured {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: rgba(10,15,30,.7);
  overflow: hidden;
  position: relative;
  transition: border-color .35s, box-shadow .35s;
  backdrop-filter: blur(4px);
}
@media(min-width: 860px) {
  .bl-featured { grid-template-columns: 1fr 420px; }
}
.bl-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #6366f1, #34d399, #6366f1);
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}
.bl-featured:hover {
  border-color: rgba(99,102,241,.45);
  box-shadow: 0 32px 96px -24px rgba(99,102,241,.25), 0 0 0 1px rgba(99,102,241,.1);
}

/* Featured content */
.bl-featured-content {
  padding: 48px 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media(max-width: 860px) {
  .bl-featured-content { padding: 40px 28px 32px; }
}
.bl-featured-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bl-featured-title {
  font-size: clamp(22px, 3vw, 34px);
  color: #fff;
  line-height: 1.22;
  letter-spacing: -.02em;
  margin: 0;
}
.bl-featured-desc {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  margin: 0;
  flex: 1;
}
.bl-featured-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.bl-featured-author { display: flex; align-items: center; gap: 12px; }
.bl-author-name { display: block; font-size: 13px; font-weight: 600; color: #fff; }
.bl-author-meta { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.bl-read-link {
  font-size: 14px;
  font-weight: 700;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}
.bl-featured:hover .bl-read-link { color: #fff; }

/* Featured visual / chart */
.bl-featured-visual {
  background: linear-gradient(160deg, rgba(15,20,40,.9) 0%, rgba(30,27,75,.4) 100%);
  border-left: 1px solid var(--border);
  padding: 36px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media(max-width: 860px) { .bl-featured-visual { display: none; } }

.bl-chart {
  width: 100%;
  max-width: 320px;
  background: rgba(3,7,18,.6);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bl-chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bl-chart-title { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.bl-chart-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
}
.bl-chart-badge--red { background: rgba(248,113,113,.15); color: #f87171; border: 1px solid rgba(248,113,113,.25); }

.bl-chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  position: relative;
}
.bl-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  justify-content: flex-end;
}
.bl-bar-wrap span { font-size: 9px; color: var(--muted); }
.bl-bar {
  width: 100%;
  height: var(--h);
  background: var(--c);
  border-radius: 4px 4px 0 0;
  transition: height .6s cubic-bezier(.34,1.56,.64,1);
  animation: bar-grow .8s cubic-bezier(.34,1.56,.64,1) both;
}
.bl-bar--over {
  animation: bar-grow-pulse .8s cubic-bezier(.34,1.56,.64,1) both;
  box-shadow: 0 0 12px rgba(248,113,113,.4);
}
@keyframes bar-grow {
  from { height: 0; }
  to   { height: var(--h); }
}
@keyframes bar-grow-pulse {
  from { height: 0; }
  to   { height: var(--h); }
}

.bl-chart-quota-line {
  position: relative;
  border-top: 1px dashed rgba(248,113,113,.4);
  margin-top: -8px;
}
.bl-chart-quota-line span {
  position: absolute;
  right: 0;
  top: -9px;
  font-size: 9px;
  color: #f87171;
  background: rgba(3,7,18,.8);
  padding: 0 4px;
}

.bl-chart-users { display: flex; flex-direction: column; gap: 10px; }
.bl-user-row {
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 8px;
}
.bl-user-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.bl-user-name { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bl-user-tokens { font-size: 10px; color: var(--muted); white-space: nowrap; }
.bl-user-tokens.bl-over { color: #f87171; font-weight: 700; }
.bl-user-bar {
  grid-column: 2 / -1;
  height: 3px;
  background: rgba(255,255,255,.06);
  border-radius: 999px;
  overflow: hidden;
}
.bl-user-bar div { height: 100%; border-radius: 999px; }

/* ═══════════════════════════════════════════════════════════════════════════
   POSTS SECTION
═══════════════════════════════════════════════════════════════════════════ */
.bl-posts-wrap { padding: 64px 0 0; }

.bl-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.bl-section-title {
  font-size: 22px;
  color: #fff;
  letter-spacing: -.02em;
}

/* Filter pills */
.bl-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bl-filter {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
  white-space: nowrap;
}
.bl-filter:hover { color: #fff; border-color: rgba(255,255,255,.18); }
.bl-filter.active {
  background: rgba(99,102,241,.12);
  border-color: rgba(99,102,241,.35);
  color: #a5b4fc;
}

/* Card grid */
.bl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 80px;
}
@media(min-width: 640px)  { .bl-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width: 1024px) { .bl-grid { grid-template-columns: repeat(3, 1fr); } }

.bl-empty {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  padding: 48px 0 80px;
}

/* Cards */
.bl-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(12,18,35,.6);
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, transform .3s;
  backdrop-filter: blur(4px);
}
.bl-card:hover {
  border-color: rgba(99,102,241,.4);
  box-shadow: 0 20px 60px -16px rgba(99,102,241,.2);
  transform: translateY(-5px);
}
.bl-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--glow), transparent 60%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.bl-card:hover .bl-card-glow { opacity: 1; }

.bl-card-top-bar { height: 2px; width: 100%; flex-shrink: 0; }

.bl-card-body {
  padding: 24px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.bl-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.bl-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.45;
  letter-spacing: -.01em;
  margin: 0;
  transition: color .2s;
}
.bl-card:hover .bl-card-title { color: #e0e7ff; }
.bl-card-excerpt {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.bl-card-author { display: flex; align-items: center; gap: 8px; }
.bl-card-cta {
  font-size: 13px;
  font-weight: 700;
  color: #a5b4fc;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color .2s;
}
.bl-card:hover .bl-card-cta { color: #fff; }

/* ═══════════════════════════════════════════════════════════════════════════
   SHARED COMPONENTS
═══════════════════════════════════════════════════════════════════════════ */
.bl-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: .02em;
}
.bl-avatar--sm { width: 24px; height: 24px; font-size: 8px; }

.bl-arrow {
  display: inline-block;
  transition: transform .2s;
}
.bl-featured:hover .bl-arrow,
.bl-card:hover .bl-arrow { transform: translateX(4px); }

.bl-read-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

/* Pills */
.bl-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.bl-pill--gold    { background: rgba(251,191,36,.12);  color: #fcd34d; border: 1px solid rgba(251,191,36,.2); }
.bl-pill--green   { background: rgba(52,211,153,.12);  color: #6ee7b7; border: 1px solid rgba(52,211,153,.2); }
.bl-pill--indigo  { background: rgba(99,102,241,.12);  color: #a5b4fc; border: 1px solid rgba(99,102,241,.2); }
.bl-pill--amber   { background: rgba(251,191,36,.1);   color: #fcd34d; border: 1px solid rgba(251,191,36,.18); }

/* ═══════════════════════════════════════════════════════════════════════════
   CTA STRIP
═══════════════════════════════════════════════════════════════════════════ */
.bl-cta-wrap { padding: 0 0 96px; }
.bl-cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(99,102,241,.25);
  background: linear-gradient(135deg, rgba(79,70,229,.1) 0%, rgba(15,23,42,.8) 60%, rgba(52,211,153,.06) 100%);
  padding: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  backdrop-filter: blur(8px);
}
.bl-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5) 40%, rgba(52,211,153,.4) 60%, transparent);
}
.bl-cta-orb {
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.15), transparent 70%);
  top: -200px; right: -100px;
  pointer-events: none;
}
.bl-cta-content {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 260px;
  position: relative;
}
.bl-cta-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(99,102,241,.25), rgba(99,102,241,.08));
  border: 1px solid rgba(99,102,241,.25);
  display: grid;
  place-items: center;
  color: #a5b4fc;
  flex-shrink: 0;
}
.bl-cta-title { font-size: 20px; color: #fff; margin: 0 0 6px; letter-spacing: -.02em; }
.bl-cta-sub   { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.bl-cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG POST STYLES (used by individual post pages)
═══════════════════════════════════════════════════════════════════════════ */
.post-hero { padding: 80px 0 48px; }
.post-back {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted); font-size: 14px; margin-bottom: 32px; transition: color .2s;
}
.post-back:hover { color: #fff; }
.post-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.post-hero h1 { font-size: clamp(28px,4vw,48px); color: #fff; line-height: 1.15; max-width: 800px; }
.post-hero .lead { margin-top: 20px; color: var(--muted); font-size: 18px; line-height: 1.65; max-width: 720px; }
.post-body { max-width: 720px; padding-bottom: 96px; }
.post-body h2 { font-size: clamp(20px,3vw,28px); color: #fff; margin: 48px 0 16px; }
.post-body h3 { font-size: 18px; color: #fff; margin: 32px 0 12px; }
.post-body p  { color: var(--muted); font-size: 16px; line-height: 1.75; margin: 0 0 20px; }
.post-body ul,.post-body ol { color: var(--muted); font-size: 16px; line-height: 1.75; padding-left: 24px; margin: 0 0 20px; }
.post-body li { margin-bottom: 8px; }
.post-body strong { color: #e2e8f0; }
.post-body code { background: rgba(99,102,241,.15); padding: 2px 8px; border-radius: 6px; font-size: 14px; color: #a5b4fc; font-family: ui-monospace,monospace; }
.post-body pre { background: rgba(0,0,0,.4); border: 1px solid var(--border); border-radius: 14px; padding: 24px; overflow-x: auto; margin: 0 0 24px; }
.post-body pre code { background: none; padding: 0; font-size: 13px; color: #e2e8f0; }
.post-body blockquote { border-left: 3px solid var(--indigo); padding: 16px 24px; margin: 0 0 24px; background: rgba(99,102,241,.06); border-radius: 0 12px 12px 0; }
.post-body blockquote p { color: #c7d2fe; margin: 0; }
.post-body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.post-cta { border: 1px solid rgba(99,102,241,.3); background: rgba(79,70,229,.06); border-radius: 24px; padding: 40px; margin-top: 64px; text-align: center; }
.post-cta h3 { color: #fff; font-size: 22px; margin: 0 0 12px; }
.post-cta p  { color: var(--muted); font-size: 15px; margin: 0 0 24px; }

/* ═══════════════════════════════════════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════════════════════════════════════ */
@media(max-width: 640px) {
  .bl-hero { padding: 80px 0 56px; }
  .bl-hero-title { font-size: 38px; }
  .bl-featured-content { padding: 36px 24px 28px; }
  .bl-cta { padding: 32px 24px; }
  .bl-cta-content { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bl-section-head { flex-direction: column; align-items: flex-start; }
}
