:root {
  --bg: #f6f6f6;
  --card: #ffffff;
  --text: #111111;
  --muted: #6d6d6d;
  --accent: #7c3aed;
  --pink: #ff4fbf;
  --cyan: #00d9ff;
  --border: #000000;
}

.dark {
  --bg: #0d1117;
  --card: #161b22;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #8b5cf6;
  --pink: #f472b6;
  --cyan: #22d3ee;
  --border: #30363d;
}



.post-page {
  max-width: 900px;
  margin: auto;
  padding: 40px 24px 120px;
  position: relative;
  background: var(--bg);
  color: var(--text);
}

/* Background texture */
.post-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 58, 237, 0.08), transparent 40%),
    radial-gradient(circle at 90% 30%, rgba(34, 211, 238, 0.08), transparent 45%);
  z-index: -1;
  pointer-events: none;
}

/* BACK BUTTON */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  
  color: var(--text);
  background: var(--card);
  
  font-weight: 900;
  
  border: 3px solid var(--border);
  padding: 12px 18px;
  border-radius: 16px;
  
  box-shadow: 5px 5px 0 var(--border);
  margin-bottom: 30px;
  
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.back-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--border);
}

/* CATEGORY */
.post-category {
  width: fit-content;
  padding: 10px 18px;
  
  background: var(--card);
  color: var(--accent);
  
  border: 3px solid var(--border);
  border-radius: 999px;
  
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  text-transform: uppercase;
  
  box-shadow: 5px 5px 0 var(--border);
}

/* TITLE */
.post-title {
  margin-top: 25px;
  font-size: clamp(2.8rem, 8vw, 5rem);
  line-height: 0.95;
  letter-spacing: -2px;
  font-weight: 950;
  color: var(--text);
}

/* META */
.post-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  
  color: var(--muted);
  font-weight: 700;
}

/* IMAGE */
.post-image {
  margin-top: 40px;
  overflow: hidden;
  
  border-radius: 28px;
  border: 3px solid var(--border);
  
  box-shadow: 10px 10px 0 var(--border);
  
  transform: rotate(-0.3deg);
  transition: transform 0.2s ease;
}

.post-image:hover {
  transform: rotate(0deg) scale(1.01);
}

.post-image img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* CONTENT */
.post-content {
  margin-top: 50px;
}

.post-content p {
  font-size: 1.15rem;
  line-height: 2;
  color: var(--text);
}

/* FOOTER */
.post-footer {
  margin-top: 70px;
}

.footer-card {
  background: var(--card);
  
  border: 3px solid var(--border);
  border-radius: 24px;
  
  padding: 30px;
  
  box-shadow: 8px 8px 0 var(--border);
  
  position: relative;
  overflow: hidden;
}

.footer-card::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  
  width: 120px;
  height: 120px;
  
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.15;
}

.footer-card span {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--accent);
}

.footer-card h3 {
  margin-top: 10px;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text);
}

.footer-card p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.7;
}

/* MOBILE */
@media (max-width: 768px) {
  .post-title {
    letter-spacing: -1px;
  }
  
  .post-content p {
    font-size: 1rem;
    line-height: 1.9;
  }
}

/* READING PROGRESS */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  
  width: 100%;
  height: 6px;
  
  background: var(--card);
  border-bottom: 3px solid var(--border);
  
  z-index: 9999;
}

.progress-fill {
  height: 100%;
  width: 0;
  
  background: var(--accent);
  transition: width 0.1s linear;
}