/*
 * Perky Resources — Frontend Styles
 *
 * Styles only the resource cards and grid inside .pr-resources.
 * Filter tabs/buttons are now built in Elementor — this file doesn't style
 * them, but it DOES hide cards when they have the .hidden class (set by JS).
 *
 * FONTS: By default, body text inherits from the host page (your theme or
 * Elementor typography). Card titles and the download button use
 * --pr-font-display. To override it site-wide, add this to your theme's
 * custom CSS or Elementor's Custom CSS:
 *
 *   .pr-resources { --pr-font-display: inherit; }
 *
 * Or to set a specific display font, e.g.:
 *
 *   .pr-resources { --pr-font-display: 'Your Font Name', sans-serif; }
 */
@font-face {
  font-family: 'Made Waffle Soft';
  src: url('https://perkypeople.co.nz/wp-content/uploads/2024/01/MADEWaffleSoft.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.pr-resources {
  --pr-pink: #eb459d;
  --pr-white: #ffffff;
  --pr-black: #000000;
  --pr-gray-text: #5f6567;
  --pr-font-display: 'Made Waffle Soft', 'Fredoka One', cursive, sans-serif;
  color: var(--pr-black);
  line-height: 1.6;
}

.pr-resources *,
.pr-resources *::before,
.pr-resources *::after {
  box-sizing: border-box;
}

/* ========== RESOURCE CARD GRID ========== */
.pr-resources .resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.pr-resources .resource-card {
  background: var(--pr-white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.35s ease;
  display: flex;
  flex-direction: column;
  animation: pr-fadeInUp 0.4s ease forwards;
}

.pr-resources .resource-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.pr-resources .resource-card.hidden {
  display: none;
}

.pr-resources .resource-card-accent {
  height: 6px;
  width: 100%;
}

.pr-resources .resource-card-body {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pr-resources .resource-card-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  color: var(--pr-white);
  margin-bottom: 14px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pr-resources .resource-card-body h3 {
  font-family: var(--pr-font-display);
  font-size: 19px;
  color: var(--pr-black);
  margin: 0 0 10px;
  line-height: 1.3;
  text-transform: uppercase;
}

.pr-resources .resource-card-body p {
  font-size: 14px;
  color: var(--pr-gray-text);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 18px;
}

.pr-resources .resource-card-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pr-font-display);
  font-size: 14px;
  color: var(--pr-pink);
  border: 2px solid var(--pr-pink);
  padding: 10px 24px;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  width: fit-content;
  border-radius: 0;
  text-decoration: none;
}

.pr-resources .resource-card-download:hover {
  background: var(--pr-pink);
  color: var(--pr-white);
}

.pr-resources .resource-card-download .arrow {
  transition: transform 0.2s;
}

.pr-resources .resource-card-download:hover .arrow {
  transform: translateX(3px);
}

/* Category color accents */
.pr-resources .tag-wellbeing,
.pr-resources .accent-wellbeing { background: #fee75c; }
.pr-resources .tag-wellbeing { color: var(--pr-black); }

.pr-resources .tag-recognition,
.pr-resources .accent-recognition { background: #418fde; }

.pr-resources .tag-lifecycle,
.pr-resources .accent-lifecycle { background: #5865f2; }

.pr-resources .tag-strategy,
.pr-resources .accent-strategy { background: #eb459e; }

.pr-resources .tag-playbooks,
.pr-resources .accent-playbooks { background: #f47327; }

/* ========== ANIMATION ========== */
@keyframes pr-fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .pr-resources .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pr-resources .resource-grid {
    grid-template-columns: 1fr;
  }
}
