/* css/post.css */

:root {
  /* Local overrides for the post page to make it pop */
  --code-bg: #0e0e0e;
  --code-border: #333;
  --accent-glow: rgba(255, 255, 255, 0.08);
}

/* Custom Text Selection */
::selection {
  background: #333;
  color: #fff;
}

/* Helpers */
.text-container {
  max-width: var(--text-max);
  margin: 0 auto;
}

/* --- HERO SECTION --- */
.post-hero {
  padding-top: var(--s-84);
  padding-bottom: var(--s-48);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: var(--s-24);
  opacity: 0.8;
}

.separator { opacity: 0.3; }

.back-link {
  color: var(--text-secondary);
  border-bottom: 1px solid transparent;
  transition: all 0.2s;
}
.back-link:hover {
  color: var(--text-primary);
  border-color: var(--text-primary);
}

.meta-tag {
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
}

.post-title {
  font-weight: 700;
  font-size: clamp(36px, 6vw, 56px); /* Larger title */
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 var(--s-24) 0;
  color: #FFFFFF;
}

.post-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-weight: 300;
  font-family: var(--font-ui);
}

/* --- VISUAL VOID (Animated Banner) --- */
.visual-void {
  width: 100%;
  height: 280px;
  background: #050505;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  margin: 0 0 var(--s-48) 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 40px rgba(0,0,0,0.8);
}

/* Scanlines */
.void-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 100% 4px;
  pointer-events: none;
}

.void-content {
  text-align: center;
  z-index: 2;
}

.void-text {
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  font-size: 13px;
  letter-spacing: 0.3em;
  margin-top: 16px;
}

.void-text .blink {
  color: var(--text-primary);
  animation: blink 2s infinite;
}

/* Abstract Circle Icon */
.void-icon {
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  margin: 0 auto;
  position: relative;
}
.void-icon::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 4px; height: 4px;
  background: #fff;
  box-shadow: 0 0 15px 2px rgba(255,255,255,0.5);
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* --- CONTENT BODY --- */
/* Dropcap for first letter */
.dropcap::first-letter {
  font-size: 3.5em;
  float: left;
  line-height: 0.8;
  margin-right: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.post-content p {
  font-size: 17px;
  line-height: 1.75;
  margin-bottom: var(--s-32);
  color: #cccccc; 
}

.post-content h2 {
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-top: 64px;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.post-content h3 {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Elegant Blockquote */
.post-content blockquote {
  margin: 48px 0;
  padding: 0 40px;
  font-family: var(--font-ui);
  font-size: 24px;
  font-weight: 300;
  line-height: 1.4;
  color: #fff;
  text-align: center;
  position: relative;
}
.post-content blockquote::before {
  content: '“';
  font-family: serif;
  font-size: 60px;
  color: var(--border-subtle);
  position: absolute;
  top: -20px;
  left: 0;
}

/* Styled List */
.styled-list {
  margin-bottom: var(--s-32);
  padding: 0;
  list-style: none;
}
.styled-list li {
  margin-bottom: 16px;
  padding-left: 24px;
  position: relative;
  color: var(--text-secondary);
}
.styled-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-tertiary);
  font-family: var(--font-mono);
}
.styled-list strong {
  color: var(--text-primary);
}

/* --- TERMINAL WINDOW --- */
.code-window {
  margin: 40px 0;
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5);
}

.window-header {
  background: #161616;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #FF5F56; }
.yellow { background: #FFBD2E; }
.green { background: #27C93F; }

.window-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
}

.code-block {
  padding: 24px;
  overflow-x: auto;
}

.code-block pre { margin: 0; }

.code-block code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a9b7c6;
  line-height: 1.6;
}

/* Syntax Highlighting (Manual Classes) */
.kw { color: #cc7832; font-weight: bold; } /* Keyword */
.cls { color: #e8c56d; } /* Class */
.fn { color: #9876aa; } /* Function */
.comment { color: #555; font-style: italic; } /* Comment */

/* --- FOOTER AREA --- */
.post-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
  margin: 80px 0 40px 0;
}

.post-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 80px;
}

.author-block {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-avatar {
  width: 42px;
  height: 42px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fff;
  letter-spacing: 0.05em;
}

.author-role {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-secondary);
}

.share-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}
.share-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

/* Mobile Adjustments */
@media (max-width: 600px) {
  .post-title { font-size: 32px; }
  .visual-void { height: 180px; }
  .post-content blockquote { padding: 0; text-align: left; }
  .post-content blockquote::before { display: none; }
}