/* ============================================================
   Resource Center — blog-style SEO pages
   Card grid for landing, post typography for individual pages
   ============================================================ */

/* ---- Shared ---- */
.resource-landing-page,
.resource-post-page {
  background: var(--white);
}

/* ============================================================
   Resource Landing Page — Hero
   ============================================================ */

.resource-landing-hero {
  padding: 120px 32px 56px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  text-align: center;
}

.resource-landing-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.resource-landing-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand, #4f46e5);
  margin-bottom: 20px;
}

.resource-landing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand, #4f46e5);
}

.resource-landing-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin: 0 0 20px;
}

.resource-landing-accent {
  background: var(--grad-brand, linear-gradient(135deg, #4f46e5, #7c3aed, #a855f7));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.resource-landing-subtitle {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   Resource Landing Page — Card Grid
   ============================================================ */

.resource-card-grid {
  padding: 56px 32px 80px;
}

.resource-card-grid-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.resource-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  background: var(--white);
  text-decoration: none;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.15s;
}

.resource-card:hover {
  border-color: var(--brand, #4f46e5);
  box-shadow: var(--shadow-md, 0 8px 24px rgba(31, 31, 46, 0.08), 0 2px 6px rgba(31, 31, 46, 0.04));
  transform: translateY(-2px);
}

.resource-card-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin: 0 0 10px;
}

.resource-card-desc {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.resource-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--muted);
}

.resource-card-author,
.resource-card-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.resource-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.resource-card-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  background: var(--brand-light, rgba(79, 70, 229, 0.08));
  color: var(--brand, #4f46e5);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ---- Empty State ---- */

.resource-landing-empty {
  padding: 80px 32px;
  text-align: center;
}

.resource-landing-empty-inner {
  max-width: 480px;
  margin: 0 auto;
}

.resource-landing-empty p {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ---- Responsive ---- */

@media (max-width: 640px) {
  .resource-landing-hero {
    padding: 100px 20px 40px;
  }

  .resource-card-grid {
    padding: 40px 20px 64px;
  }

  .resource-card-grid-inner {
    grid-template-columns: 1fr;
  }

  .resource-card {
    padding: 22px;
  }
}

/* ============================================================
   Individual Resource Post
   ============================================================ */

.resource-post-header {
  padding: 120px 32px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.resource-post-header-inner {
  max-width: 760px;
  margin: 0 auto;
}

.resource-post-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.15s;
}

.resource-post-back:hover {
  color: var(--brand);
}

.resource-post-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
  margin: 0 0 16px;
}

.resource-post-description {
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 20px;
}

.resource-post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.resource-post-author,
.resource-post-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.resource-post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.resource-post-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--radius, 9999px);
  background: var(--brand-light, rgba(79,70,229,0.08));
  color: var(--brand, #7c3aed);
  font-size: 0.8rem;
  font-weight: 500;
}

/* ---- Post Content ---- */
.resource-post-content {
  padding: 48px 32px 64px;
}

.resource-post-content-inner {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
}

.resource-post-content-inner h1,
.resource-post-content-inner h2,
.resource-post-content-inner h3,
.resource-post-content-inner h4 {
  color: var(--text);
  margin-top: 2em;
  margin-bottom: 0.5em;
  line-height: 1.3;
}

.resource-post-content-inner h2 { font-size: 1.5rem; font-weight: 600; }
.resource-post-content-inner h3 { font-size: 1.25rem; font-weight: 600; }

.resource-post-content-inner p {
  margin: 0 0 1.25em;
}

.resource-post-content-inner ul,
.resource-post-content-inner ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.resource-post-content-inner li {
  margin-bottom: 0.35em;
}

.resource-post-content-inner a {
  color: var(--brand, #7c3aed);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.resource-post-content-inner a:hover {
  color: var(--brand-dark, #5b21b6);
}

.resource-post-content-inner code {
  background: var(--bg, #f5f5f5);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.resource-post-content-inner pre {
  background: var(--bg, #1e1e2e);
  color: var(--white, #e2e8f0);
  padding: 20px 24px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 0 0 1.5em;
  font-size: 0.9rem;
  line-height: 1.6;
}

.resource-post-content-inner pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.resource-post-content-inner blockquote {
  border-left: 3px solid var(--brand, #7c3aed);
  margin: 0 0 1.25em;
  padding: 0.5em 1.25em;
  color: var(--muted);
  font-style: italic;
}

.resource-post-content-inner table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5em;
}

.resource-post-content-inner th,
.resource-post-content-inner td {
  padding: 10px 14px;
  border: 1px solid var(--border);
  text-align: left;
}

.resource-post-content-inner th {
  background: var(--bg, #f5f5f5);
  font-weight: 600;
}

.resource-post-content-inner img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1em 0;
}

/* ---- Post Footer ---- */
.resource-post-footer {
  padding: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.resource-post-footer-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.15s;
}

.resource-post-footer-back:hover {
  color: var(--brand);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .resource-post-header {
    padding: 100px 20px 32px;
  }

  .resource-post-content {
    padding: 32px 20px 48px;
  }

  .resource-post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* ===================== Dark Mode ===================== */

/* Landing page */
[data-theme="dark"] .resource-landing-hero {
  background: #0f0f1a;
  border-bottom-color: #374151;
}

[data-theme="dark"] .resource-landing-title {
  color: #e5e7eb;
}

[data-theme="dark"] .resource-landing-subtitle {
  color: #9ca3af;
}

[data-theme="dark"] .resource-landing-empty p {
  color: #9ca3af;
}

/* Card grid */
[data-theme="dark"] .resource-card {
  background: #1f2937;
  border-color: #374151;
}

[data-theme="dark"] .resource-card:hover {
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(99,102,241,0.2);
}

[data-theme="dark"] .resource-card-title {
  color: #e5e7eb;
}

[data-theme="dark"] .resource-card-desc {
  color: #9ca3af;
}

[data-theme="dark"] .resource-card-meta {
  color: #9ca3af;
}

[data-theme="dark"] .resource-card-tag {
  background: var(--brand-light);
  color: var(--brand);
}

/* Post page */
[data-theme="dark"] .resource-post-header {
  background: #0f0f1a;
  border-bottom-color: #374151;
}

[data-theme="dark"] .resource-post-back {
  color: #9ca3af;
}

[data-theme="dark"] .resource-post-title {
  color: #e5e7eb;
}

[data-theme="dark"] .resource-post-description {
  color: #9ca3af;
}

[data-theme="dark"] .resource-post-meta {
  color: #9ca3af;
}

[data-theme="dark"] .resource-post-tag {
  background: var(--brand-light);
  color: var(--brand);
}

/* Post content */
[data-theme="dark"] .resource-post-content {
  background: #0f0f1a;
}

[data-theme="dark"] .resource-post-content-inner {
  color: #e5e7eb;
}

[data-theme="dark"] .resource-post-content-inner h1,
[data-theme="dark"] .resource-post-content-inner h2,
[data-theme="dark"] .resource-post-content-inner h3,
[data-theme="dark"] .resource-post-content-inner h4 {
  color: #f3f4f6;
}

[data-theme="dark"] .resource-post-content-inner p {
  color: #d1d5db;
}

[data-theme="dark"] .resource-post-content-inner a {
  color: var(--brand);
}

[data-theme="dark"] .resource-post-content-inner a:hover {
  color: #818cf8;
}

[data-theme="dark"] .resource-post-content-inner code {
  background: #374151;
  color: #e5e7eb;
}

[data-theme="dark"] .resource-post-content-inner pre {
  background: #111827;
  border: 1px solid #374151;
}

[data-theme="dark"] .resource-post-content-inner blockquote {
  border-left-color: var(--brand);
  color: #9ca3af;
}

[data-theme="dark"] .resource-post-content-inner th {
  background: #1f2937;
  color: #e5e7eb;
}

[data-theme="dark"] .resource-post-content-inner td {
  border-color: #374151;
  color: #d1d5db;
}

[data-theme="dark"] .resource-post-content-inner th {
  border-color: #374151;
}

/* Post footer */
[data-theme="dark"] .resource-post-footer {
  border-top-color: #374151;
}

[data-theme="dark"] .resource-post-footer-back {
  color: #9ca3af;
}
