/* YT Resources – YouTube index from Google Sheet */

.page-yt-resources .yt-hero .wrap {
  text-align: center;
  max-width: 100%;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.page-yt-resources .yt-hero .cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 14px;
  margin-top: 20px;
  max-width: 100%;
}
.page-yt-resources .yt-hero .cta-row .cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.page-yt-resources .yt-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.page-yt-resources .yt-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
.page-yt-resources .yt-hero .hero-lede {
  margin: 0;
  font-size: 0.9375rem;
  opacity: 0.95;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.page-yt-resources .yt-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.page-yt-resources .resources-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}
.page-yt-resources .resources-intro {
  padding: 32px 36px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, var(--brand-light) 0%, rgba(9, 135, 245, 0.06) 100%);
  border: 1px solid rgba(9, 135, 245, 0.2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--brand);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.page-yt-resources .resources-intro:hover {
  box-shadow: var(--shadow);
  border-left-color: var(--brand-2);
}
.page-yt-resources .resources-intro-title {
  margin: 0 0 16px;
  font-size: 1.625rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
body.dark .page-yt-resources .resources-intro {
  background: linear-gradient(135deg, rgba(9, 135, 245, 0.15) 0%, rgba(9, 135, 245, 0.05) 100%);
  border-color: rgba(9, 135, 245, 0.3);
}

.page-yt-resources .resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  grid-auto-rows: 1fr;
}
.page-yt-resources .resource-card {
  display: flex;
  flex-direction: column;
  min-height: 255px;
  height: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  color: inherit;
  text-decoration: none;
}
.page-yt-resources .resource-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
}
.page-yt-resources .resource-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--brand-light);
  color: var(--brand);
  margin-bottom: 16px;
}
.page-yt-resources .resource-card-title {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.page-yt-resources .resource-card p {
  margin: 0 0 14px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.page-yt-resources .resource-card .resource-link-text {
  margin-top: auto;
}
.page-yt-resources .resource-link-text {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  transition: color 0.2s ease;
}
.page-yt-resources .resource-card:hover .resource-card-title,
.page-yt-resources .resource-card:hover p,
.page-yt-resources .resource-card:hover .resource-link-text {
  color: #fff;
}
.page-yt-resources .resource-card:hover .resource-icon {
  background: #fff;
  color: var(--brand);
}
body.dark .page-yt-resources .resource-card:hover {
  border-color: rgba(255, 255, 255, 0.4);
}
body.dark .page-yt-resources .resource-icon {
  background: rgba(9, 135, 245, 0.2);
  color: var(--brand);
}

/* Hero CTA click: highlight card – blue background, white content, icon white bg + blue svg (JS adds .card-active) */
.page-yt-resources .resource-card.card-active {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}
.page-yt-resources .resource-card.card-active .resource-card-title,
.page-yt-resources .resource-card.card-active p,
.page-yt-resources .resource-card.card-active .resource-link-text {
  color: #fff !important;
}
.page-yt-resources .resource-card.card-active .resource-icon {
  background: #fff !important;
  color: var(--brand);
}
.page-yt-resources .resource-card.card-active .resource-icon svg {
  stroke: var(--brand) !important;
}

.page-yt-resources .yt-error,
.page-yt-resources .yt-empty {
  padding: 24px 28px;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%);
  border-left: 4px solid #ef4444;
}
.page-yt-resources .yt-error p,
.page-yt-resources .yt-empty p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}
body.dark .page-yt-resources .yt-error,
body.dark .page-yt-resources .yt-empty {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.06) 100%);
  border-left-color: rgba(239, 68, 68, 0.6);
}

.page-yt-resources .yt-filters {
  padding: 16px 20px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 16px;
  align-items: center;
}
.page-yt-resources .yt-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.page-yt-resources .yt-filters label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}
.page-yt-resources .yt-search-input {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text);
  width: 100%;
}
.page-yt-resources .yt-filters select {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  background: var(--bg-card);
  color: var(--text);
  width: 100%;
  min-width: 0;
}

.page-yt-resources .yt-table-wrap {
  padding: 0;
  overflow-x: auto;
}
.page-yt-resources .yt-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.page-yt-resources .yt-table thead tr:first-child th:first-child {
  border-top-left-radius: var(--radius);
}
.page-yt-resources .yt-table thead tr:first-child th:last-child {
  border-top-right-radius: var(--radius);
}
.page-yt-resources .yt-table th,
.page-yt-resources .yt-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.page-yt-resources .yt-table th {
  background: linear-gradient(135deg, var(--brand-light) 0%, #f0f9ff 100%);
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-top: 1px solid var(--border);
  white-space: nowrap;
}
body.dark .page-yt-resources .yt-table th {
  background: linear-gradient(135deg, rgba(9, 135, 245, 0.3) 0%, rgba(9, 135, 245, 0.15) 100%);
  color: #e5f3ff;
}
body.dark .page-yt-resources .yt-table tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.06);
}
body.dark .page-yt-resources .yt-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.12);
}
.page-yt-resources .yt-table td {
  color: var(--text-muted);
}
.page-yt-resources .yt-table td:first-child {
  font-weight: 600;
  color: var(--text);
}
.page-yt-resources .yt-table tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.04);
}
.page-yt-resources .yt-table tbody tr:hover {
  background: rgba(14, 165, 233, 0.04);
}
.page-yt-resources .yt-table th:nth-child(1),
.page-yt-resources .yt-table td:nth-child(1) {
  width: 16%;
}
.page-yt-resources .yt-table th:nth-child(2),
.page-yt-resources .yt-table td:nth-child(2) {
  width: 14%;
}
.page-yt-resources .yt-table th:nth-child(3),
.page-yt-resources .yt-table td:nth-child(3) {
  width: 55%;
}
.page-yt-resources .yt-table th:nth-child(4),
.page-yt-resources .yt-table td:nth-child(4) {
  width: 15%;
  text-align: center;
}
.page-yt-resources .yt-copy-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 24px;
  margin-top: 24px;
}
.page-yt-resources .yt-copy-main {
  background: linear-gradient(135deg, var(--brand-light) 0%, #f0f9ff 100%);
  border: 1px solid var(--border);
}
.page-yt-resources .yt-copy-note {
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.page-yt-resources .yt-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--brand);
  color: white !important;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-fast);
}
.page-yt-resources .yt-link:hover {
  background: var(--brand-2);
  transform: translateY(-1px);
}

.page-yt-resources .yt-subheading {
  margin: 8px 0 12px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}
.page-yt-resources .yt-copy p {
  font-size: 0.96rem;
  line-height: 1.8;
  color: var(--text-muted);
}
.page-yt-resources .yt-note-cta {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-light) 0%, #f0f9ff 100%);
  color: var(--text);
  font-size: 0.9rem;
}
.page-yt-resources .yt-note-cta .yt-link-inline {
  color: var(--brand);
  text-decoration: underline;
}
.page-yt-resources .yt-note-cta .yt-link-inline:hover {
  color: var(--brand-2);
}
.page-yt-resources .yt-link-inline {
  color: var(--brand);
  font-weight: 600;
  text-decoration: underline;
}
.page-yt-resources .yt-link-inline:hover {
  color: var(--brand-2);
}

/* Dark theme – copy cards */
body.dark .page-yt-resources .yt-copy-main {
  background: linear-gradient(135deg, rgba(9, 135, 245, 0.2) 0%, rgba(9, 135, 245, 0.08) 100%);
  border-color: rgba(9, 135, 245, 0.3);
}
body.dark .page-yt-resources .yt-copy-note {
  background: var(--bg-card);
  border-color: var(--border);
}
body.dark .page-yt-resources .yt-copy-main .yt-subheading,
body.dark .page-yt-resources .yt-copy-note .yt-subheading {
  color: var(--text);
}
body.dark .page-yt-resources .yt-copy-main p,
body.dark .page-yt-resources .yt-copy-note p {
  color: var(--text-muted);
}
body.dark .page-yt-resources .yt-note-cta {
  background: linear-gradient(135deg, rgba(9, 135, 245, 0.15) 0%, rgba(9, 135, 245, 0.06) 100%);
  border: 1px solid rgba(9, 135, 245, 0.25);
  color: var(--text);
}
body.dark .page-yt-resources .yt-note-cta .yt-link-inline {
  color: var(--brand);
}
body.dark .page-yt-resources .yt-filters {
  background: var(--bg-card);
  border-color: var(--border);
}
body.dark .page-yt-resources .yt-filters label {
  color: var(--text-muted);
}
body.dark .page-yt-resources .yt-search-input,
body.dark .page-yt-resources .yt-filters select {
  background: var(--bg-muted);
  border-color: var(--border);
  color: var(--text);
}

@media (max-width: 960px) {
  .page-yt-resources .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .page-yt-resources .yt-table th,
  .page-yt-resources .yt-table td {
    padding: 10px 12px;
    font-size: 13px;
  }
  .page-yt-resources .yt-filters {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .page-yt-resources .yt-hero .cta-row {
    gap: 8px 12px;
    margin-top: 16px;
  }
  .page-yt-resources .yt-hero .wrap {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 640px) {
  .page-yt-resources .yt-hero .cta-row {
    gap: 8px 10px;
    margin-top: 14px;
  }
  .page-yt-resources .yt-hero .wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .page-yt-resources .yt-hero .cta-row .cta {
    font-size: 0.875rem;
    padding: 10px 14px;
  }
  .page-yt-resources .yt-copy-grid {
    grid-template-columns: 1fr !important;
  }
  .page-yt-resources .resources-grid {
    grid-template-columns: 1fr;
  }
  .page-yt-resources .resources-content {
    padding: 28px 16px 48px;
  }
  .page-yt-resources .resources-intro {
    padding: 28px 24px;
  }
}
