:root {
  --blog-bg: #f5f7fb;
  --blog-panel: rgba(255, 255, 255, 0.92);
  --blog-panel-strong: #ffffff;
  --blog-text: #172033;
  --blog-muted: #667085;
  --blog-border: rgba(23, 32, 51, 0.1);
  --blog-accent: #2563eb;
  --blog-accent-soft: rgba(37, 99, 235, 0.1);
  --blog-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.dark {
  --blog-bg: #0b1020;
  --blog-panel: rgba(20, 26, 41, 0.92);
  --blog-panel-strong: #151b2c;
  --blog-text: #e8edf7;
  --blog-muted: #9aa6bc;
  --blog-border: rgba(232, 237, 247, 0.1);
  --blog-accent: #6ea8ff;
  --blog-accent-soft: rgba(110, 168, 255, 0.14);
  --blog-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);
}

html,
body {
  background: var(--blog-bg);
  color: var(--blog-text);
}

#global-background {
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.16), transparent 28%),
    radial-gradient(circle at 80% 5%, rgba(16, 185, 129, 0.12), transparent 24%),
    var(--blog-bg) !important;
}

#header {
  background: rgba(18, 22, 31, 0.92) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #f4f7fb !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 var(--blog-border);
}

#header input,
#header [class*="search"] {
  border-color: rgba(255, 255, 255, 0.08) !important;
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #f4f7fb !important;
}

#header .max-container-width,
.max-container-width {
  max-width: 1180px;
}

.max-container-width.m-auto.flex.w-full.flex-1 {
  gap: 28px;
  padding-top: 28px;
  padding-bottom: 36px;
}

#filters {
  border: 1px solid var(--blog-border) !important;
  border-radius: 14px !important;
  background: var(--blog-panel) !important;
  padding: 14px 16px !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

#filters a {
  border-radius: 999px;
  padding: 6px 10px;
}

#filters a.active-menu,
#filters a:hover {
  background: var(--blog-accent-soft);
  color: var(--blog-accent) !important;
}

.blog-stream {
  gap: 20px;
}

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

.blog-home-layout-no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.blog-home-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 20px;
}

.blog-home-sidebar {
  position: sticky;
  top: 88px;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.blog-side-card {
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--blog-panel);
  padding: 18px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.blog-side-card h3 {
  margin: 4px 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.blog-side-card p {
  margin: 0;
  color: var(--blog-muted);
  font-size: 14px;
  line-height: 1.8;
}

.blog-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 800;
}

.blog-side-label {
  margin: 0 0 14px !important;
  color: var(--blog-text) !important;
  font-size: 14px !important;
  font-weight: 800;
}

.blog-profile-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.blog-profile-main img {
  width: 54px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.blog-profile-main h3 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px;
  font-size: 15px;
}

.blog-profile-main p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 13px;
  line-height: 1.65;
}

.blog-verified-dot {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #38bdf8;
}

.blog-verified-dot::after {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 7px;
  height: 4px;
  border-bottom: 2px solid #fff;
  border-left: 2px solid #fff;
  content: "";
  transform: rotate(-45deg);
}

.blog-profile-links {
  display: flex;
  gap: 16px;
  margin-top: 18px;
}

.blog-profile-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  color: var(--blog-muted);
  font-size: 11px;
  font-weight: 800;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.blog-profile-links a:hover {
  color: var(--blog-accent);
  transform: translateY(-1px);
}

.blog-color-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-color-tags a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 5px 9px;
  background: rgba(64, 124, 255, 0.16);
  color: #93b4ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.blog-color-tags em {
  color: currentColor;
  font-style: normal;
  opacity: 0.9;
}

.blog-color-tags li:nth-child(2n) a {
  background: rgba(34, 197, 94, 0.14);
  color: #7ee787;
}

.blog-color-tags li:nth-child(3n) a {
  background: rgba(234, 179, 8, 0.15);
  color: #f7d774;
}

.blog-color-tags li:nth-child(4n) a {
  background: rgba(168, 85, 247, 0.15);
  color: #d8b4fe;
}

.blog-color-tags li:nth-child(5n) a {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
}

.blog-recent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-recent-list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  color: var(--blog-muted);
  font-size: 12px;
}

.blog-recent-list span {
  position: relative;
  overflow: hidden;
  padding-left: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-recent-list span::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--blog-accent);
  content: "";
  transform: translateY(-50%);
  opacity: 0.75;
}

.blog-recent-list time {
  color: var(--blog-muted);
  font-size: 12px;
  opacity: 0.88;
}

.blog-more-link {
  display: inline-flex !important;
  margin-top: 14px;
  padding: 0 !important;
  color: var(--blog-accent) !important;
  font-size: 12px !important;
  font-weight: 800;
}

.blog-side-title a {
  color: var(--blog-accent);
  font-size: 12px;
  font-weight: 700;
}

.blog-side-list {
  gap: 10px;
}

.blog-side-list a {
  display: block;
  border-radius: 10px;
  padding: 10px 0;
  color: var(--blog-muted);
  font-size: 14px;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.blog-side-list a + a {
  border-top: 1px solid var(--blog-border);
}

.blog-side-list a:hover {
  color: var(--blog-accent);
}

.blog-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--blog-border);
  border-radius: 14px;
  background: var(--blog-panel);
  padding: 22px 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.blog-section-heading h2 {
  margin: 4px 0 0;
  font-size: 24px;
  font-weight: 800;
}

.blog-section-heading p {
  margin: 0;
  color: var(--blog-muted);
}

.blog-kicker {
  color: var(--blog-accent) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#post-list {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 20px !important;
}

#post-list > div {
  min-height: 148px;
  border: 1px solid var(--blog-border) !important;
  border-radius: 16px !important;
  background: var(--blog-panel-strong) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.055);
  overflow: hidden;
}

#post-list > div > div:first-child {
  padding: 0 !important;
}

#post-list > div > div:first-child > a {
  position: relative;
  display: grid !important;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 18px !important;
  align-items: stretch;
  min-height: 112px;
  padding: 16px 18px 12px 16px;
  padding-bottom: 12px !important;
}

#post-list > div > div:first-child > a::before {
  display: none;
  width: 100%;
  min-height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(circle at 80% 15%, rgba(96, 165, 250, 0.42), transparent 18%),
    linear-gradient(135deg, #08111f, #12335a 48%, #041018);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  content: "";
}

#post-list > div:nth-child(2n) > div:first-child > a::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 30%),
    radial-gradient(circle at 78% 20%, rgba(45, 212, 191, 0.34), transparent 18%),
    linear-gradient(135deg, #07131b, #0f3d3e 52%, #071018);
}

#post-list > div:nth-child(3n) > div:first-child > a::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), transparent 30%),
    radial-gradient(circle at 75% 18%, rgba(250, 204, 21, 0.28), transparent 18%),
    linear-gradient(135deg, #10131d, #352d16 50%, #090d16);
}

#post-list > div:nth-child(4n) > div:first-child > a::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), transparent 30%),
    radial-gradient(circle at 78% 18%, rgba(147, 197, 253, 0.28), transparent 18%),
    linear-gradient(135deg, #07111f, #152f58 52%, #06101d);
}

#post-list > div > div:first-child > a::after {
  display: none;
  position: absolute;
  left: 34px;
  top: 34px;
  width: 98px;
  height: 48px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(148, 163, 184, 0.26) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(rgba(148, 163, 184, 0.18) 1px, transparent 1px) 0 0 / 18px 18px,
    rgba(2, 6, 23, 0.36);
  content: "";
  opacity: 0.9;
}

#post-list > div:nth-child(3n) > div:first-child > a::after {
  background:
    linear-gradient(90deg, transparent 0 10px, rgba(56, 189, 248, 0.45) 10px 12px, transparent 12px 24px),
    rgba(2, 6, 23, 0.36);
}

#post-list > div > div:first-child > a > div {
  min-height: auto !important;
}

#post-list .blog-generated-cover {
  position: relative;
  overflow: hidden;
  align-self: center;
  width: 172px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  background: rgba(2, 6, 23, 0.6);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    0 10px 30px rgba(0, 0, 0, 0.18);
}

#post-list .blog-generated-cover img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  transition: transform 0.32s ease;
}

#post-list > div:hover .blog-generated-cover img {
  transform: scale(1.045);
}

#post-list > div > div:first-child > a > div > .flex.space-x-2 > .relative {
  display: none;
}

#post-list > div > div:first-child > div.border-t {
  margin: 0 18px 0 206px;
  padding-bottom: 14px;
}

#post-list > div:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.35) !important;
  box-shadow: var(--blog-shadow);
}

#post-list h1 {
  margin-bottom: 8px;
  line-height: 1.35;
}

#post-list h1 span.align-middle {
  font-size: 22px !important;
  font-weight: 800;
}

#post-list .line-clamp-3,
#post-list .line-clamp-2 {
  color: var(--blog-muted);
  line-height: 1.7;
}

#post-list div.border-t {
  border-color: var(--blog-border) !important;
}

#post-list div.border-t::before {
  color: #58d68d;
  content: "";
}

#post-list div.border-t a:first-of-type {
  color: #70e29b !important;
  opacity: 0.92 !important;
}

#post-list time,
#post-list div.border-t span {
  color: var(--blog-muted);
}

#post-list a:hover {
  color: var(--blog-accent) !important;
}

#post-list img {
  border-radius: 10px;
}

.relative.flex.h-full.w-full.flex-col.items-center.justify-center {
  min-height: 300px;
  border-bottom: 1px solid var(--blog-border);
}

.relative.flex.h-full.w-full.flex-col.items-center.justify-center > .pointer-events-none {
  opacity: 0.95;
}

.relative.flex.h-full.w-full.flex-col.items-center.justify-center img[alt="Author Avatar"] {
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.22);
}

.relative.flex.h-full.w-full.flex-col.items-center.justify-center h3 {
  font-size: 32px !important;
  letter-spacing: 0;
}

.relative.flex.h-full.w-full.flex-col.items-center.justify-center p {
  color: currentColor;
  opacity: 0.78;
}

footer {
  border-top: 1px solid var(--blog-border);
  background: var(--blog-panel) !important;
}

@media (max-width: 768px) {
  .blog-home-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .blog-home-sidebar {
    position: static;
  }

  .blog-section-heading {
    align-items: start;
    flex-direction: column;
    padding: 16px;
  }

  .blog-section-heading h2 {
    font-size: 22px;
  }
}
