/* ==========================================================================
   Purenote Child Theme - Category & Archive Feed Styles (Stitch Design)
   Matches Screen 1d6eaa377cd54ba2bdcb9238f47eb9f0 (Burgundy Editorial Theme)
   ========================================================================== */

:root {
  --archive-burgundy: #7F304F;
  --archive-burgundy-hover: #65223c;
  --archive-wine: #5E2038;
  --archive-wine-deep: #421224;
  --archive-accent: #9E2A50;
  --archive-dark: #2A0D18;
  --archive-flame: #ff3e3e;
  --archive-text-main: #18181b;
  --archive-text-muted: #71717a;
  --archive-border: #e4e4e7;
  --archive-bg-light: #fbfbfb;
}

body.archive,
body.category,
body.tag,
body.author,
body.search {
  background-color: var(--archive-bg-light);
  color: var(--archive-text-main);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.archive-main-container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px 20px 80px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .archive-main-container {
    padding: 32px 32px 90px;
  }
}

/* 1. Breadcrumbs & Archive Header */
.archive-breadcrumbs-nav {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--archive-text-muted);
}

.archive-breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-breadcrumbs-list a {
  color: #52525b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.archive-breadcrumbs-list a:hover {
  color: var(--archive-burgundy);
}

.archive-breadcrumbs-list .sep {
  color: #a1a1aa;
}

.archive-breadcrumbs-list .current {
  color: #71717a;
}

.archive-header-box {
  margin-bottom: 32px;
}

.vertical-accent-title {
  border-left: 4.5px solid var(--archive-burgundy);
  padding-left: 14px;
  line-height: 1.15;
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 24px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  color: #111827;
  margin: 0;
}

@media (min-width: 768px) {
  .vertical-accent-title {
    font-size: 28px;
  }
}

/* 2. Main Layout Grid (8 cols content, 4 cols sidebar) */
.archive-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

@media (min-width: 1024px) {
  .archive-content-grid {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    gap: 40px;
  }
}

/* 3. Left Section: 2-Column Post Cards Grid */
.archive-posts-stream {
  min-width: 0;
}

.archive-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .archive-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

.archive-post-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(228, 228, 231, 0.9);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.archive-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  border-color: rgba(127, 48, 79, 0.3);
}

/* Thumbnail Container */
.card-thumbnail-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  background: linear-gradient(135deg, #fdfbfb 0%, #f4f4f5 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #f3f4f6;
  overflow: hidden;
}

.card-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--archive-burgundy);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
  z-index: 3;
  line-height: 1.2;
}

.card-score-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f8ecf1;
  color: var(--archive-burgundy);
  border: 1px solid #d6a5b7;
  font-weight: 800;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  z-index: 3;
}

.card-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.archive-post-card:hover .card-thumbnail-img {
  transform: scale(1.05);
}

/* Simulated Editorial / Bamboo Artwork fallback */
.card-artwork-placeholder {
  text-align: center;
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
}

.card-artwork-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 900;
  color: #065f46;
  letter-spacing: -0.02em;
  line-height: 1;
}

.card-artwork-brand .brand-pop {
  color: #f97316;
}

.card-artwork-sub {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #064e3b;
  margin-top: 2px;
  letter-spacing: 0.02em;
}

.card-artwork-tag {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #52525b;
  letter-spacing: 0.02em;
}

/* Card Body */
.card-body-content {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-post-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.card-post-title a {
  color: inherit;
  text-decoration: none;
}

.archive-post-card:hover .card-post-title {
  color: var(--archive-burgundy);
}

.card-post-meta {
  font-size: 12px;
  color: #9ca3af;
  font-weight: 500;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-meta-dot {
  color: #d1d5db;
}

.card-post-excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: #52525b;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 4. Numbered Pagination */
.archive-pagination-wrap {
  margin-top: 40px;
  padding-top: 16px;
}

.archive-pagination-wrap .nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.archive-pagination-wrap .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.archive-pagination-wrap .page-numbers.current {
  background: var(--archive-burgundy);
  border-color: var(--archive-burgundy);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(127, 48, 79, 0.28);
}

.archive-pagination-wrap .page-numbers:hover:not(.current) {
  border-color: var(--archive-burgundy);
  color: var(--archive-burgundy);
}

/* 5. Right Sidebar */
.archive-sidebar-column {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.sidebar-widget-block {
  width: 100%;
}

.sidebar-widget-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 20px;
  position: relative;
}

/* Widget 1: SmartMag Advertisement Banner */
.smartmag-ad-banner {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background-color: #09090b;
  border: 1px solid #27272a;
  color: #ffffff;
  box-sizing: border-box;
}

.smartmag-ad-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  mix-blend-mode: luminosity;
}

.smartmag-ad-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(127, 48, 79, 0.35) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.smartmag-ad-content {
  position: relative;
  z-index: 2;
}

.smartmag-ad-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #a1a1aa;
}

.smartmag-ad-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 25px;
  font-weight: 900;
  color: #ffffff;
  margin: 4px 0 16px;
  letter-spacing: -0.01em;
}

.smartmag-ad-btn {
  display: inline-block;
  background: #ffffff;
  color: #18181b;
  font-family: 'Outfit', sans-serif;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 9px 18px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.smartmag-ad-btn:hover {
  background: #f4f4f5;
  transform: translateY(-1px);
}

/* Widget 2: Top Posts */
.top-posts-feed {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.top-post-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.top-post-thumb-box {
  width: 64px;
  height: 56px;
  border-radius: 8px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
  box-sizing: border-box;
}

.top-post-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.top-post-thumb-box .top-post-mini-artwork {
  font-size: 9px;
  font-weight: 800;
  color: #065f46;
  text-align: center;
  line-height: 1.15;
}

.top-post-thumb-box .top-post-mini-artwork span {
  font-size: 8px;
  font-weight: 500;
  color: #71717a;
}

.top-post-info-box {
  flex: 1;
  min-width: 0;
}

.top-post-title-link {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.top-post-title-link a {
  color: inherit;
  text-decoration: none;
}

.top-post-row:hover .top-post-title-link {
  color: var(--archive-burgundy);
}

.top-post-meta-row {
  font-size: 11px;
  color: #9ca3af;
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-post-views {
  color: var(--archive-flame);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Widget 3: Stay In Touch */
.stay-in-touch-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.social-stat-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-sizing: border-box;
}

.social-stat-item:hover {
  background: #fdf2f4;
  border-color: rgba(127, 48, 79, 0.3);
}

.social-stat-icon {
  font-size: 18px;
  width: 28px;
  flex-shrink: 0;
}

.social-stat-icon.icon-fb { color: #1877f2; }
.social-stat-icon.icon-yt { color: #ff0000; }
.social-stat-icon.icon-tt { color: #111827; }
.social-stat-icon.icon-pin { color: #e60023; }
.social-stat-icon.icon-x { color: #111827; }
.social-stat-icon.icon-ig { color: #e1306c; }

.social-stat-text {
  text-align: left;
  line-height: 1.15;
}

.social-stat-count {
  font-size: 12px;
  font-weight: 700;
  color: #111827;
}

.social-stat-label {
  font-size: 10px;
  color: #9ca3af;
}

/* Widget 4: Latest Reviews */
.latest-reviews-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.latest-review-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.review-card-media {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 8.5;
  background-color: #18181b;
}

.review-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.review-fav-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--archive-burgundy);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 700;
  padding: 2.5px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.review-score-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--archive-burgundy);
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.review-card-details {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.review-rank-digit {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 300;
  color: #d1d5db;
  line-height: 1;
  width: 18px;
  flex-shrink: 0;
}

.review-title-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #111827;
  line-height: 1.35;
  margin: 0 0 4px;
}

.review-title-heading a {
  color: inherit;
  text-decoration: none;
}

.latest-review-card:hover .review-title-heading {
  color: var(--archive-burgundy);
}

.review-meta-author-date {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
}

/* Widget 5: Subscribe to Updates */
.subscribe-card-widget {
  position: relative;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 34px 24px 24px;
  text-align: center;
  margin-top: 20px;
  box-sizing: border-box;
}

.subscribe-floating-icon {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--archive-burgundy);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(127, 48, 79, 0.28);
  font-size: 18px;
}

.subscribe-box-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  margin: 8px 0 6px;
}

.subscribe-box-desc {
  font-size: 12px;
  color: #71717a;
  line-height: 1.5;
  max-width: 260px;
  margin: 0 auto 18px;
}

.subscribe-action-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscribe-email-field {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  font-size: 12.5px;
  box-sizing: border-box;
  outline: none;
  font-family: inherit;
}

.subscribe-email-field:focus {
  border-color: var(--archive-burgundy);
  box-shadow: 0 0 0 2px rgba(127, 48, 79, 0.15);
}

.subscribe-submit-button {
  background: var(--archive-burgundy);
  color: #ffffff;
  border: none;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
}

.subscribe-submit-button:hover {
  background: var(--archive-burgundy-hover);
}

.subscribe-terms-agreement {
  font-size: 11px;
  color: #9ca3af;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
  cursor: pointer;
}

.subscribe-terms-agreement input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--archive-burgundy);
}
