/* =========================================================
   SINGLE POST PAGE LAYOUT
========================================================= */

.single-post-page {
  padding: 70px 20px;
}

.single-post-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;

  background: rgba(0, 0, 0, 0.8);

  border: 1px solid rgba(77, 184, 255, 0.28);
  border-radius: 24px;

  box-shadow:
    0 0 12px rgba(77, 184, 255, 0.18),
    0 0 30px rgba(77, 184, 255, 0.08),
    0 20px 55px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  overflow: hidden;
}

.single-post-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: inherit;
  pointer-events: none;

  border: 1px solid rgba(77, 184, 255, 0.18);

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 0 18px rgba(77, 184, 255, 0.05);
}

.single-post-wrapper::after {
  content: "";
  position: absolute;
  top: 20px;
  right: 20px;

  width: 44px;
  height: 44px;

  border-top: 2px solid rgba(77, 184, 255, 0.85);
  border-right: 2px solid rgba(77, 184, 255, 0.85);

  opacity: 0.85;
  pointer-events: none;

  filter: drop-shadow(0 0 8px rgba(77, 184, 255, 0.45));
}

.single-post-container {
  position: relative;
  z-index: 2;

  padding: 50px;
  border-radius: 24px;
}

/* =========================================================
   GLOBAL TEXT INSIDE SINGLE POST
========================================================= */

.single-post-wrapper,
.single-post-wrapper p,
.single-post-wrapper li,
.single-post-wrapper span,
.single-post-wrapper strong,
.single-post-wrapper em,
.single-post-wrapper blockquote,
.single-post-wrapper figcaption {
  color: rgba(255, 255, 255, 0.9);
}

/* =========================================================
   POST HEADER
========================================================= */

.single-post-header {
  text-align: center;
  margin-bottom: 60px;
}

.post-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;

  margin-bottom: 24px;

  color: rgba(255, 255, 255, 0.7);

  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.single-post-title {
  position: relative;

  margin: 0 0 55px;
  padding-bottom: 20px;

  text-align: center;

  font-family: "Acme", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;

  font-weight: 800;

  color: #ffffff;

  text-shadow: 0 0 14px rgba(77, 184, 255, 0.18);
}

.single-post-title::before {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -22px;

  transform: translateX(-50%);

  width: 140px;
  height: 2px;

  border-radius: 999px;

  background: linear-gradient(90deg, transparent, #4db8ff, transparent);

  box-shadow: 0 0 12px rgba(77, 184, 255, 0.4);
}

.single-post-title::after {
  content: "●";

  position: absolute;

  left: 50%;
  bottom: -38px;

  transform: translateX(-50%);

  font-size: 0.6rem;

  color: #4db8ff;

  box-shadow:
    0 0 10px rgba(77, 184, 255, 0.8),
    0 0 20px rgba(77, 184, 255, 0.4);
}

.single-post-excerpt {
  max-width: 700px;

  margin: 20px auto 0;

  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.7;

  color: rgba(255, 255, 255, 0.85);
}

/* =========================================================
   FEATURED IMAGE
========================================================= */

.single-post-image {
  margin: 40px 0;

  border-radius: 20px;

  overflow: hidden;

  border: 1px solid rgba(77, 184, 255, 0.25);

  box-shadow:
    0 0 15px rgba(77, 184, 255, 0.12),
    0 12px 30px rgba(0, 0, 0, 0.35);
}

.single-post-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   POST BODY CONTENT
========================================================= */

.single-post-content {
  font-size: clamp(1.05rem, 1.2vw, 1.2rem);
  line-height: 1.85;
}

.single-post-content p {
  margin-bottom: 1.6em;
}

.single-post-content a {
  color: #4db8ff;

  font-weight: 700;
  text-decoration: none;
}

.single-post-content a:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(77, 184, 255, 0.4);
}

.single-post-content ul,
.single-post-content ol {
  padding-left: 25px;
  margin-bottom: 1.5em;
}

/* =========================================================
   POST H1 STYLE
========================================================= */

.single-post-content h1 {
  position: relative;

  margin: 90px 0 65px;
  padding-bottom: 20px;

  text-align: center;

  font-family: "Acme", sans-serif;
  font-size: clamp(2.3rem, 6vw, 3.8rem);
  line-height: 1.1;

  color: #ffffff;

  text-shadow: 0 0 14px rgba(77, 184, 255, 0.18);
}

.single-post-content h1::before {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -22px;

  transform: translateX(-50%);

  width: 140px;
  height: 2px;

  border-radius: 999px;

  background: linear-gradient(90deg, transparent, #4db8ff, transparent);

  box-shadow: 0 0 12px rgba(77, 184, 255, 0.4);
}

.single-post-content h1::after {
  content: "✦";

  position: absolute;

  left: 50%;
  bottom: -48px;

  transform: translateX(-50%);

  font-size: 2rem;

  color: #4db8ff;

  text-shadow:
    0 0 10px rgba(77, 184, 255, 0.45),
    0 0 25px rgba(77, 184, 255, 0.25);
}

/* =========================================================
   POST H2 STYLE
========================================================= */

.single-post-content h2 {
  position: relative;

  display: block;
  width: 100%;

  margin: 100px 0 50px;

  padding: 28px 40px;

  text-align: center;

  font-family: "Merriweather", serif;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.2;

  color: #ffffff;

  border: 1px solid rgba(77, 184, 255, 0.22);
  border-radius: 18px;

  background: linear-gradient(
    135deg,
    rgba(77, 184, 255, 0.12),
    rgba(77, 184, 255, 0.04)
  );

  box-shadow:
    0 0 15px rgba(77, 184, 255, 0.12),
    0 0 30px rgba(77, 184, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  text-shadow: 0 0 10px rgba(77, 184, 255, 0.18);

  box-sizing: border-box;
}

.single-post-content h2::before,
.single-post-content h2::after {
  content: "⟡";

  position: absolute;
  left: 50%;

  transform: translateX(-50%);

  color: #4db8ff;

  background: linear-gradient(
    135deg,
    rgba(77, 184, 255, 0.12),
    rgba(77, 184, 255, 0.04)
  );

  box-shadow:
    0 0 15px rgba(77, 184, 255, 0.12),
    0 0 30px rgba(77, 184, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);

  padding: 0 12px;

  text-shadow: 0 0 12px rgba(77, 184, 255, 0.8);
}

.single-post-content h2::before {
  top: -18px;
}

.single-post-content h2::after {
  bottom: -18px;
}

/* =========================================================
   POST H3 STYLE
========================================================= */

.single-post-content h3 {
  position: relative;

  text-align: center;

  margin: 80px 0 45px;

  font-family: "Acme", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;

  color: #ffffff;

  text-shadow: 0 0 8px rgba(77, 184, 255, 0.15);
}

.single-post-content h3::before,
.single-post-content h3::after {
  content: "";

  display: block;

  width: 120px;
  height: 2px;

  margin-left: auto;
  margin-right: auto;

  background: linear-gradient(90deg, transparent, #4db8ff, transparent);

  box-shadow: 0 0 12px rgba(77, 184, 255, 0.6);
}

.single-post-content h3::before {
  margin-bottom: 14px;
}

.single-post-content h3::after {
  margin-top: 14px;
}

/* =========================================================
   POST FOOTER / TAGS / CATEGORIES
========================================================= */

.single-post-footer {
  margin-top: 50px;
  padding-top: 30px;

  border-top: 1px solid rgba(77, 184, 255, 0.22);
}

.post-categories a,
.post-tags a {
  display: inline-block;

  margin: 6px 6px 0 0;
  padding: 8px 14px;

  background: rgba(77, 184, 255, 0.08);

  color: #ffffff;

  border: 1px solid rgba(77, 184, 255, 0.25);
  border-radius: 999px;

  backdrop-filter: blur(12px);

  font-size: 0.9rem;
  text-decoration: none;

  box-shadow:
    0 0 10px rgba(77, 184, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  transition: all 0.3s ease;
}

.post-categories a:hover,
.post-tags a:hover {
  color: #ffffff;

  background: rgba(77, 184, 255, 0.14);

  border-color: rgba(77, 184, 255, 0.55);

  box-shadow:
    0 0 16px rgba(77, 184, 255, 0.24),
    0 0 32px rgba(77, 184, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {
  .single-post-page {
    padding: 35px 15px;
  }

  .single-post-container {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .post-meta {
    flex-wrap: wrap;
    font-size: 0.8rem;
  }

  .single-post-content {
    font-size: 1rem;
  }

  .single-post-title,
  .single-post-content h1 {
    font-size: clamp(2.1rem, 8vw, 3rem);
  }

  .single-post-content h2 {
    display: block;

    padding: 24px 22px;

    font-size: clamp(1.65rem, 6vw, 2.25rem);
  }

  .single-post-content h3 {
    font-size: clamp(1.4rem, 5vw, 1.85rem);
  }
}
