/* ==========================================================
   WeWillExplain — Archive / Posts Page Styles
   Enqueued via functions.php as 'wwe-archive'
   ========================================================== */

/* ----------------------------------------------------------
   FULL-WIDTH BREAKOUT (same pattern as front-page.css)
---------------------------------------------------------- */
body.blog #primary,
body.blog #content,
body.blog .site-content,
body.blog .ast-container,
body.blog .entry-content,
body.archive #primary,
body.archive #content,
body.archive .site-content,
body.archive .ast-container,
body.archive .entry-content,
body.archive .ast-article-single,
body.blog .ast-article-single {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

#wwa-archive {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ----------------------------------------------------------
   HERO
---------------------------------------------------------- */
.wwa-hero {
  position: relative;
  background: #1C1409;
  background-image:
    radial-gradient(ellipse at 60% 0%, #3A2800 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, #2A1D00 0%, transparent 50%);
  padding: 80px 24px 110px;
  text-align: center;
  overflow: hidden;
  font-family: 'Nunito', sans-serif;
}

/* Subtle dot texture */
.wwa-hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.wwa-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 700px;
  margin: 0 auto;
}

.wwa-hero-badge {
  display: inline-block;
  background: rgba(212,160,84,0.15);
  color: #D4A054;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  border: 1px solid rgba(212,160,84,0.3);
  margin-bottom: 28px;
}

.wwa-hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(32px, 5.5vw, 58px);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.18;
  margin: 0 0 20px;
  letter-spacing: -0.01em;
}

.wwa-hero h1 em {
  font-style: italic;
  color: #D4A054;
}

.wwa-hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: #A89878;
  line-height: 1.75;
  margin: 0 auto 44px;
  max-width: 520px;
}

/* Stats row */
.wwa-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.wwa-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 36px;
}

.wwa-stat-num {
  font-family: 'Lora', serif;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  color: #D4A054;
  line-height: 1;
  margin-bottom: 6px;
}

.wwa-stat-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B5C3E;
}

.wwa-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  flex-shrink: 0;
}

/* Wave bottom edge */
.wwa-hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}

.wwa-hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

@media (max-width: 580px) {
  .wwa-hero { padding: 60px 16px 100px; }
  .wwa-stat { padding: 0 20px; }
  .wwa-hero-stats { gap: 8px; }
}


/* ----------------------------------------------------------
   CONTENT AREA
---------------------------------------------------------- */
.wwa-content {
  background: #F5F0E8;
  padding: 48px 0 80px;
  font-family: 'Nunito', sans-serif;
}

.wwa-content-inner {
  max-width: 100%;
  padding: 0 90px;
  margin: 0 auto;
  box-sizing: border-box;
}


/* ----------------------------------------------------------
   FILTER TABS
---------------------------------------------------------- */
.wwa-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.wwa-filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #7A6A52;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-right: 4px;
}

.wwa-filter-btn {
  display: inline-block;
  padding: 7px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid #D4C4A8;
  color: #5A4A2E;
  background: transparent;
  transition: all 0.2s;
  line-height: 1;
}

.wwa-filter-btn:hover {
  border-color: #D4A054;
  color: #D4A054;
  background: #FDF0D5;
}

.wwa-filter-btn.active {
  background: #D4A054;
  border-color: #D4A054;
  color: #fff;
}


/* ----------------------------------------------------------
   RESULT COUNT
---------------------------------------------------------- */
.wwa-count {
  font-size: 14px;
  color: #8A7A62;
  margin: 0 0 28px;
}

.wwa-count strong {
  color: #3A2C1A;
}


/* ----------------------------------------------------------
   POSTS GRID — 4 columns
---------------------------------------------------------- */
.wwa-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 1200px) {
  .wwa-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  .wwa-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .wwa-grid { grid-template-columns: 1fr; }
}


/* ----------------------------------------------------------
   CARD
---------------------------------------------------------- */
.wwa-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #EDE5D8;
}

.wwa-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.10);
}

/* Image wrapper */
.wwa-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/11;
  background: #F0EBE0;
  text-decoration: none;
  flex-shrink: 0;
}

.wwa-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.wwa-card:hover .wwa-card-img-wrap img {
  transform: scale(1.05);
}

.wwa-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  background: linear-gradient(135deg, #F5EDD8 0%, #E8D9BC 100%);
}

/* Category badge on image */
.wwa-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #D4A054;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  pointer-events: none;
}

/* Card body */
.wwa-card-body {
  padding: 18px 18px 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wwa-card-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 12px;
}

.wwa-card-title a {
  color: #1A1209;
  text-decoration: underline;
  text-decoration-color: transparent;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.wwa-card-title a:hover {
  color: #D4A054;
  text-decoration-color: #D4A054;
}

.wwa-card-read-more {
  display: inline-block;
  color: #D4A054;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 14px;
}

.wwa-card-read-more:hover {
  text-decoration: underline;
  color: #BF8B3A;
}

.wwa-card-meta {
  margin-top: auto;
  font-size: 12px;
  color: #9A8A72;
  border-top: 1px solid #F0EBE0;
  padding-top: 12px;
}


/* ----------------------------------------------------------
   PAGINATION
---------------------------------------------------------- */
.wwa-pagination {
  margin-top: 56px;
  display: flex;
  justify-content: center;
}

.wwa-pagination .page-numbers {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.wwa-pagination .page-numbers li {
  display: inline-block;
}

.wwa-pagination .page-numbers a,
.wwa-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 8px;
  font-family: 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  border: 2px solid #D4C4A8;
  color: #5A4A2E;
  background: #fff;
}

.wwa-pagination .page-numbers a:hover {
  background: #FDF0D5;
  border-color: #D4A054;
  color: #D4A054;
}

.wwa-pagination .page-numbers .current {
  background: #D4A054;
  border-color: #D4A054;
  color: #fff;
}

.wwa-pagination .page-numbers .dots {
  border-color: transparent;
  background: transparent;
  color: #9A8A72;
}


/* ----------------------------------------------------------
   NO POSTS
---------------------------------------------------------- */
.wwa-no-posts {
  text-align: center;
  padding: 60px 20px;
  color: #8A7A62;
  font-size: 16px;
  font-family: 'Nunito', sans-serif;
}