/* ==========================================================
   CryptonHero -- Blog Archive Page Styles
   File: blog/archive.css
   Loaded by: blog/index.html only
   Inherits variables from: ../style.css and post.css
   ========================================================== */

.archive-header {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1.25px solid rgba(40, 81, 181, 0.18);
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  gap: 2.75rem;
  align-items: start;
}

/* Post list */
.archive-list {
  display: flex;
  flex-direction: column;
}

.archive-post {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1.25px solid rgba(40, 81, 181, 0.17);
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
}

.archive-post:first-child {
  border-top: 1.25px solid rgba(40, 81, 181, 0.17);
}

.archive-post-date {
  min-width: 100px;
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
  color: #1f4daf;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.4;
  flex-shrink: 0;
  padding-top: 0.2rem;
  text-shadow: 0 0 0.01px currentColor;
  transition: color 0.15s ease;
}

.archive-post-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.archive-post-title {
  font-size: clamp(23px, 1.55vw, 24px);
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  line-height: var(--line-heading);
  margin: 0;
  transition: color 0.15s ease;
}

.archive-post:hover .archive-post-title {
  color: var(--ch-color-blue-primary);
}

.archive-post:hover .archive-post-date {
  color: var(--text-dark);
}

.archive-post-teaser {
  font-size: clamp(15px, 1.05vw, 17px);
  color: rgba(51, 56, 66, 0.76);
  line-height: var(--line-body);
  margin: 0;
}

.archive-post-arrow {
  flex-shrink: 0;
  font-size: 19px;
  color: rgba(40, 81, 181, 0.48);
  align-self: center;
  transition: color 0.15s ease, transform 0.15s ease;
}

.archive-post:hover .archive-post-arrow {
  color: var(--ch-color-blue-primary);
  transform: translateX(4px);
}

/* Sidebar */
.archive-sidebar {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 4rem;
}

.archive-sidebar-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--glass-panel-blur);
  -webkit-backdrop-filter: var(--glass-panel-blur);
  border: 1px solid rgba(40, 81, 181, 0.28);
  border-radius: var(--radius-md);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 18px 46px rgba(16, 53, 196, 0.16),
    0 8px 22px rgba(18, 36, 82, 0.08);
  padding: 1.35rem 1.25rem;
  align-items: center;
  text-align: center;
}

.archive-sidebar-heading {
  font-size: var(--font-label);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.095em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  width: 100%;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.archive-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-tag {
  display: inline-block;
  box-sizing: border-box;
  width: 150px;
  padding: 0.3rem 0.75rem;
  background: var(--ch-color-blue-primary);
  border: 1px solid var(--ch-color-blue-primary);
  border-radius: 100px;
  font-size: var(--font-caption);
  font-weight: var(--weight-medium);
  color: #ffffff;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  list-style: none;
}

.archive-tag:hover {
  background: rgba(40, 81, 181, 0.07);
  color: var(--ch-color-blue-primary);
  border-color: rgba(40, 81, 181, 0.18);
}

.archive-tag.active {
  background: var(--primary-blue-dark);
  color: #ffffff;
  border-color: var(--primary-blue-dark);
}

/* Mobile */
@media (max-width: 768px) {
  .archive-layout {
    grid-template-columns: 1fr;
  }
  .archive-sidebar {
    position: static;
    margin-top: 0;
  }
  .archive-post-title {
    font-size: var(--font-card-heading-mobile);
  }
}

/* Archive-specific overrides */

.post-main {
  padding-top: 140px;
}

.post-container {
  width: min(100%, 1320px);
}

.archive-header .section-eyebrow {
  font-size: clamp(1.65rem, 2.1vw, 1.95rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ch-color-blue-primary);
  text-shadow:
    0 4px 8px rgba(21, 49, 107, 0.14),
    0 8px 20px rgba(21, 49, 107, 0.18);
  filter: drop-shadow(0 12px 24px rgba(21, 49, 107, 0.18));
  transform: translateY(-0.3rem);
  margin: 0 0 0.75rem 0;
}

.archive-header .section-heading {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  line-height: var(--line-title);
  text-shadow: none;
  margin-bottom: 0.75rem;
}

.archive-header .section-subtitle {
  font-size: clamp(17px, 1.25vw, 21px);
  font-weight: var(--weight-semibold);
  color: var(--ch-color-blue-primary);
  font-style: normal;
  text-shadow: none;
  line-height: 1.4;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.archive-header .section-subtitle span {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .archive-header .section-subtitle span {
    white-space: normal;
  }
}

.archive-post-title {
  font-size: clamp(23px, 1.55vw, 24px);
  font-weight: var(--weight-bold);
  color: var(--text-dark);
  line-height: var(--line-heading);
  margin: 0;
  transition: color 0.15s ease;
}

.archive-post-teaser {
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: var(--weight-regular);
  color: rgba(51, 56, 66, 0.76);
  line-height: var(--line-body);
  margin: 0;
}

.archive-post-date {
  font-size: var(--font-label);
  font-weight: var(--weight-semibold);
  color: #1f4daf;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.4;
  min-width: 100px;
  flex-shrink: 0;
  padding-top: 0.2rem;
  text-shadow: 0 0 0.01px currentColor;
  transition: color 0.15s ease;
}

.archive-sidebar-heading {
  font-size: var(--font-label);
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: 0.095em;
  text-transform: uppercase;
  margin-bottom: 0.875rem;
  width: 100%;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.82);
}

.archive-tag {
  font-size: var(--font-caption);
  font-weight: var(--weight-medium);
}

.post-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: clamp(13px, 1vw, 15px);
  font-weight: var(--weight-bold);
  color: #ffffff;
  background: var(--ch-color-blue-primary);
  border: 1px solid var(--ch-color-blue-primary);
  border-radius: 100px;
  padding: 0.65rem 1.15rem;
  margin: 0 auto;
  width: min(100%, 220px);
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.post-back-link:hover {
  gap: 0.5rem;
  background: rgba(40, 81, 181, 0.07);
  color: var(--ch-color-blue-primary);
  border-color: rgba(40, 81, 181, 0.18);
  transform: translateY(-1px);
}

.post-back-arrow {
  font-size: 1.1em;
  line-height: 1;
}

/* End blog/archive.css */
