:root {
  --card-radius: 12px;
}

.Header {
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.DiscussionListItem {
  border-radius: var(--card-radius);
  padding: 14px;
  background: var(--body-bg);
}

.DiscussionListItem--unread {
  border-left: 3px solid rgba(59,130,246,0.45);
}

.DiscussionListItem--unread .DiscussionListItem-title {
  font-weight: 600;
}

.TagLabel {
  border-radius: 6px;
  padding: 3px 8px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.TagLabel .icon {
  font-size: 12px;
  opacity: .85;
}

.sideNav .NavItem a {
  border-radius: 10px;
  padding: 7px 12px;
  transition: all .15s ease;
}

.sideNav .NavItem a:hover {
  background: rgba(0,0,0,0.04);
}

.dark .sideNav .NavItem a:hover {
  background: rgba(255,255,255,0.05);
}

.sideNav .NavItem.active a {
  background: rgba(59,130,246,0.12);
  font-weight: 600;
}

.sideNav .TagLabel {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width:992px) {
  .sideNav {
    position: sticky;
    top: 80px;
  }
}

.simple-footer {
  text-align: center;
  font-size: 13px;
  opacity: .65;
  padding: 16px 0 20px;
}

.simple-footer a {
  text-decoration: none;
}

.simple-footer a:hover {
  text-decoration: underline;
}

.Button,.TagLabel,.NavItem a {
  transition: all .15s ease;
}

.Post-body {
  max-width: 720px;
  margin: auto;
}

.TagLabel {
  margin-right: 4px;
}

.footer-links {
  margin-bottom: 8px;
}

.footer-links a {
  margin: 0 10px;
  text-decoration: none;
}

.footer-links i {
  margin-right: 4px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.sideNav .NavItem+.NavItem {
  margin-top: 4px;
}

.sideNav::after {
  content: "";
  display: block;
  margin: 14px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.dark .sideNav::after {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.item-links {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.dark .item-links {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.App-header {
  transition: all .25s ease;
}

.App-header.is-fixed {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.dark .App-header.is-fixed {
  background: rgba(25,25,25,0.92);
}

.App-header.is-fixed .Header-primary {
  padding-top: 6px;
  padding-bottom: 6px;
}

.App-header.is-fixed .Header-title {
  transform: scale(.95);
}

.DiscussionListItem:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.DiscussionListItem--unread:hover {
  background: rgba(59,130,246,0.03);
}

.DiscussionListItem-title:hover {
  text-decoration: underline;
}

.DiscussionListItem {
  margin-bottom: 14px;
}

.DiscussionListItem-title {
  margin-bottom: 4px;
}

.Post {
  margin-bottom: 20px;
}

.Post-body {
  line-height: 1.6;
}

.Post-body p {
  margin-bottom: 14px;
}

.forum-footer {
  text-align: center;
  padding: 22px 0;
  margin-top: 30px;
  font-size: 14px;
  opacity: .8;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.dark .forum-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-social {
  margin-bottom: 8px;
}

.footer-social a {
  margin: 0 10px;
  text-decoration: none;
}

.footer-social a:hover {
  text-decoration: underline;
}

.footer-social i {
  margin-right: 4px;
}

.footer-copy {
  font-size: 13px;
  opacity: .7;
}

.Post-body blockquote {
  padding: 12px 18px;
  border-radius: 6px;
  margin: 15px 0;
  border-left: 4px solid;
  background: #f8f9fa;
  border-left-color: #6c757d;
}

blockquote.warning,.Post-body blockquote:first-child:has(.warning-text) {
  background: #fff9e6;
  border-left-color: #f5a623;
  color: #856404;
}

blockquote.success {
  background: #e6ffed;
  border-left-color: #2ecc71;
  color: #155724;
}

blockquote.error {
  background: #ffe6e6;
  border-left-color: #e74c3c;
  color: #721c24;
}

blockquote.info {
  background: #e6f3ff;
  border-left-color: #3498db;
  color: #004085;
}

@media (prefers-color-scheme:dark) {
  .Post-body blockquote {
    background: #2d3748;
    color: #e2e8f0;
  }
  blockquote.warning {
    background: #3a2a00;
    color: #ffd580;
  }
  blockquote.success {
    background: #0a2a15;
    color: #80ffab;
  }
  blockquote.error {
    background: #2a0a0a;
    color: #ffb3b3;
  }
  blockquote.info {
    background: #0a1a2a;
    color: #b3d9ff;
  }
}

.CategoryListItem {
  border-radius: 10px;
  transition: all .25s ease;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.CategoryListItem:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}

.CategoryList {
  gap: 12px;
}

.CategoryListItem:hover {
  border-color: rgba(255,255,255,0.15);
}

.CategoryListItem {
  border: 1px solid rgba(255,255,255,0.05);
}

.HomepageSideNav a {
  border-radius: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.03);
  transition: all .2s ease;
}

.HomepageSideNav a:hover {
  background: rgba(255,255,255,0.08);
}

.CategoryListItem {
  position: relative;
}

.CategoryListItem::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}

.DiscussionListItem {
  transition: background .15s ease;
}

.DiscussionListItem:hover {
  background: rgba(255,255,255,0.04);
}

.Attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.Post-body .ButtonGroup {
  display: flex;
  align-items: center;
  margin: 8px 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.08);
  transition: all .15s ease;
}

.Post-body .ButtonGroup .Button--icon {
  padding: 6px;
}

.Post-body .ButtonGroup .Button:nth-child(2) {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.Post-body .ButtonGroup .Button:last-child {
  opacity: .7;
  font-size: 12px;
  margin-left: 8px;
}

.Post-body .ButtonGroup:hover {
  background: rgba(0,0,0,0.07000000000000001);
  transform: translateY(-1px);
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.Post-body a[href$=".pdf"] .Button--icon {
  background: #e5533d;
}

.Post-body a[href$=".mp3"] .Button--icon,.Post-body a[href$=".wav"] .Button--icon {
  background: #3a7bd5;
}

.Post-body a[href$=".zip"] .Button--icon,.Post-body a[href$=".rar"] .Button--icon {
  background: #8b5cf6;
}

.Post-body a[href$=".jpg"] .Button--icon,.Post-body a[href$=".png"] .Button--icon,.Post-body a[href$=".webp"] .Button--icon {
  background: #2f9e44;
}

.Post-body .ButtonGroup .Button--icon {
  background: #4a6fa5;
  color: white;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 8px;
  font-size: 14px;
}

.Post-body .ButtonGroup:hover .Button--icon {
  background: #3b5f91;
}

.Hero {
  padding-left: 0;
  padding-right: 0;
}

.Hero .container {
  max-width: 1100px !important;
  width: 100% !important;
}

.Hero .containerNarrow {
  max-width: 1200px !important;
  width: 100% !important;
}

.Hero .Hero-content {
  max-width: 1200px !important;
  margin: 0 auto;
}

.Post-body video {
  width: 100%;
  max-width: 100%;
  height: auto;
  background: black;
  border-radius: 12px;
}

.bbWrapper audio {
  width: 100%;
}

.bbWrapper img,.Post-body img,.Post-body a,.bbWrapper a,.bbWrapper figure,.bbWrapper .lightbox {
  border-radius: 16px !important;
  overflow: hidden !important;
}

.bbWrapper img,.Post-body img {
  display: block !important;
}
