/* Article page: frosted glass header + content card
   Tune the alpha values below to change transparency:
   header: .45 (dark) / .85 (light); card: .55 (dark) / .58 (light) */

/* Header */
.post #page-header.post-bg {
  background-color: transparent !important;
}

.post #page-header.post-bg::before {
  animation: none !important;
  opacity: 1 !important;
  background-color: rgba(16, 18, 28, 0.45) !important;
  background-image: none !important;
  -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
  backdrop-filter: blur(24px) saturate(170%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.post #page-header.post-bg .coverdiv {
  opacity: 0.62 !important;
}

.post #page-header.post-bg .coverdiv:after {
  box-shadow: none !important;
  background: rgba(16, 18, 28, 0.25) !important;
  -webkit-backdrop-filter: blur(6px) saturate(150%) !important;
  backdrop-filter: blur(6px) saturate(150%) !important;
}

/* Content card */
.post #post {
  position: relative;
  z-index: 0;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28) !important;
}

.post #post::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(27, 28, 32, 0.55);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="light"] .post #page-header.post-bg::before {
  background-color: rgba(30, 48, 170, 0.85) !important;
  border-bottom-color: rgba(255, 255, 255, 0.25);
}

[data-theme="light"] .post #page-header.post-bg .coverdiv {
  opacity: 0.32 !important;
}

[data-theme="light"] .post #page-header.post-bg .coverdiv:after {
  background: rgba(30, 48, 170, 0.4) !important;
}

[data-theme="light"] .post #post {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1) !important;
}

[data-theme="light"] .post #post::before {
  background: rgba(255, 255, 255, 0.58);
}

/* Sidebar avatar card */
.post .card-widget.card-info {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.post .card-info::before {
  background: linear-gradient(-25deg, rgba(27, 28, 32, 0.66), rgba(27, 28, 32, 0.35)) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

[data-theme="dark"] .post .card-info .description,
[data-theme="dark"] .post .card-info .name,
[data-theme="dark"] .post .card-info .desc {
  color: rgba(255, 255, 255, 0.92) !important;
}

[data-theme="dark"] .post .card-info .avatar img {
  border-color: rgba(255, 255, 255, 0.6) !important;
}

[data-theme="light"] .post .card-widget.card-info {
  border-color: rgba(255, 255, 255, 0.5) !important;
}

[data-theme="light"] .post .card-info::before {
  background: linear-gradient(-25deg, rgba(45, 70, 220, 0.8), rgba(66, 90, 239, 0.55)) !important;
}
