html,
body {
  height: 100%;
}

body {
  background-color: #f6f7fb;
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.hero {
  background: linear-gradient(135deg, #0d6efd, #6f42c1);
  border-bottom-left-radius: 28px;
  border-bottom-right-radius: 28px;
}

.article-hero {
  background: linear-gradient(135deg, #343a40, #0d6efd);
  color: #fff;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
}

.post-content {
  line-height: 1.8;
}

.post-content {
  line-height: 1.8;
  overflow-wrap: break-word;
}

.post-content img,
.post-content picture,
.post-content figure img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  margin: 12px auto;
  object-fit: contain;
}

.post-content figure {
  max-width: 100%;
  margin: 0 auto 16px;
}

.img-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1050;
}
.img-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.img-lightbox img {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.qr {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 6px;
}

.hover-lift {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.bg-soft-primary {
  background-color: rgba(13, 110, 253, 0.12);
}

.btn-success-soft {
  background-color: rgba(25, 135, 84, 0.12);
  color: #198754;
  border: 1px solid rgba(25, 135, 84, 0.3);
}

.btn-danger-soft {
  background-color: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
}

.post-content pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  border-radius: 10px;
  overflow: auto;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.post-content code {
  background: rgba(15, 23, 42, 0.08);
  color: #0d6efd;
  padding: 2px 6px;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
}

.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
