/* ═══════════════════════════════════════════════════
   PAUL BECKER — RESOURCES (Agency Directory)
   Inherits tokens, header & footer from styles.css.
   Premium dark · glassmorphism · motion.
   ═══════════════════════════════════════════════════ */

.rsrc {
  --rsrc-line: hsl(0 0% 100% / 0.08);
  --rsrc-line-soft: hsl(0 0% 100% / 0.05);
  --rsrc-glass: hsl(240 6% 8% / 0.55);
  --rsrc-card: hsl(240 6% 9% / 0.6);
  display: block;
}

/* ─── HERO ─────────────────────────────────────── */
.rsrc-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(8rem, 16vh, 12rem) var(--page-pad) clamp(2.5rem, 6vh, 4rem);
  text-align: center;
  isolation: isolate;
}

.rsrc-hero__atmo {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 130%;
  z-index: -1;
  pointer-events: none;
}
.rsrc-hero__atmo span {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}
.rsrc-hero__atmo span:nth-child(1) {
  width: 46vw; height: 46vw; top: -12%; left: 8%;
  background: radial-gradient(circle, hsl(260 100% 60% / 0.32), transparent 70%);
  animation: rsrcDrift 22s var(--ease-cinematic, ease-in-out) infinite alternate;
}
.rsrc-hero__atmo span:nth-child(2) {
  width: 38vw; height: 38vw; top: -6%; right: 6%;
  background: radial-gradient(circle, hsl(280 80% 70% / 0.22), transparent 70%);
  animation: rsrcDrift 28s var(--ease-cinematic, ease-in-out) infinite alternate-reverse;
}
.rsrc-hero__atmo span:nth-child(3) {
  width: 30vw; height: 30vw; top: 18%; left: 42%;
  background: radial-gradient(circle, hsl(43 70% 55% / 0.10), transparent 70%);
  animation: rsrcDrift 32s ease-in-out infinite alternate;
}
@keyframes rsrcDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(3%, 4%, 0) scale(1.12); }
}

.rsrc-hero__inner { max-width: 880px; margin: 0 auto; }

.rsrc-hero__eyebrow {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--purple, hsl(260 100% 73%));
  margin-bottom: 1.25rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid hsl(260 100% 73% / 0.25);
  border-radius: 999px;
  background: hsl(260 100% 73% / 0.06);
}

.rsrc-hero__title {
  font-family: var(--font-display, 'Anton', sans-serif);
  font-weight: 400;
  font-size: clamp(2.8rem, 9vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0 0 1.25rem;
  background: linear-gradient(180deg, #fff 0%, #cfc7e6 60%, #9a90b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rsrc-hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-secondary, #9a9aa2);
  max-width: 620px;
  margin: 0 auto 1.5rem;
}

.rsrc-hero__meta {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary, #5a5a63);
}
.rsrc-hero__meta strong { color: var(--gold, #D4A853); font-weight: 600; }

/* Directory switcher (Dance ⇄ Acting) */
.rsrc-switch { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.75rem; flex-wrap: wrap; }
.rsrc-switch a { text-decoration: none; }

/* ─── CONTROL BAR (sticky glass) ───────────────── */
.rsrc-controls {
  position: sticky;
  top: 0;
  z-index: 500;
  padding: 1rem var(--page-pad);
  background: hsl(240 5% 5% / 0.72);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid var(--rsrc-line-soft);
}
.rsrc-controls__inner {
  max-width: var(--page-max, 1400px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

/* Search */
.rsrc-search {
  position: relative;
  display: flex;
  align-items: center;
}
.rsrc-search svg {
  position: absolute;
  left: 1rem;
  width: 18px; height: 18px;
  stroke: var(--text-secondary, #8a8a92);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}
.rsrc-search input {
  width: 100%;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  color: var(--text-primary, #f0f0f2);
  background: hsl(240 6% 10% / 0.8);
  border: 1px solid var(--rsrc-line);
  border-radius: 14px;
  padding: 0.85rem 1rem 0.85rem 2.85rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.rsrc-search input::placeholder { color: var(--text-tertiary, #6a6a73); }
.rsrc-search input:focus {
  outline: none;
  border-color: hsl(260 100% 73% / 0.5);
  background: hsl(240 6% 11% / 0.95);
  box-shadow: 0 0 0 4px hsl(260 100% 73% / 0.12);
}
.rsrc-search input::-webkit-search-cancel-button { filter: invert(0.6); cursor: pointer; }

/* Filter chip rows */
.rsrc-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem 2rem;
  align-items: flex-start;
}
.rsrc-filter-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  min-width: 0;
}
.rsrc-filter-group__label {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary, #5a5a63);
  margin-right: 0.15rem;
  white-space: nowrap;
}

.rsrc-chip {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary, #9a9aa2);
  background: hsl(0 0% 100% / 0.04);
  border: 1px solid var(--rsrc-line);
  border-radius: 999px;
  padding: 0.42rem 0.95rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s var(--ease-out-expo, ease);
  -webkit-tap-highlight-color: transparent;
}
.rsrc-chip:hover { color: var(--text-primary, #f0f0f2); border-color: hsl(0 0% 100% / 0.2); transform: translateY(-1px); }
.rsrc-chip.is-active {
  color: #fff;
  background: linear-gradient(180deg, hsl(260 100% 70%), hsl(260 80% 56%));
  border-color: hsl(260 100% 73% / 0.6);
  box-shadow: 0 6px 22px -8px hsl(260 100% 60% / 0.7);
}

/* ─── RESULTS ──────────────────────────────────── */
.rsrc-results {
  max-width: var(--page-max, 1400px);
  margin: 0 auto;
  padding: 2.25rem var(--page-pad) 1rem;
}
.rsrc-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.rsrc-results__count {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-secondary, #9a9aa2);
  margin: 0;
}
.rsrc-results__count :where(strong) { color: var(--text-primary); }
.rsrc-reset {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--rsrc-line);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.rsrc-reset:hover { color: var(--text-primary); border-color: hsl(0 0% 100% / 0.25); }

/* ─── GRID + CARDS ─────────────────────────────── */
.rsrc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 1.25rem;
  padding-bottom: 3rem;
}

.rsrc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--rsrc-card);
  border: 1px solid var(--rsrc-line);
  border-radius: 20px;
  overflow: hidden;
  /* reveal prep */
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.6s var(--ease-out-expo, cubic-bezier(0.16,1,0.3,1)),
              border-color 0.35s ease, box-shadow 0.35s ease;
  transition-delay: var(--d, 0ms);
}
.rsrc-card.is-in { opacity: 1; transform: translateY(0); }

/* top sheen */
.rsrc-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, hsl(0 0% 100% / 0.14), transparent);
}
.rsrc-card:hover {
  border-color: hsl(260 100% 73% / 0.38);
  box-shadow: 0 24px 60px -28px hsl(260 100% 55% / 0.55),
              0 0 0 1px hsl(260 100% 73% / 0.1) inset;
  transform: translateY(-5px);
}
.rsrc-card.is-in:hover { transform: translateY(-5px); }

.rsrc-card__top {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Logo tile — branded monogram fallback lives underneath the <img> */
.rsrc-card__logo {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(150deg, hsl(260 50% 30%), hsl(255 40% 16%));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.rsrc-card__logo::after {
  content: attr(data-mono);
  font-family: var(--font-display, 'Anton', sans-serif);
  font-size: 1.55rem;
  color: hsl(280 80% 86%);
  line-height: 1;
}
.rsrc-card__logo-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 8px;
  border-radius: 14px;
  transition: transform 0.4s var(--ease-out-expo, ease);
}
.rsrc-card:hover .rsrc-card__logo-img { transform: scale(1.06); }

.rsrc-card__head { min-width: 0; }
.rsrc-card__name {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary, #f0f0f2);
  margin: 0 0 0.28rem;
  line-height: 1.2;
}
.rsrc-card__loc {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--text-secondary, #8a8a92);
  margin: 0;
}
.rsrc-card__loc svg { width: 13px; height: 13px; margin-top: 2px; flex: 0 0 auto; stroke: var(--purple, hsl(260 100% 73%)); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: 0.8; }
.rsrc-card__loc span { line-height: 1.4; }

.rsrc-card__note {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--text-secondary, #9a9aa2);
  margin: -0.25rem 0 0;
}

.rsrc-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}
.rsrc-tag {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #9a9aa2);
  background: hsl(0 0% 100% / 0.05);
  border: 1px solid var(--rsrc-line-soft);
  border-radius: 6px;
  padding: 0.28rem 0.5rem;
}
.rsrc-tag.is-dance {
  color: hsl(280 90% 86%);
  background: hsl(260 100% 73% / 0.12);
  border-color: hsl(260 100% 73% / 0.3);
}
.rsrc-tag--more { color: var(--text-tertiary, #6a6a73); }
/* Union / franchise badge (SAG-AFTRA, ACTRA, MEAA) */
.rsrc-tag--union {
  color: var(--gold, #D4A853);
  background: hsl(43 60% 52% / 0.13);
  border-color: hsl(43 60% 52% / 0.42);
  font-weight: 600;
  letter-spacing: 0.06em;
}

/* Action row */
.rsrc-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rsrc-line-soft);
}
.rsrc-act {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-secondary, #b4b4bc);
  background: hsl(0 0% 100% / 0.045);
  border: 1px solid var(--rsrc-line);
  border-radius: 10px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.2s var(--ease-out-expo, ease);
  -webkit-tap-highlight-color: transparent;
}
.rsrc-act svg { width: 15px; height: 15px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rsrc-act:hover {
  color: var(--text-primary, #fff);
  background: hsl(0 0% 100% / 0.08);
  border-color: hsl(0 0% 100% / 0.22);
  transform: translateY(-1px);
}
.rsrc-act--web:hover {
  color: #fff;
  background: hsl(260 100% 73% / 0.16);
  border-color: hsl(260 100% 73% / 0.5);
}
.rsrc-act--call { font-variant-numeric: tabular-nums; }
.rsrc-act--call:hover {
  color: #fff;
  background: hsl(150 60% 45% / 0.14);
  border-color: hsl(150 60% 50% / 0.45);
}

/* Copy button + copied state */
.rsrc-act__ic { display: inline-flex; }
.rsrc-act__ic--check { display: none; }
.rsrc-act--copy.is-copied {
  color: hsl(150 70% 70%);
  background: hsl(150 60% 45% / 0.14);
  border-color: hsl(150 60% 50% / 0.45);
}
.rsrc-act--copy.is-copied .rsrc-act__ic--copy { display: none; }
.rsrc-act--copy.is-copied .rsrc-act__ic--check { display: inline-flex; }

/* ─── EMPTY STATE ──────────────────────────────── */
.rsrc-empty {
  text-align: center;
  padding: 4rem 1rem 5rem;
  color: var(--text-secondary, #9a9aa2);
}
.rsrc-empty__big {
  font-family: var(--font-display, 'Anton', sans-serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--text-primary, #f0f0f2);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* ─── DISCLAIMER / FOOTNOTE ────────────────────── */
.rsrc-note {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--page-pad) 5rem;
}
.rsrc-note__card {
  background: var(--rsrc-glass);
  border: 1px solid var(--rsrc-line-soft);
  border-radius: 18px;
  padding: 1.75rem 1.9rem;
  text-align: center;
}
.rsrc-note__card p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text-secondary, #8a8a92);
  margin: 0 0 0.6rem;
}
.rsrc-note__card p:last-child { margin-bottom: 0; }
.rsrc-note__card a { color: var(--purple, hsl(260 100% 73%)); border-bottom: 1px solid hsl(260 100% 73% / 0.3); transition: color 0.25s ease; }
.rsrc-note__card a:hover { color: var(--lavender, hsl(280 80% 82%)); }

/* ─── RESPONSIVE ───────────────────────────────── */
@media (max-width: 640px) {
  .rsrc-grid { grid-template-columns: 1fr; gap: 1rem; }
  .rsrc-controls { top: 0; padding: 0.85rem var(--page-pad); }
  /* horizontally scrollable chip rows on phones */
  .rsrc-filter-group {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    width: 100%;
  }
  .rsrc-filter-group::-webkit-scrollbar { display: none; }
  .rsrc-filter-group__label { position: sticky; left: 0; }
  .rsrc-card { padding: 1.25rem; }
  .rsrc-results { padding-top: 1.75rem; }
}

@media (max-width: 380px) {
  .rsrc-card__actions { gap: 0.4rem; }
  .rsrc-act { padding: 0.5rem 0.6rem; }
}

/* ─── REDUCED MOTION ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rsrc-card { opacity: 1; transform: none; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
  .rsrc-card:hover, .rsrc-card.is-in:hover { transform: none; }
  .rsrc-hero__atmo span { animation: none; }
  .rsrc-card__logo-img { transition: none; }
  .rsrc-chip, .rsrc-act { transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
}
