/* ============================================================================
   ARCHIVE BLOG LIST STYLES
   Standalone CSS for archive page blog list items
   ========================================================================= */

/* Post list container */
.archive-post-list {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 4rem 0;
  max-width: 1156px;
  width: 100%;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .archive-post-list {
    gap: 3rem;
    padding: 2rem 0;
  }
}

/* Post list item */
.archive-post-item {
  display: grid;
  grid-template-columns: 542px 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: end;
}

@media (max-width: 1200px) {
  .archive-post-item {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .archive-post-item {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: start;
  }
}

/* Image wrapper - 542x542px, no rounded corners */
.archive-post-image {
  position: relative;
  width: 542px;
  height: 542px;
  overflow: hidden;
  flex-shrink: 0;
}

@media (max-width: 1200px) {
  .archive-post-image {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
  }
}

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

.archive-post-image a {
  display: block;
  width: 100%;
  height: 100%;
}

/* Content wrapper - aligned to bottom */
.archive-post-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 0; /* We use specific margins instead */
}

/* Category links - red color */
.archive-post-category {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.4;
  margin-bottom: 0.5rem; /* 8px gap to date */
}

.archive-post-category a {
  color: #ff4f58;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.archive-post-category a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.archive-post-category a.blog-category-primary {
  color: #ff4f58;
  font-weight: 700;
}

/* Date - 1rem, font-weight 500 */
.archive-post-date {
  font-size: 1rem;
  line-height: 1.4;
  color: rgba(43, 43, 43, 0.8);
  font-weight: 500;
}

/* Title - 40px (2.5rem), bold, line-height 1.2, 24px gap from date */
.archive-post-title {
  font-family: var(--font-heading, "Space Grotesk", ui-sans-serif, system-ui);
  color: var(--heading, #2b2b2b);
  font-weight: 700;
  font-size: 2.5rem; /* 40px */
  line-height: 1.2;
  letter-spacing: -1px;
  margin-top: 1.5rem; /* 24px gap from date */
  text-decoration: none;
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
  transition: color 0.2s ease;
}

@media (max-width: 768px) {
  .archive-post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
  }
}

.archive-post-title:hover {
  color: var(--heading, #2b2b2b);
  text-decoration: none;
}

/* Excerpt/content */
.archive-post-excerpt {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.5;
  color: rgba(43, 43, 43, 0.8);
  margin-bottom: 1rem;
}

.archive-post-excerpt p {
  margin: 0 0 0.8em 0;
}

.archive-post-excerpt p:last-child {
  margin-bottom: 0;
}

/* Read full story link - underline, red circle around arrow, 32px gap from title */
.archive-post-link {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text, #2b2b2b);
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: 1.3;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  margin-top: 2rem; /* 32px gap from title */
  transition: color 0.2s ease;
}

.archive-post-link:hover {
  color: var(--text, #2b2b2b);
  text-decoration: underline;
}

.archive-post-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand, #ff4f58);
  position: relative;
}

.archive-post-link-icon svg {
  width: 24px;
  height: 24px;
  color: var(--foreground, #ffffff);
  transition: transform 0.2s ease-in-out;
}

.archive-post-link-icon svg * {
  stroke: var(--background, #f8f6f2);
}

.archive-post-link:hover .archive-post-link-icon svg {
  transform: translate(4px, -4px);
}

/* Load more button wrapper */
.archive-load-more-wrapper {
  display: flex;
  justify-content: center;
  padding: 3rem 0;
  margin-top: 2rem;
}

/* Post list wrapper */
.archive-post-list-wrapper {
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Filters wrapper spacing */
.archive-container:has(.filters-wrapper) {
  padding: clamp(40px, 8vw, 80px) clamp(20px, 10vw, 147px);
}

@media (max-width: 768px) {
  .archive-container:has(.filters-wrapper) {
    padding: 2rem 1.5rem;
  }
}
