/* =====================================
SINGLE POST – RONEEMEDIA (FINAL v2)
Inter font • No side whitespace • Premium
===================================== */

/* -------- GLOBAL -------- */

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: #ffffff;
  color: #111827;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Limit content width similar to blog page */
.post-page,
.post-content,
.post-tags,
.post-share-bottom,
.post-author,
.related-posts {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================
HERO
===================================== */

.post-hero {
  position: relative;
  width: 100%;
  background: #000;
}

.post-hero-media {
  position: relative;
  width: 100%;
  max-height: 620px; /* increased from 520px */
  overflow: hidden;
}

.post-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.38),
    rgba(0, 0, 0, 0.78)
  );
  z-index: 1;
}

/* =====================================
HERO CONTENT
===================================== */

.post-hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(32px, 6vw, 96px);
  color: #ffffff;
}

/* Breadcrumbs – cleaner, subtle */
.post-breadcrumbs {
  font-size: 13px;
  margin-bottom: 12px;
  opacity: 0.92;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.post-breadcrumbs a {
  color: #e5e7eb;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.35);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.post-breadcrumbs a:hover {
  background: rgba(15, 23, 42, 0.85);
  border-color: #7ed0fb;
  color: #f9fafb;
}

.post-breadcrumbs span {
  margin: 0 4px;
  opacity: 0.6;
}

/* Title + meta */

.post-hero-content h1 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.2;
  margin: 6px 0 10px;
  letter-spacing: -0.02em;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  opacity: 0.9;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* =====================================
SHARE (TOP) – FANCY PILL BUTTONS
===================================== */

.post-share {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* top buttons: solid pills */
.post-share a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: linear-gradient(120deg, #0f172a, #020617);
  border: 1px solid rgba(148, 163, 184, 0.55);
  color: #f9fafb;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease, border-color 0.2s ease;
}

/* Font Awesome brand icons – requires FA loaded in layout */
.post-share a::before {
  font-size: 14px;
  display: inline-block;
}

.post-share a[data-network='facebook']::before {
  content: '\f09a';
  font-family: 'Font Awesome 5 Brands', 'Font Awesome 6 Brands',
    system-ui, sans-serif;
}

.post-share a[data-network='linkedin']::before {
  content: '\f0e1';
  font-family: 'Font Awesome 5 Brands', 'Font Awesome 6 Brands',
    system-ui, sans-serif;
}

/* Fallback dot if no data-network set */
.post-share a:not([data-network])::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #7ed0fb;
}

.post-share a:hover {
  transform: translateY(-2px);
  background: linear-gradient(120deg, #020617, #111827);
  border-color: #7ed0fb;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* =====================================
CONTENT
===================================== */

.post-content {
  padding: 56px 24px 40px;
}

.post-content h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 40px 0 18px;
  color: #111827;
}

.post-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: #111827;
}

.post-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 18px;
  color: #374151;
}

.post-content ul,
.post-content ol {
  margin: 20px 0 24px 22px;
  padding-left: 0;
}

.post-content li {
  margin-bottom: 10px;
  line-height: 1.7;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 36px 0;
  border-radius: 14px;
}

/* =====================================
TAGS
===================================== */

.post-tags {
  padding: 0 24px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.post-tags a {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: rgba(126, 208, 251, 0.18);
  color: #191660;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.post-tags a:hover {
  background: rgba(126, 208, 251, 0.32);
  transform: translateY(-1px);
}

/* =====================================
SHARE (BOTTOM) – STYLED DIFFERENT
===================================== */

.post-share-bottom {
  padding: 0 24px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.post-share-bottom span {
  font-weight: 600;
  color: #111827;
  margin-right: 4px;
}

/* bottom buttons: lighter, outlined chips with gradient stroke */
.post-share-bottom a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #ffffff 0%, #f3f4f6 60%);
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: #111827;
  font-weight: 600;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease, border-color 0.2s ease;
}

.post-share-bottom a::before {
  font-size: 14px;
  display: inline-block;
}

.post-share-bottom a[data-network='facebook']::before {
  content: '\f09a';
  font-family: 'Font Awesome 5 Brands', 'Font Awesome 6 Brands',
    system-ui, sans-serif;
}

.post-share-bottom a[data-network='linkedin']::before {
  content: '\f0e1';
  font-family: 'Font Awesome 5 Brands', 'Font Awesome 6 Brands',
    system-ui, sans-serif;
}

/* Fallback dot for bottom share too */
.post-share-bottom a:not([data-network])::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #0ea5e9;
}

.post-share-bottom a:hover {
  transform: translateY(-2px);
  border-color: #0f172a;
  background: radial-gradient(circle at top left, #f9fafb 0%, #e5e7eb 70%);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

/* =====================================
AUTHOR
===================================== */

.post-author {
  margin-bottom: 80px;
  padding: 24px 24px 22px;
  background: #f9fafb;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}

.post-author h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: #111827;
}

.post-author p {
  font-size: 14px;
  color: #4b5563;
}

/* =====================================
RELATED POSTS
===================================== */

.related-posts {
  padding: 0 24px 96px;
}

.related-posts h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #111827;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.related-card {
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.related-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.related-card span {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  line-height: 1.4;
  padding: 14px 16px 18px;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

/* =====================================
RESPONSIVE
===================================== */

@media (max-width: 1024px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .post-hero-media {
    max-height: 520px; /* still higher on tablets */
  }

  .post-hero-content {
    padding: 32px 20px;
  }

  .post-content,
  .post-tags,
  .post-share-bottom,
  .post-author,
  .related-posts {
    padding-left: 20px;
    padding-right: 20px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .post-hero-content {
    padding: 24px 18px;
  }

  .post-hero-content h1 {
    font-size: 26px;
  }

  .post-content {
    padding-top: 40px;
  }

  .post-share,
  .post-share-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-share a,
  .post-share-bottom a {
    width: 100%;
    justify-content: center;
  }
}
