/* Blog Post Page Full Styles */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue: #6ea8fe;
  --green: #727b3d;
  --border2: var(--color-border-secondary);
  --border-radius-lg: 10px;
  --border-radius-md: 6px;
}

.page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 2.5rem;
  max-width: 1060px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

@media (max-width: 992px) {
  .page {
    grid-template-columns: 1fr;
  }
}

article {
  padding: 0;
}

aside {
  padding: 0;
}

/* Cover Image */

.cover {
  width: 100%;
  height: auto;
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-lg);
}

.cover-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  border: 0.5px solid var(--border);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
}

/* Post Title */
h1.post-title {
  font-size: 1.95rem;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-text-primary);
  margin-bottom: 1.5rem;
}

/* Table of Contents */
.toc {
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-lg);
  padding: 1.1rem 1.25rem;
  margin-bottom: 2rem;
  background: var(--bg2);
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.toc-header-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-tertiary);
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.toc-item {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  padding: 0.28rem 0;
  border-bottom: 0.5px solid var(--border);
}

.toc-item:last-child {
  border-bottom: none;
}

.toc-item.sub {
  padding-left: 1.4rem;
}

.toc-num {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--color-text-tertiary);
  flex-shrink: 0;
  min-width: 2rem;
}

.toc-link {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  text-decoration: none;
  line-height: 1.4;
}

.toc-link:hover {
  color: #ffffffb8 !important;
  text-shadow: 0 0 15px #ffffff57;
}

.toc-link.active {
  color: #6ea8fe;
}

/* Prose */
.prose p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-secondary);
  margin-bottom: 1.1rem;
}

.prose ol,
ul,
li {
  color: var(--color-text-secondary);
  line-height: 1.8;
}

.prose h2 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 2rem 0 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 0.5px solid var(--border);
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 2rem 0 0.4rem;
}

.prose h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin: 2rem 0 0.4rem;
}

.prose a {
  text-decoration: none;
}

.prose .sec-num {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--color-text-tertiary);
  margin-right: 0.5rem;
}

/* Code Block */
.code-block {
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 1rem;
  line-height: 1.75;
  margin: 1.25rem 0;
}

.chdr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  border-bottom: 0.5px solid var(--border);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.r {
  background: #ff5f57;
}

.dot.y {
  background: #ffbd2e;
}

.dot.g {
  background: #28ca41;
}

.cfn {
  font-size: 0.6rem;
  color: var(--color-text-tertiary);
  margin-left: 0.3rem;
}

.cbody {
  padding: 0.9rem 1rem;
  background: linear-gradient(35deg, #11121d, #17192e);
}

.kw {
  color: #8b9cff;
}

.fn {
  color: #64d9b3;
}

.st {
  color: #f0a070;
}

.cm {
  color: rgba(128, 128, 128, 0.5);
}

.nm {
  color: #f5c06a;
}

/* Post Image */
.post-img {
  width: 100%;
  height: 160px;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.25rem 0;
}

.img-label {
  font-size: 0.65rem;
  color: var(--color-text-tertiary);
  font-family: var(--mono);
}

/* Author Block */
.author-block {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-top: 2rem;
  padding: 1.25rem;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: var(--border-radius-lg);
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(110, 168, 254, 0.15);
  border: 0.5px solid rgba(110, 168, 254, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6ea8fe;
  flex-shrink: 0;
}

.author-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-primary);
  margin-bottom: 0.2rem;
}

.author-bio {
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* Sidebar */

.recent-post {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 0.5px solid var(--border);
}

.recent-post:last-child {
  border-bottom: none;
}

.recent-thumb {
  width: 44px;
  height: 36px;
  background: var(--bg2);
  border: 0.5px solid var(--border);
  border-radius: 4px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-title {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--color-text-primary);
  margin-bottom: 0.2rem;
}

.recent-date {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--color-text-tertiary);
}

.proportional-fill {
  width: 100%;
  height: auto;
}


