/* ===== Post Card ===== */

.post-page {
  display: flex;
  justify-content: center;
}

.post-card {
  width: 100%;
  max-width: 820px;
  padding: 32px;
  margin-top: 40px;

  background: rgba(6, 20, 14, 0.6);
  border: 1px solid rgba(0, 255, 150, 0.25);
  border-radius: 18px;

  box-shadow:
    0 0 0 1px rgba(0,255,150,.08),
    0 20px 60px rgba(0,0,0,.45);
}

/* Title */
.post-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 12px;

  color: #00ff9c;
  text-shadow: 0 0 14px rgba(0,255,150,.45);
}

/* Meta */
.post-meta {
  font-size: 14px;
  font-weight: 400;
  opacity: .65;
  margin-bottom: 28px;
}

/* Image */
.post-image-wrapper {
  margin: 30px 0;
}

.post-image {
  width: 100%;
  border-radius: 14px;
  display: block;

  box-shadow:
    0 0 0 1px rgba(0,255,150,.15),
    0 15px 40px rgba(0,0,0,.6);
}

/* Content */
.post-content {
  font-size: 17px;
  line-height: 2.1;
  letter-spacing: 0.2px;

  unicode-bidi: plaintext;
}

/* CKEditor output */
.post-content p {
  margin-bottom: 18px;
}

.post-content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 600;
  color: #7CFFB2;
}

.post-content strong {
  font-weight: 600;
  color: #b6ffe0;
}

.post-content img {
  max-width: 100%;
  display: block;
  margin: 30px auto;
  border-radius: 12px;
}

.post-content blockquote {
  margin: 30px 0;
  padding: 14px 18px;

  border-right: 3px solid rgba(0,255,150,.6);
  background: rgba(0,255,150,.04);
  border-radius: 10px;

  opacity: .85;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

body {
  font-family: "Vazirmatn", system-ui, sans-serif;
}


.post-content {
  unicode-bidi: plaintext;
}


:root {
  --bg: #0b0f14;
  --card: rgba(255,255,255,0.04);
  --text: #e6e6e6;
  --muted: #9aa4b2;
  --neon: #00ffaa;
  --border: rgba(255,255,255,0.08);
}

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

body {
  font-family: 'JetBrains Mono', monospace;
  background: radial-gradient(circle at top, #111827, #020617);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 24px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--neon);
  text-shadow: 0 0 10px rgba(0,255,170,0.4);
}

nav a {
  margin-left: 24px;
  color: var(--muted);
  transition: color 0.3s;
}

nav a.active, nav a:hover {
  color: var(--neon);
}

.blog-section h1 {
  font-size: 2rem;
  margin-bottom: 32px;
  text-align: center;
  color: var(--neon);
}

.posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0,255,170,0.2);
}

.post-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.post-content {
  padding: 16px;
}

.post-content h2 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.post-content .meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.post-content .preview {
  font-size: 0.85rem;
  color: var(--text);
  margin-bottom: 12px;
}

.read-more {
  color: var(--neon);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--neon);
  transition: all 0.3s;
}

.read-more:hover {
  color: #fff;
  border-bottom-color: #fff;
}

footer {
  margin-top: 60px;
  text-align: center;
}

.socials svg {
  width: 28px;
  height: 28px;
  stroke: var(--neon);
  fill: none;
  filter: drop-shadow(0 0 6px var(--neon));
  margin: 0 6px;
  transition: transform 0.3s, filter 0.3s;
}

.socials a:hover svg {
  transform: scale(1.15);
  filter: drop-shadow(0 0 12px var(--neon));
}

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