/* Page-Specific Layouts */

/* Hero Section (Typically Homepage) */
.hero-section {
  padding-top: 40px;
}
.hero-section .section-title { /* Example of customizing section title for hero */
  font-size: 36px;
  margin-bottom: 40px;
}
.featured-article-container { /* Used in hero for the main featured article */
  margin-bottom: 30px;
}


/* Archive Page Layout */
.archive-page {
  padding-top: 40px;
  padding-bottom: 60px;
}
.archive-year-group {
  margin-bottom: 40px;
}
.archive-year-group:last-of-type {
  margin-bottom: 20px;
}
.archive-year {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid var(--border-color-strong);
}
html.dark-mode .archive-year {
  color: var(--text-secondary); /* Ensure variable is appropriate for dark mode */
  border-bottom-color: var(--border-color-strong);
}
.archive-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.archive-item {
  margin-bottom: 0;
}
.archive-item__link {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  text-decoration: none;
  color: var(--text-link);
  padding: 10px 0;
  position: relative;
  overflow: hidden;
}
.archive-item__link:hover .archive-item__title {
  text-decoration: underline;
  color: var(--primary-dark);
}
html.dark-mode .archive-item__link:hover .archive-item__title {
  color: var(--primary-color); /* Lighter link hover for dark mode */
}
.archive-item__title {
  margin-right: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background-color: var(--bg-main); /* To cover the dotted line */
  padding-right: 5px;
  position: relative;
  z-index: 1;
}
.archive-item__date {
  flex-shrink: 0;
  font-size: 0.9em;
  color: var(--text-tertiary);
  white-space: nowrap;
  background-color: var(--bg-main); /* To cover the dotted line */
  padding-left: 5px;
  position: relative;
  z-index: 1;
}
.archive-item__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.6em; /* Adjust vertical position of dots */
  height: 1px;
  border-bottom: 1.5px dotted var(--text-tertiary);
  z-index: 0;
}
html.dark-mode .archive-item__title,
html.dark-mode .archive-item__date {
  background-color: var(--bg-main); /* Ensure dark bg for text over dots */
}


/* About Page Layout */
.about-page-layout {
  padding-top: 40px;
  padding-bottom: 60px;
  max-width: 800px; /* Common content width */
  margin-left: auto;
  margin-right: auto;
}
.about-page__header {
  margin-bottom: 30px;
}
.about-page__header h1 {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-main);
}
.about-page__content { /* Uses .post-content styles from content_elements.css */
  /* Specific overrides or additions for about page content if needed */
}
.about-page__content p { margin-bottom: 1.5em; } /* From original */
.about-page__content a { color: var(--text-link); text-decoration: underline; transition: color var(--transition-standard); } /* From original */
.about-page__content a:hover { color: var(--primary-dark); text-decoration: none; } /* From original */
.about-page__content h2 { font-size: 28px; color: var(--text-main); margin-top: 2em; margin-bottom: 1em; font-weight: 600; } /* From original */
.about-page__content ul, .about-page__content ol { margin-bottom: 1.5em; padding-left: 25px; } /* From original */
.about-page__content li { margin-bottom: 0.5em; } /* From original */


/* Single Post Layout */
.post-layout {
  padding-top: 40px;
  padding-bottom: 60px;
  max-width: 800px; /* Common content width */
  margin-left: auto;
  margin-right: auto;
}
.post-header {
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 20px;
}
.post-title { /* Title specific to the post page */
  font-size: 38px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 15px;
}
.post-meta {
  font-size: 0.9em;
  color: var(--text-tertiary);
  display: flex;
  flex-wrap: wrap;
  gap: 5px 15px; /* Spacing between meta items */
  align-items: center;
}
.post-meta span {
  display: inline-block;
  /* margin-right: 15px; Redundant due to gap */
}
/* .post-meta span:last-child { margin-right: 0; } Redundant */
.post-meta a {
  color: var(--text-tertiary);
  text-decoration: none;
  border-bottom: 1px dotted var(--text-tertiary);
  transition: color var(--transition-standard), border-color var(--transition-standard);
}
.post-meta a:hover {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Post Cover Image (within post-layout) */
.post-cover-container {
  margin-top: 20px;
  margin-bottom: 35px;
  width: 100%;
}
.post-cover-image--default { /* Default styling for post cover image */
  display: block;
  width: 100%;
  max-height: 450px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(var(--shadow-color-light-rgb), var(--shadow-opacity-medium));
}
.post-cover--artistic-blur-wrapper { /* Wrapper for artistic blur effect on post cover */
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding-top: 50%; /* Aspect ratio for the blur container */
  background-color: var(--bg-secondary); /* Fallback BG */
}
.post-cover-blur-background { /* Blurred background image */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--bg-image); /* Should be set by Hugo to post's image */
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.75);
  transform: scale(1.15);
  z-index: 1;
}
html.dark-mode .post-cover-blur-background {
  filter: blur(20px) brightness(0.60);
}
.post-cover-image--artistic-blur { /* The actual cover image, less blurred */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 98%; /* Slightly smaller than wrapper */
  height: 98%; /* Slightly smaller than wrapper */
  object-fit: contain;
  border-radius: 6px;
}
/* Ensure specific post cover image with artistic blur does not inherit general img margins */
.post-cover-image.post-cover-image--artistic-blur {
    margin: 0 !important;
}


/* Post Navigation (Prev/Next) */
.post-navigation {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}
.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex-basis: 48%;
  margin-bottom: 15px;
}
.post-navigation a {
  display: block;
  text-decoration: none;
  color: var(--text-main);
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  transition: border-color var(--transition-standard), background-color var(--transition-standard);
}
.post-navigation a:hover {
  border-color: var(--primary-color);
  background-color: var(--bg-secondary);
}
.post-navigation .meta-nav { /* "Previous Post" / "Next Post" text */
  display: block;
  font-size: 0.85em;
  color: var(--text-tertiary);
  margin-bottom: 5px;
}
.post-navigation .post-title { /* Title of the prev/next post */
  font-size: 1.1em; /* Different from main .post-title */
  font-weight: 600;
  color: var(--text-link);
}
.post-navigation a:hover .post-title {
  color: var(--primary-dark);
}


/* Taxonomy Terms Page (e.g., /tags/) */
.terms-page {
  padding-top: 40px;
  padding-bottom: 60px;
}
.terms-page__header {
  margin-bottom: 40px;
}
.terms-list-container {
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.terms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  column-count: 2;
  column-gap: 50px;
}
.terms-list-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.terms-list-item:last-child {
  border-bottom: none;
}
.terms-list-item__link {
  font-size: 1.1em;
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
}
.terms-list-item__link:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}
.terms-list-item__count {
  font-size: 0.9em;
  color: var(--text-tertiary);
  background-color: var(--bg-secondary);
  padding: 2px 8px;
  border-radius: 12px;
}

/* 404 Error Page */
.error-404-page {
  padding-top: 60px;
  padding-bottom: 80px;
  text-align: center;
}
.error-404-content {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.error-404-icon {
  font-size: 5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1;
}
.error-404-icon .emoji-icon {
    display: inline-block;
}
.error-404-icon svg.icon-search-off { /* If using an SVG icon */
    width: 80px;
    height: 80px;
}
.error-404-title {
  font-size: 2.5rem;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.2;
}
.error-404-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}
.error-404-actions {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}
.error-404-actions .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color var(--transition-standard), transform var(--transition-standard), box-shadow var(--transition-standard);
}
.error-404-actions .action-button.primary-action {
  background-color: var(--primary-color);
  color: var(--primary-text-over);
  box-shadow: 0 4px 12px rgba(var(--primary-color), 0.25); /* Use actual color value for shadow if var not working with rgba */
}
.error-404-actions .action-button.primary-action:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(var(--primary-color), 0.35);
}
.error-404-suggestions {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  text-align: left;
}
.error-404-suggestions h3 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 15px;
  text-align: center;
}
.error-404-suggestions ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.error-404-suggestions li {
  margin-bottom: 10px;
}
.error-404-suggestions li a {
  color: var(--text-link);
  text-decoration: none;
  font-weight: 500;
}
.error-404-suggestions li a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}