:root {
  --bg: #0b1020;
  --text: #eef2ff;
  --muted: #a8b0c7;
  --soft: #cfd6ea;
  --border: rgba(255,255,255,0.12);
  --card: rgba(255,255,255,0.06);
  --card-2: rgba(255,255,255,0.04);
  --accent: #8b5cf6;
  --shadow: 0 20px 60px rgba(0,0,0,0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.layout-page {
  display: flex;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56,189,248,0.10), transparent 28%),
    radial-gradient(circle at top right, rgba(139,92,246,0.14), transparent 30%),
    linear-gradient(180deg, #0a0f1d 0%, #0b1020 48%, #0a0d18 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* Sidebar */
.sidebar {
  width: 240px;
  min-width: 240px;
  min-height: 100vh;
  padding: 20px 14px;
  border-right: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-logo {
  margin-bottom: 24px;
  padding: 8px 10px;
  font-size: 2rem;
  font-weight: 800;
}

.sidebar-logo a {
  color: #fff;
  text-decoration: none;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: 180ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-item.active {
  color: #e8ddff;
  background: rgba(139,92,246,0.18);
  border: 1px solid rgba(139,92,246,0.32);
}

/* Main */
.page-shell {
  flex: 1;
  padding: 28px;
}

/* Post */
.post-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}

.post-hero {
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #151b2f, #0e1323);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}

.post-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
  padding: 28px;
}

.post-meta {
  color: var(--muted);
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.post-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.post-excerpt,
.post-body {
  color: var(--soft);
  line-height: 1.8;
}

@media (max-width: 1100px) {
  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-hero {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 900px) {
  body.layout-page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .page-shell {
    padding: 18px 14px 36px;
  }

  .post-panel {
    padding: 20px 16px;
  }
}
:root {
  --bg: #0b1020;
  --bg-2: #11162a;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --text: #eef2ff;
  --muted: #a8b0c7;
  --soft: #cfd6ea;
  --accent: #8b5cf6;
  --accent-2: #38bdf8;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.layout-page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(139, 92, 246, 0.16), transparent 30%),
    linear-gradient(180deg, #0a0f1d 0%, #0b1020 48%, #0a0d18 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

/* Sidebar */
.sidebar {
  width: 240px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  padding: 20px 14px;
  border-right: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-logo {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 28px;
  padding: 8px 10px;
}

.sidebar-logo a {
  text-decoration: none;
  color: #fff;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  transition: 180ms ease;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.nav-item.active {
  background: rgba(139, 92, 246, 0.18);
  color: #e5dbff;
  border: 1px solid rgba(139, 92, 246, 0.35);
}

.sidebar-footer {
  margin-top: auto;
  padding: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Main */
.page-shell {
  flex: 1;
  padding: 40px 24px 70px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-card {
  margin-bottom: 28px;
  padding: 28px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.04)
  );
  box-shadow: var(--shadow);
}

.hero-kicker {
  margin: 0 0 10px;
  color: #b79cff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-card h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-card p:last-child {
  margin: 0;
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.post-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.07),
    rgba(255,255,255,0.04)
  );
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.2);
}

.post-image-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #11182c;
}

.post-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-content {
  padding: 18px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

.post-card-title {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.post-card-title a {
  text-decoration: none;
}

.post-card-title a:hover {
  color: #fff;
}

.post-card-excerpt {
  margin: 0;
  color: var(--soft);
  line-height: 1.7;
}

.post-card-actions {
  margin-top: 16px;
}

.read-more {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #cdb8ff;
  font-weight: 700;
}

.read-more:hover {
  color: #e5dbff;
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.pagination-link {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  text-decoration: none;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  font-weight: 700;
  transition: 160ms ease;
}

.pagination-link:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.pagination-link.active {
  color: #fff;
  background: rgba(139, 92, 246, 0.2);
  border-color: rgba(139, 92, 246, 0.4);
}

/* Mobile */
@media (max-width: 900px) {
  body.layout-page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .sidebar-inner {
    height: auto;
  }

  .sidebar-footer {
    display: none;
  }

  .page-shell {
    padding: 22px 14px 40px;
  }

  .hero-card {
    padding: 20px 16px;
    border-radius: 22px;
  }
}

@media (max-width: 640px) {
  .sidebar-nav {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .nav-item {
    white-space: nowrap;
  }

  .post-grid {
    grid-template-columns: 1fr;
  }
}
1280px;
  margin: 0 auto;
}

/* Hero */
.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
}

.admin-kicker {
  margin: 0 0 8px;
  color: #b89cff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.admin-subtitle {
  margin: 0;
  max-width: 60ch;
  color: var(--soft);
  line-height: 1.7;
}

/* Panel */
.admin-panel {
  margin-top: 1vw;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
  padding: 20px;
}

.admin-list {
  display: grid;
  gap: 16px;
}

.admin-card-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  background: rgba(255,255,255,0.04);
  padding: 20px;
  transition: 180ms ease;
}

.admin-card-item:hover {
  border-color: rgba(255,255,255,0.16);
  transform: translateY(-2px);
}

.item-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}

.item-main {
  min-width: 0;
  flex: 1;
}

.item-status-row {
  margin-bottom: 12px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.status-badge.is-published {
  color: #d9fbe3;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.status-badge.is-draft {
  color: #efe7ff;
  background: rgba(139, 92, 246, 0.16);
  border: 1px solid rgba(139, 92, 246, 0.28);
}

.item-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 14px;
}

.item-note {
  color: var(--soft);
  line-height: 1.7;
}

.item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6d4aff);
  box-shadow: 0 10px 28px rgba(139, 92, 246, 0.24);
}

.btn-primary:hover {
  transform: translateY(-1px);
}

.btn-secondary {
  color: #efeaff;
  background: rgba(139,92,246,0.14);
  border-color: rgba(139,92,246,0.25);
}

.btn-secondary:hover {
  background: rgba(139,92,246,0.22);
}

.btn-danger {
  color: #ffd9d9;
  background: var(--danger-soft);
  border-color: rgba(239, 68, 68, 0.28);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.22);
}

.btn-ghost {
  color: var(--text);
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.12);
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
}

/* Empty state */
.empty-state {
  padding: 38px 24px;
  text-align: center;
  border-radius: 20px;
  border: 1px dashed rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
}

.empty-state h2 {
  margin: 0 0 10px;
}

.empty-state p {
  margin: 0 0 18px;
  color: var(--soft);
}

/* Responsive */
@media (max-width: 980px) {
  .admin-hero {
    flex-direction: column;
    align-items: start;
  }

  .item-head {
    flex-direction: column;
  }

  .item-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  body.layout-page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .page-shell {
    padding: 18px 14px 36px;
  }

  .admin-hero,
  .admin-panel {
    border-radius: 20px;
  }
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

/* Sidebar */
.sidebar {
  width: 240px;
  min-width: 240px;
  min-height: 100vh;
  padding: 20px 14px;
  border-right: 1px solid var(--border);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.06),
    rgba(255,255,255,0.02)
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sidebar-logo {
  margin-bottom: 24px;
  padding: 8px 10px;
  font-size: 2rem;
  font-weight: 800;
}

.sidebar-logo a {
  color: #fff;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--muted);
  font-weight: 600;
  transition: 180ms ease;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-item.active {
  color: #e8ddff;
  background: rgba(139,92,246,0.18);
  border: 1px solid rgba(139,92,246,0.32);
}

/* Main */
.page-shell {
  flex: 1;
  padding: 28px;
}

/* New post structure */
.post-single {
  max-width: 980px;
  margin: 0 auto;
}

.post-hero {
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #151b2f, #0e1323);
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  aspect-ratio: 16 / 9;
}

.post-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: var(--shadow);
  padding: 32px;
}

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.post-author {
  color: #fff;
  font-weight: 700;
}

.meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
}

.post-date {
  color: var(--muted);
  word-break: break-word;
}

.post-title {
  margin: 0 0 18px;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.post-excerpt {
  margin: 0 0 26px;
  max-width: 70ch;
  color: var(--soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.post-body {
  max-width: 72ch;
  color: #e8ecfb;
  font-size: 1.06rem;
  line-height: 1.9;
}

.post-body > *:first-child {
  margin-top: 0;
}

.post-body > *:last-child {
  margin-bottom: 0;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 2em;
  margin-bottom: 0.7em;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose h2 {
  font-size: 1.75rem;
}

.prose h3 {
  font-size: 1.4rem;
}

.prose p {
  margin: 0 0 1.1em;
}

.prose ul,
.prose ol {
  margin: 1em 0;
  padding-left: 1.4rem;
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a {
  color: #9fdcff;
  text-decoration: none;
}

.prose blockquote {
  margin: 1.6em 0;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.04);
  border-radius: 0 14px 14px 0;
  color: var(--soft);
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.18em 0.42em;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
}

.prose pre {
  overflow-x: auto;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: #0a0f1d;
  border: 1px solid rgba(255,255,255,0.08);
}

.prose pre code {
  padding: 0;
  background: transparent;
}

.post-tags-section {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.section-title {
  margin: 0 0 14px;
  font-size: 1.05rem;
  color: #fff;
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  background: rgba(139,92,246,0.15);
  border: 1px solid rgba(139,92,246,0.28);
  color: #ddceff;
  font-size: 0.92rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  body.layout-page {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    min-width: 100%;
    min-height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .page-shell {
    padding: 18px 14px 36px;
  }

  .post-hero {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }

  .post-content-card {
    padding: 22px 16px;
    border-radius: 20px;
  }

  .post-title {
    max-width: 100%;
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .post-body {
    max-width: 100%;
  }
}