/* ============================================================
   SINGLE POST — transparent header
   ============================================================ */
body:has(.blog-post-hero) {
  padding-top: 0;
}
body:has(.blog-post-hero) .site-header {
  background: transparent;
}
body:has(.blog-post-hero) .top-bar {
  background: rgba(0, 0, 0, 0.5);
}
body:has(.blog-post-hero) .site-nav {
  background: transparent;
  border-bottom-color: transparent;
}
body:has(.blog-post-hero) .site-nav__products-btn,
body:has(.blog-post-hero) .site-nav__links a,
body:has(.blog-post-hero) .site-nav__icon-btn,
body:has(.blog-post-hero) .site-nav__cart-count {
  color: var(--color-white);
}

/* Λευκό (light) logo πάνω στο σκούρο hero */
body:has(.blog-post-hero) .site-nav__logo-img--default {
  display: none !important;
}
body:has(.blog-post-hero) .site-nav__logo-img--light {
  display: block !important;
}

/* Scrolled: επιστροφή στο μαύρο μενού (default logo + μαύρα στοιχεία),
   όπως ακριβώς είναι τώρα σε ΚΑΘΕ σελίδα με σκούρο hero. */
body:has(.blog-post-hero) .site-header.is-scrolled .site-nav__products-btn,
body:has(.blog-post-hero) .site-header.is-scrolled .site-nav__links a,
body:has(.blog-post-hero) .site-header.is-scrolled .site-nav__icon-btn,
body:has(.blog-post-hero) .site-header.is-scrolled .site-nav__cart-count {
  color: var(--color-black);
}
body:has(.blog-post-hero) .site-header.is-scrolled .site-nav__logo-img--light {
  display: none !important;
}
body:has(.blog-post-hero)
  .site-header.is-scrolled
  .site-nav__logo-img--default {
  display: block !important;
}

/* ============================================================
   HERO
   ============================================================ */
.single-post__hero {
  position: relative;
  height: 520px;
  background-size: cover;
  background-position: center;
  background-color: var(--color-gray-800);
}
.single-post__hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.6) 5%, rgba(49, 49, 49, 0) 46%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.4) 100%);
}
.single-post__hero-inner {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* ============================================================
   BODY — date, title, content
   ============================================================ */
.single-post__body {
  padding-top: 56px;
  padding-bottom: 80px;
  max-width: 1760px;
}
.single-post__date {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  color: var(--color-black);
  margin-bottom: 24px;
}
.single-post__head {
  margin-bottom: 48px;
}
.single-post__title {
  font-size: 32px;
  font-weight: 200;
  letter-spacing: 0.96px;
  text-transform: uppercase;
  color: var(--color-black);
  line-height: 1;
}

/* Post content typography */
.single-post__content {
  max-width: 1751px;
}
.single-post__content p {
  font-size: 16px;
  font-weight: 200;
  letter-spacing: 0.48px;
  line-height: 1.4;
  color: var(--color-gray-700);
  margin-bottom: 1.4em;
}
.single-post__content h2,
.single-post__content h3 {
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.6px;
  color: var(--color-black);
  margin-bottom: 16px;
  margin-top: 40px;
}
.single-post__content a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}
.single-post__content a:hover {
  opacity: 0.75;
}
.single-post__content ul,
.single-post__content ol {
  padding-left: 24px;
  margin-bottom: 1.4em;
}
.single-post__content ul {
  list-style: disc;
}
.single-post__content ol {
  list-style: decimal;
}
.single-post__content li {
  font-size: 16px;
  font-weight: 200;
  letter-spacing: 0.48px;
  line-height: 1.4;
  color: var(--color-gray-700);
  margin-bottom: 8px;
}
.single-post__content img {
  max-width: 100%;
  height: auto;
  margin: 32px 0;
}
.single-post__content blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: 24px;
  margin: 32px 0;
  color: var(--color-gray-700);
  font-style: italic;
}

/* Tags */
.single-post__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-gray-100);
}
.single-post__tag {
  font-size: 12px;
  font-weight: 200;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-black);
  border: 1px solid var(--color-gray-200);
  padding: 6px 16px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.single-post__tag:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ============================================================
   RELATED POSTS SECTION
   ============================================================ */
.single-post__related {
  padding-bottom: 0;
  border-top: 1px solid var(--color-gray-100);
}
.single-post__related-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 80px 40px 48px;
}
.single-post__related-title {
  font-size: 50px;
  font-weight: 300;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--color-black);
}
.single-post__related-nav {
  display: flex;
  align-items: center;
  gap: 48px;
}
.single-post__related-counter {
  font-size: 16px;
  font-weight: 200;
  letter-spacing: 3.84px;
  text-transform: uppercase;
  color: var(--color-black);
  white-space: nowrap;
}
.single-post__related-total {
  color: var(--color-gray-400);
}
.single-post__related-arrows {
  display: flex;
  align-items: center;
  gap: 16px;
}
.single-post__related-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Slider wrapper */
.single-post__related-slider {
  overflow: hidden;
  padding: 0 40px 120px;
}

/* ── Δομή/συμπεριφορά 1:1 με το tips-section (home.css) ──
   Ίδιο grid, ίδιο hover overlay, ίδιο excerpt reveal.
   Μόνη διαφορά περιεχομένου: το __cat δείχνει τον τίτλο του άρθρου. */
.single-post__related-slider .slick-list {
  overflow: hidden;
}
.single-post__related-slider .slick-track {
  display: flex;
}

/* Κάθε slide = 3 κάρτες σε grid — όπως .tips-slider__slide */
.related-slide {
  display: grid !important;
  grid-template-columns: minmax(0, 1.86fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  width: 100%;
}
.related-slide__col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 131px;
  width: 100%;
}

/* Κάρτα — όπως .tips-card */
.related-card {
  position: relative;
  display: flex;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-decoration: none;
  background-color: var(--color-gray-200);
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--color-white);
}
.related-card--featured {
  height: 570px;
  background-position: center;
}
.related-card--tall {
  height: 570px;
  background-position: 45% center;
}
.related-card--short {
  height: 400px;
  background-position: center;
}

/* Overlay: κρυφό — εμφανίζεται στο hover/focus, όπως .tips-card__overlay */
.related-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  background:
    linear-gradient(
      10deg,
      rgba(0, 0, 0, 0.7) 5.9%,
      rgba(0, 0, 0, 0.21) 21%,
      rgba(0, 0, 0, 0.064) 29.4%,
      rgba(0, 0, 0, 0) 38%
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.related-card:hover .related-card__overlay,
.related-card:focus-visible .related-card__overlay {
  opacity: 1;
}

.related-card__body {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  padding: 24px 32px;
}
.related-card__date {
  display: block;
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  color: var(--color-white);
}
.related-card__bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 100%;
}
.related-card--featured .related-card__bottom {
  gap: 15px;
  max-width: 645px;
}
/* __cat: εδώ μπαίνει ο τίτλος του άρθρου */
.related-card__cat {
  display: block;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-white);
}
/* Excerpt: κρυφό — αποκαλύπτεται στο hover, όπως .tips-card__excerpt */
.related-card__excerpt {
  display: block;
  max-width: 645px;
  font-size: 18px;
  font-weight: 200;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--color-white);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.35s ease,
    opacity 0.35s ease;
}
.related-card:hover .related-card__excerpt,
.related-card:focus-visible .related-card__excerpt {
  max-height: 240px;
  opacity: 1;
}
.related-card__more {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--color-white);
  text-decoration: underline;
  text-decoration-color: var(--color-primary);
  text-underline-offset: 4px;
}
.related-slide__all {
  flex-shrink: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .single-post__hero {
    height: 380px;
  }
  .single-post__body {
    padding-top: 40px;
    padding-bottom: 50px;
  }
  .single-post__title {
    font-size: 24px;
  }

  .single-post__related-header {
    padding: 50px 5% 32px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .single-post__related-title {
    font-size: 36px;
  }
  .single-post__related-slider {
    padding: 0 5% 50px;
  }

  /* Mobile — όπως το tips-section: 1 στήλη, κάρτες με σταθερό ratio,
       excerpt πάντα ορατό (σε touch δεν υπάρχει hover) */
  .related-slide {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .related-slide__col {
    gap: 35px;
  }
  .related-card--featured,
  .related-card--tall,
  .related-card--short {
    height: auto;
    aspect-ratio: 358 / 232;
  }
  /* Keep the card's existing overlay visible on mobile without requiring tap. */
  .related-card__overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
  }
  .related-card__body {
    padding: 16px;
  }
  .related-card__cat {
    font-size: 20px;
  }
  .related-card__excerpt {
    max-height: none;
    opacity: 1;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: -0.24px;
  }
  .related-card__more {
    font-size: 11px;
    letter-spacing: 1.1px;
  }
  .related-card--featured .related-card__bottom {
    gap: 24px;
  }
}
@media (max-width: 420px) {
  .single-post__hero {
    height: 300px;
  }
  .single-post__title {
    font-size: 20px;
  }
  .single-post__related-title {
    font-size: 28px;
  }
  .related-card__body {
    padding: 20px;
  }
}
