/* ===== BLOG POST DETAIL STYLES ===== */

/* Progress bar */
#read-progress {
  border-radius: 0 2px 2px 0;
}

/* Post cover */
.post-cover {
  height: 300px;
  border-radius: 20px;
  background: linear-gradient(135deg, #0D1526 0%, #1a2a4a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.post-cover__emoji {
  font-size: 6rem;
  line-height: 1;
}

.post-cover__caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.35);
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

/* Post body typography */
.post-body {
  font-size: 16px;
  line-height: 1.8;
}

.post-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 2.5rem 0 1.2rem;
  line-height: 1.3;
  scroll-margin-top: 90px;
}

.post-body h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 1rem;
  line-height: 1.35;
  scroll-margin-top: 90px;
}

.post-body h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin: 1.5rem 0 0.8rem;
  line-height: 1.4;
  scroll-margin-top: 90px;
}

.post-body h5 {
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  margin: 1.2rem 0 0.6rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  scroll-margin-top: 90px;
}

.post-body h6 {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  margin: 1rem 0 0.5rem;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  scroll-margin-top: 90px;
}

.post-body p {
  margin-bottom: .6rem;
  margin-top: .6rem;
}

.post-body ul,
.post-body ol {
  margin: 1rem 0 1.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  line-height: 1.7;
}

.post-body strong {
  color: #fff;
  font-weight: 700;
}

.post-body a {
  color: #00E5FF;
  text-decoration: none;
}

.post-body a:hover {
  text-decoration: underline;
}

/* Callout boxes */
.post-callout {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  margin: 1.5rem 0;
  font-size: 14px;
  line-height: 1.65;
}

.post-callout--info {
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.post-callout--info svg {
  color: #00E5FF;
}

.post-callout--success {
  background: rgba(52, 199, 89, 0.07);
  border: 1px solid rgba(52, 199, 89, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.post-callout--success svg {
  color: #34C759;
}

.post-callout--warn {
  background: rgba(255, 159, 10, 0.07);
  border: 1px solid rgba(255, 159, 10, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.post-callout--warn svg {
  color: #FF9F0A;
}

/* Table */
.post-table-wrap,
.wp-block-table,
.post-body .table-scroll-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  margin: 1.5rem 0;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  display: block;
}

/* Prevent bare tables from overflowing – JS wraps them at runtime */
.post-body table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}

.post-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 460px;
}

.post-table th,
.post-body th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.50);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.post-table td,
.post-body td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
}

.post-table tr:last-child td,
.post-body tr:last-child td {
  border-bottom: none;
}

.post-table__featured td {
  background: rgba(0, 229, 255, 0.04);
}

.post-table__featured td:first-child {
  border-left: 2px solid #00E5FF;
}

/* Scrollbar styling for table wrappers */
.post-table-wrap::-webkit-scrollbar,
.wp-block-table::-webkit-scrollbar,
.post-body .table-scroll-wrap::-webkit-scrollbar {
  height: 4px;
}
.post-table-wrap::-webkit-scrollbar-track,
.wp-block-table::-webkit-scrollbar-track,
.post-body .table-scroll-wrap::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.04);
  border-radius: 99px;
}
.post-table-wrap::-webkit-scrollbar-thumb,
.wp-block-table::-webkit-scrollbar-thumb,
.post-body .table-scroll-wrap::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 99px;
}

/* Tags */
.post-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.50);
  font-weight: 500;
}

/* Share buttons */
.post-share-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.post-share-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
}

/* Table of contents */
.post-toc {
  position: sticky;
  top: 88px;
}

.toc-link {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  padding: 5px 0 5px 12px;
  border-left: 2px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s;
  line-height: 1.4;
}

.toc-link:hover,
.toc-link.active {
  color: #00E5FF;
  border-left-color: #00E5FF;
}

.toc-link--sub {
  padding-left: 24px;
  font-size: 12px;
}

/* Prev/Next navigation */
.post-nav-btn {
  background: rgba(13, 21, 38, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 16px 18px;
  text-decoration: none;
  color: #fff;
  transition: border-color 0.2s;
  display: block;
}

.post-nav-btn:hover {
  border-color: rgba(0, 229, 255, 0.2);
}