:root {
  --pink: #ff3c82;
  --orange: #ffa032;
  --purple: #7c3aed;
  --dark: #0a0516;
  --panel: rgba(255,255,255,0.05);
  --line: rgba(255,255,255,0.09);
  --text: #fff;
  --muted: #b8a0d4;
  --soft: #7a5c99;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  background:
    radial-gradient(ellipse 80% 48% at 50% -12%, rgba(124,58,237,0.32) 0%, transparent 70%),
    radial-gradient(ellipse 52% 46% at 92% 18%, rgba(255,60,130,0.16) 0%, transparent 62%),
    var(--dark);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; }
.blog-shell { max-width: 1180px; margin: 0 auto; padding: 76px 20px 96px; }
.back-link { display: inline-flex; align-items: center; color: var(--muted); text-decoration: none; font-size: 0.95rem; margin-bottom: 28px; }
.back-link:hover { color: var(--pink); }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--soft); font-size: 0.88rem; margin-bottom: 20px; }
.breadcrumbs a { color: var(--soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pink); }
.breadcrumbs .sep { color: rgba(255,255,255,0.2); }
.breadcrumbs span[aria-current] { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(255,60,130,0.35);
  background: rgba(255,60,130,0.13);
  color: #ff8ab8;
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  margin-bottom: 18px;
}
.grad {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  max-width: 720px;
  margin-bottom: 48px;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 300px;
  gap: 44px;
  align-items: start;
}

.post-list { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.post-item {
  display: flex;
  gap: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.post-item:hover {
  transform: translateY(-3px);
  border-color: rgba(255,60,130,0.36);
  background: rgba(255,255,255,0.07);
}
.post-thumb { flex: none; width: 220px; height: 124px; border-radius: 12px; overflow: hidden; background: rgba(255,255,255,0.04); }
.post-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.post-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 700;
  background: linear-gradient(90deg, rgba(255,60,130,0.82), rgba(255,160,50,0.82));
}
.post-body h2 { font-size: clamp(1.05rem, 2.2vw, 1.3rem); line-height: 1.3; font-weight: 800; }
.post-excerpt { color: var(--muted); line-height: 1.55; font-size: 0.95rem; }
.post-meta { display: flex; gap: 16px; align-items: center; margin-top: auto; padding-top: 4px; font-size: 0.85rem; color: var(--soft); }
.post-meta time { color: var(--soft); }
.post-meta .read-more { color: #ff8ab8; font-weight: 700; }
.post-item:hover .read-more { color: var(--orange); }

.blog-sidebar {
  position: sticky;
  top: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 22px;
}
.blog-sidebar h3 {
  font-size: 0.9rem;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.cat-list { list-style: none; display: flex; flex-direction: column; gap: 3px; }
.cat-list a {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: 0.95rem;
  border: 1px solid transparent;
}
.cat-list a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.cat-list a.active {
  background: rgba(255,60,130,0.12);
  border-color: rgba(255,60,130,0.4);
  color: #ff8ab8;
  font-weight: 700;
}
.cat-list .count { color: var(--soft); font-size: 0.82rem; }
.cat-list a.active .count { color: #ff8ab8; }

.pagination { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; padding-top: 28px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; text-decoration: none; color: var(--muted);
  border: 1px solid var(--line); font-size: 0.95rem; padding: 0 6px;
}
.pagination a:hover { border-color: rgba(255,60,130,0.4); color: #fff; }
.pagination .current { background: linear-gradient(90deg, var(--pink), var(--orange)); color: #fff; border-color: transparent; font-weight: 700; }
.pagination .disabled { opacity: 0.3; }

@media (max-width: 900px) {
  .content-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
}
@media (max-width: 640px) {
  .blog-shell { padding-top: 44px; padding-bottom: 72px; }
  .back-link { margin-bottom: 24px; }
  .post-item { flex-direction: column; }
  .post-thumb { width: 100%; height: auto; aspect-ratio: 16/9; }
}
