/* ============================================================
   MEN MATTERS — Content Hub CSS
   Add <link rel="stylesheet" href="css/content-hub.css"> to <head>
   ============================================================ */

/* ── SECTION WRAPPER ─────────────────────────────────────── */
.content-hub {
  padding: var(--space-xl, 7rem) 0;
  background: var(--smoke, #f9f6f2);
}

/* ── HEADER ──────────────────────────────────────────────── */
.hub__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.hub__title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--off-black, #111);
  margin: 0.5rem 0 0.5rem;
  line-height: 1.1;
}
.hub__title em { font-style: italic; color: var(--teal, #147065); }
.hub__subtitle {
  font-size: 0.95rem;
  color: var(--muted, #777);
  max-width: 520px;
  line-height: 1.65;
}

/* ── FILTER BAR ──────────────────────────────────────────── */
.hub__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border, #d8d8d8);
}
.hub__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1rem;
  border-radius: 100px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid var(--border, #d8d8d8);
  color: var(--muted, #777);
  background: var(--white, #fff);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.hub__filter:hover {
  border-color: var(--teal, #147065);
  color: var(--teal, #147065);
  background: var(--teal-pale, #eef7f5);
}
.hub__filter.active {
  background: var(--teal, #147065);
  color: #fff;
  border-color: var(--teal, #147065);
}
.hub__filter.active svg * { stroke: #fff; }
.hub__filter--premium { border-color: #c8963e; color: #c8963e; }
.hub__filter--premium:hover,
.hub__filter--premium.active {
  background: #c8963e;
  color: #fff;
  border-color: #c8963e;
}
.hub__filter--premium.active svg * { stroke: #fff; }

/* ── CONTENT GRID ────────────────────────────────────────── */
.hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
}

/* ── CONTENT CARD ────────────────────────────────────────── */
.hub-card {
  background: var(--white, #fff);
  border-radius: 10px;
  border: 1px solid var(--border, #e8e5e0);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}
.hub-card:hover {
  transform: translateY(-3px);
  border-color: var(--teal, #147065);
  box-shadow: 0 12px 32px rgba(20, 112, 101, 0.1);
}

/* Card thumbnail */
.hub-card__thumb {
  position: relative;
  height: 160px;
  overflow: hidden;
  flex-shrink: 0;
}
.hub-card__thumb-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 20px, rgba(255,255,255,1) 20px, rgba(255,255,255,1) 21px),
    repeating-linear-gradient(90deg, transparent, transparent 20px, rgba(255,255,255,1) 20px, rgba(255,255,255,1) 21px);
}
.hub-card__thumb-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.07);
  text-align: center;
  line-height: 1.2;
  padding: 1rem;
  z-index: 1;
}

/* Badge row */
.hub-card__badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 5px;
  z-index: 3;
}
.hub-card__badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 100px;
}
.hub-card__badge--video {
  background: rgba(17,17,17,0.85);
  color: #1a8a7a;
  border: 1px solid #1a8a7a;
}
.hub-card__badge--article {
  background: rgba(17,17,17,0.7);
  color: rgba(255,255,255,0.7);
}
.hub-card__badge--premium {
  background: #c8963e;
  color: #fff;
}

/* Play button */
.hub-card__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.hub-card__play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background 0.15s ease;
}
.hub-card:hover .hub-card__play-circle {
  background: rgba(255,255,255,0.2);
  transform: scale(1.08);
}
.hub-card__play-tri {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 14px solid rgba(255,255,255,0.95);
  margin-left: 3px;
}

/* Premium overlay */
.hub-card__premium-overlay {
  position: absolute;
  inset: 0;
  background: rgba(17,17,17,0.78);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  z-index: 4;
}
.hub-card__premium-icon {
  width: 32px;
  height: 32px;
  color: rgba(200, 150, 62, 0.9);
}
.hub-card__premium-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c8963e;
}

/* Card body */
.hub-card__body { padding: 1rem 1.1rem 1.1rem; flex: 1; display: flex; flex-direction: column; }
.hub-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.hub-card__cat {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hub-card__time { font-size: 0.65rem; color: var(--muted, #aaa); }
.hub-card__title {
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--off-black, #111);
  line-height: 1.4;
  margin-bottom: 0.75rem;
  flex: 1;
}
.hub-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}
.hub-card__read { font-size: 0.72rem; color: var(--muted, #999); }
.hub-card__lock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #c8963e;
}
.hub-card__lock svg { width: 11px; height: 11px; }

/* ── LOAD MORE ───────────────────────────────────────────── */
.hub__load-more { text-align: center; margin-bottom: 3rem; }
.hub__load-btn {
  background: var(--off-black, #111);
  color: var(--white, #fff);
  border: none;
  padding: 0.875rem 2rem;
  border-radius: 3px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.hub__load-btn:hover { background: #2a2a2a; }
.hub__load-btn:disabled {
  background: var(--border, #ddd);
  color: var(--muted, #999);
  cursor: default;
}

/* ── PREMIUM CTA STRIP ───────────────────────────────────── */
.hub__premium-cta {
  background: var(--off-black, #111);
  border-radius: 12px;
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.hub__premium-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--white, #fff);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.hub__premium-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.7;
  max-width: 480px;
}
.hub__premium-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}
.hub__perk {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
}
.hub__perk-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal, #147065);
  flex-shrink: 0;
}
.hub__premium-cta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}
.hub__premium-btn {
  display: inline-block;
  background: #c8963e;
  color: var(--white, #fff);
  padding: 0.875rem 1.75rem;
  border-radius: 3px;
  font-family: var(--font-body, 'DM Sans', sans-serif);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
  border: none;
  text-decoration: none;
}
.hub__premium-btn:hover { background: #b07d2e; }
.hub__premium-price {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.25);
  text-align: right;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.hub__empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem;
  color: var(--muted, #999);
  font-size: 0.9rem;
}

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hub__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hub__header { flex-direction: column; align-items: flex-start; }
  .hub__grid { grid-template-columns: 1fr; }
  .hub__premium-cta { flex-direction: column; }
  .hub__premium-cta-right { align-items: flex-start; }
  .hub__filters { gap: 6px; }
}
@media (max-width: 480px) {
  .hub__filter { font-size: 0.72rem; padding: 0.4rem 0.75rem; }
}
