/* ============================================================
   Blog single post — styles for single.php
   Template renders: .post_single__section > .container >
     .post_single__content + aside.post_single__add
   ============================================================ */

.page__container--single {
  background: #fafaf7;
  padding: 3rem 0 5rem;
}

.post_single__section .container {
  display: grid;
  grid-template-columns: 1fr 22rem;
  gap: 3rem;
  align-items: start;
}

/* ----------------------------------------
   Main content column
   ---------------------------------------- */
.post_single__content {
  background: #fff;
  border-radius: 1.25rem;
  padding: 3rem 3.25rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
}

.post_single__title {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1c1d21;
  margin: 0 0 1.5rem;
  letter-spacing: -0.01em;
}

.post_single__thumbnail {
  margin: 0 -1rem 1.5rem;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #f4f4f0;
}
.post_single__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.post_single__meta {
  font-size: 0.85rem;
  color: #787878;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #ececec;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.post_single__meta::before {
  content: "🗓";
  font-size: 1rem;
}

/* ----------------------------------------
   Content typography (default__text)
   ---------------------------------------- */
.default__text {
  font-size: 1rem;
  line-height: 1.75;
  color: #333;
}
.default__text > * {
  margin-bottom: 1.4rem;
}
.default__text > *:last-child {
  margin-bottom: 0;
}
.default__text h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: #1c1d21;
  margin: 2.5rem 0 1.25rem;
  line-height: 1.3;
}
.default__text h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1c1d21;
  margin: 2rem 0 1rem;
  line-height: 1.35;
}
.default__text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1c1d21;
  margin: 1.5rem 0 0.75rem;
}
.default__text p {
  margin: 0 0 1.4rem;
}
.default__text a {
  color: #b48a1a;
  text-decoration: underline;
  text-decoration-color: rgba(212, 175, 55, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.default__text a:hover {
  color: #8a6b1f;
  text-decoration-color: #d4af37;
}
.default__text strong {
  color: #1c1d21;
}
.default__text ul,
.default__text ol {
  margin: 0 0 1.4rem;
  padding-left: 1.5rem;
}
.default__text ul li,
.default__text ol li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}
.default__text ul li::marker {
  color: #d4af37;
}
.default__text blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  background: #f8f6f0;
  border-left: 4px solid #d4af37;
  border-radius: 0.5rem;
  font-style: italic;
  color: #555;
}
.default__text img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
  display: block;
}
.default__text figure {
  margin: 1.75rem 0;
}
.default__text figcaption {
  font-size: 0.85rem;
  color: #787878;
  text-align: center;
  margin-top: 0.5rem;
}
.default__text hr {
  border: none;
  border-top: 1px solid #ececec;
  margin: 2.5rem 0;
}
.default__text code {
  background: #f4f4f0;
  padding: 0.15rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  color: #b48a1a;
}

/* ----------------------------------------
   Sidebar — related posts
   ---------------------------------------- */
.post_single__add {
  position: sticky;
  top: 2rem;
}

.post_single__add__post__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.post_single__add__post__card {
  display: block;
  background: #fff;
  border-radius: 0.75rem;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  border: 1px solid #ececec;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.post_single__add__post__card:hover {
  transform: translateY(-2px);
  border-color: #d4af37;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.post_single__add__post__card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1c1d21;
  line-height: 1.4;
  margin-bottom: 0.4rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post_single__add__post__card__date {
  font-size: 0.78rem;
  color: #999;
}

/* First card highlighted */
.post_single__add__post__card--0 {
  background: linear-gradient(135deg, #1c1d21 0%, #2d2f35 100%);
  border-color: #2d2f35;
}
.post_single__add__post__card--0 .post_single__add__post__card__title { color: #fff; }
.post_single__add__post__card--0 .post_single__add__post__card__date { color: #d4af37; }
.post_single__add__post__card--0:hover {
  border-color: #d4af37;
}

.btn_post_single__add {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ----------------------------------------
   Responsive
   ---------------------------------------- */
@media (max-width: 1024px) {
  .post_single__section .container {
    grid-template-columns: 1fr 18rem;
    gap: 2rem;
  }
  .post_single__content {
    padding: 2.25rem 2rem;
  }
  .post_single__title {
    font-size: 1.7rem;
  }
}

@media (max-width: 750px) {
  .page__container--single {
    padding: 1.5rem 0 3rem;
  }
  .post_single__section .container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .post_single__content {
    padding: 1.75rem 1.4rem;
    border-radius: 0.9rem;
  }
  .post_single__title {
    font-size: 1.45rem;
  }
  .post_single__thumbnail {
    margin: 0 -0.4rem 1.25rem;
  }
  .default__text {
    font-size: 0.95rem;
  }
  .default__text h2 {
    font-size: 1.3rem;
    margin: 1.75rem 0 0.9rem;
  }
  .default__text h3 {
    font-size: 1.1rem;
  }
  .post_single__add {
    position: static;
  }
  .post_single__add__post__list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }
  .post_single__add__post__card {
    flex: 0 0 17rem;
  }
}
