/* ==========================================================================
   whitepapers.css — Whitepapers & Resources page-specific styles
   Depends on: tokens.css, global.css, components.css
   ========================================================================== */


/* ==========================================================================
   PAGE HEADER (.wp-header)
   ========================================================================== */

.wp-header {
  padding-top: calc(var(--sp-20) + 80px);
  padding-bottom: var(--sp-12);
  text-align: center;
}

.wp-header h1 {
  margin-bottom: var(--sp-3);
}

.wp-header p {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  max-width: 540px;
  margin-inline: auto;
}


/* ==========================================================================
   RESOURCE CARD (.wp-card)
   ========================================================================== */

.wp-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}

@media (min-width: 768px) {
  .wp-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) {
  .wp-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.wp-card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition:
    transform var(--duration-base) var(--ease-out),
    box-shadow var(--duration-base) var(--ease-out),
    border-color var(--duration-base) var(--ease-out);
}

.wp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.wp-card__cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background-color: var(--color-surface-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wp-card__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-out);
}

.wp-card:hover .wp-card__cover img {
  transform: scale(1.03);
}

.wp-card__badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-sm);
  background-color: rgba(15, 15, 15, 0.7);
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wp-card__body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: var(--sp-6);
}

.wp-card__body h3 {
  font-size: var(--fs-lg);
  margin-bottom: var(--sp-3);
}

.wp-card__desc {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--sp-6);
  flex-grow: 1;
}

.wp-card__action {
  margin-top: auto;
}


/* ==========================================================================
   EMPTY STATE (.wp-empty)
   ========================================================================== */

.wp-empty {
  text-align: center;
  padding: var(--sp-16) var(--sp-6);
  border-radius: var(--radius-lg);
  background-color: var(--color-surface-light);
  border: 1px dashed var(--color-border);
}

.wp-empty__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
  margin-bottom: var(--sp-6);
  border-radius: var(--radius-full);
  background-color: var(--color-white);
  color: var(--color-text-muted);
}

.wp-empty__icon svg {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wp-empty h3 {
  margin-bottom: var(--sp-2);
}

.wp-empty p {
  font-size: var(--fs-base);
  color: var(--color-text-muted);
  max-width: 400px;
  margin-inline: auto;
}


/* Section override — remove top padding (follows page header) */
.wp-listing-section {
  padding-top: 0;
}
