/* ============================================================================
   SINGLE POST PAGE STYLES
   Styles specific to single post pages
   Based on presta-modern-base.css
   ========================================================================= */

/* Import base styles - CSS variables, typography, colors are inherited */
/* The presta-modern-base.css should be loaded before this file */

/* ============================================================================
   CONTAINER STRUCTURE
   ========================================================================= */

/* Main container - max-width 1440px, centered */
.single-container {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 clamp(20px, 10vw, 147px);
}

@media (max-width: 768px) {
  .single-container {
    padding: 0 1.5rem;
  }
}

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

/* Single post article wrapper */
.blog-single {
  display: block;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-body);
}

/* Categories & Date section */
.single-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.single-meta-categories {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.single-meta-categories a {
  color: #ff4f58;
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.4;
  transition: opacity 0.2s ease;
}

.single-meta-categories a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.single-meta-categories a.blog-category-primary {
  font-weight: 700;
}

.single-meta-separator {
  color: rgba(43, 43, 43, 0.5);
  margin: 0 0.25rem;
}

.single-meta-date {
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(43, 43, 43, 0.8);
  font-weight: 500;
}

/* Title section - 88px clamped variant */
.single-title-wrapper {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.single-title-wrapper .lp-title {
  font-size: clamp(3.5rem, 5.5vw, 5.5rem); /* 56px to 88px */
  line-height: 1.1;
  letter-spacing: -0.0375em;
  margin-block-end: 0;
}

/* Intro paragraph section */
.single-intro-wrapper {
  max-width: 754px;
  width: 100%;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  font-size: clamp(1.125rem, 1.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(43, 43, 43, 0.9);
}

/* Featured image section - square, max 754px x 754px, aligned left */
.single-featured-image {
  max-width: 754px;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.single-featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Content area */
.single-content-wrapper {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

/* Tags section */
.single-tags {
  margin-bottom: clamp(3rem, 6vw, 5rem);
}

.tags-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tags-item {
  font-size: 1rem;
  color: rgba(43, 43, 43, 0.8);
  font-weight: 500;
}

/* ============================================================================
   RELATED ARTICLES SECTION
   ========================================================================= */

.single-related-section {
  margin-top: clamp(4rem, 8vw, 6rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.single-related-heading {
  font-family: var(--font-heading);
  color: var(--heading);
  font-weight: 700;
  font-size: 160px;
  line-height: 1.1;
  letter-spacing: -6px;
  margin-bottom: clamp(3rem, 6vw, 4rem);
  word-break: break-word;
  overflow-wrap: break-word;
}

@media (max-width: 1200px) {
  .single-related-heading {
    font-size: clamp(80px, 10vw, 160px);
  }
}

@media (max-width: 768px) {
  .single-related-heading {
    font-size: clamp(56px, 8vw, 120px);
    letter-spacing: -4px;
  }
}

/* Related articles list - reuse archive styles */
.single-related-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  max-width: 1156px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .single-related-list {
    gap: 3rem;
  }
}

/* ============================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================= */

@media (max-width: 768px) {
  .single-meta {
    margin-bottom: 1rem;
  }

  .single-title-wrapper {
    margin-bottom: 1.5rem;
  }

  .single-intro-wrapper {
    margin-bottom: 1.5rem;
  }

  .single-featured-image {
    margin-bottom: 1.5rem;
  }

  .single-content-wrapper {
    margin-bottom: 1.5rem;
  }
}
