/* ===================== */
/* RESOURCES PAGE        */
/* ===================== */

/* Hero */
.res-hero {
  padding: 2.5rem 0 1.5rem;
  position: relative;
  z-index: 1;
}

.res-hero-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.6rem;
  line-height: 1.15;
}

.res-hero-subtitle {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0 0 1.5rem;
  max-width: 640px;
}

/* Hero Row Layout */
.res-hero-row {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.res-hero-left {
  flex: 1;
  min-width: 0;
}

/* Quiz Card in Hero */
.res-hero-quiz-card {
  flex-shrink: 0;
  width: 260px;
  background: white;
  border: 1.5px solid var(--purple-200, #ecdff7);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 4px 20px rgba(44,27,78,0.07);
  margin-top: 0.25rem;
}
.res-hero-quiz-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(139,92,246,0.16);
  border-color: var(--purple-400, #a78bfa);
}
.res-hero-quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #F5A623;
  color: var(--purple-900, #2d1b4e);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 0.75rem;
}
.res-hero-quiz-badge i {
  font-size: 0.6rem;
}
.res-hero-quiz-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--charcoal, #1a1a2e);
  line-height: 1.2;
  margin: 0 0 0.5rem;
}
.res-hero-quiz-text {
  font-size: 0.8125rem;
  color: var(--gray-600, #6b7280);
  line-height: 1.55;
  margin: 0 0 0.875rem;
}
.res-hero-quiz-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--purple-500, #8b5cf6);
  transition: gap 0.2s ease;
}
.res-hero-quiz-card:hover .res-hero-quiz-cta {
  gap: 10px;
}

/* Dark mode */
[data-theme="dark"] .res-hero-quiz-card {
  background: #1e1930;
  border-color: rgba(233,224,245,0.15);
}
[data-theme="dark"] .res-hero-quiz-card:hover {
  border-color: var(--purple-500, #8b5cf6);
  box-shadow: 0 8px 32px rgba(139,92,246,0.2);
}
[data-theme="dark"] .res-hero-quiz-title {
  color: #ececf1;
}
[data-theme="dark"] .res-hero-quiz-text {
  color: #a1a1aa;
}

/* ===================== */
/* DARK MODE             */
/* ===================== */
[data-theme="dark"] .res-hero-title {
  color: #ececf1;
}
[data-theme="dark"] .res-hero-subtitle {
  color: #a1a1aa;
}

/* Filter buttons */
[data-theme="dark"] .res-filter-btn {
  background: #1e1930;
  border-color: rgba(233,224,245,0.15);
  color: #a1a1aa;
}
[data-theme="dark"] .res-filter-btn:hover {
  border-color: var(--purple-400, #a78bfa);
  color: #d4d4d8;
}
[data-theme="dark"] .res-filter-btn.active {
  background: var(--purple-600);
  color: #fff;
  border-color: var(--purple-600);
}

/* Tool cards */
[data-theme="dark"] .res-tool-card {
  background: #1e1930;
  border-color: rgba(233,224,245,0.1);
}
[data-theme="dark"] .res-tool-card:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 8px 24px -8px rgba(139,92,246,0.15);
}
[data-theme="dark"] .res-tool-card h3 {
  color: #ececf1;
}
[data-theme="dark"] .res-tool-card p {
  color: #a1a1aa;
}
[data-theme="dark"] .res-tool-icon {
  background: rgba(139,92,246,0.12);
  color: #b89ef0;
}
[data-theme="dark"] .res-tool-badge {
  background: #22c55e;
  color: #fff;
}

/* Guide cards */
[data-theme="dark"] .res-guide-card {
  background: #1e1930;
  border-color: rgba(233,224,245,0.1);
}
[data-theme="dark"] .res-guide-card:hover {
  border-color: rgba(139,92,246,0.3);
  box-shadow: 0 6px 18px -6px rgba(139,92,246,0.15);
}
[data-theme="dark"] .res-guide-card h3 {
  color: #ececf1;
}
[data-theme="dark"] .res-guide-card p {
  color: #a1a1aa;
}
[data-theme="dark"] .res-guide-read {
  color: #b89ef0;
}
[data-theme="dark"] .res-guide-icon {
  background: rgba(139,92,246,0.12);
  color: #b89ef0;
}
[data-theme="dark"] .res-guide-tag {
  background: #2a2340;
  color: #a1a1aa;
}
[data-theme="dark"] .res-guide-tag.seller-tag {
  background: rgba(139,92,246,0.15);
  color: #b89ef0;
}
[data-theme="dark"] .res-guide-tag.buyer-tag {
  background: rgba(34,197,94,0.12);
  color: #4ade80;
}
[data-theme="dark"] .res-guide-tag.pro-tag {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
}

/* Pricing cards */
[data-theme="dark"] .res-pricing-card {
  background: #1e1930;
  border-color: rgba(233,224,245,0.12);
}
[data-theme="dark"] .res-pricing-card.featured {
  border-color: var(--purple-500, #8b5cf6);
  box-shadow: 0 8px 24px -6px rgba(139,92,246,0.2);
}
[data-theme="dark"] .res-pricing-card h3 {
  color: #ececf1;
}
[data-theme="dark"] .res-pricing-tier {
  color: #b89ef0;
}
[data-theme="dark"] .res-pricing-for {
  color: #a1a1aa;
}
[data-theme="dark"] .res-pricing-price {
  color: #b89ef0;
}
[data-theme="dark"] .res-pricing-price span {
  color: #a1a1aa;
}
[data-theme="dark"] .res-pricing-monthly {
  color: #a1a1aa;
  border-bottom-color: rgba(233,224,245,0.1);
}
[data-theme="dark"] .res-pricing-features li {
  color: #d4d4d8;
}
[data-theme="dark"] .res-pricing-features li::before {
  color: #4ade80;
}
[data-theme="dark"] .res-pricing-note {
  color: #a1a1aa;
}
[data-theme="dark"] .res-pricing-note a {
  color: #b89ef0;
}

/* Glossary */
[data-theme="dark"] .res-glossary-item {
  background: #1e1930;
  border-color: rgba(233,224,245,0.08);
}
[data-theme="dark"] .res-glossary-item:hover {
  border-color: rgba(139,92,246,0.2);
}
[data-theme="dark"] .res-glossary-q h3 {
  color: #ececf1;
}
[data-theme="dark"] .res-glossary-a-inner p {
  color: #a1a1aa;
}
[data-theme="dark"] .res-glossary-item .faq-toggle {
  background: rgba(139,92,246,0.15);
  color: #b89ef0;
}
[data-theme="dark"] .res-glossary-item.open .faq-toggle {
  background: var(--purple-600);
  color: #fff;
}

/* Blog cards on resources page */
[data-theme="dark"] .res-blog-section .blog-card {
  background: #1e1930;
  border-color: rgba(233,224,245,0.1);
}
[data-theme="dark"] .res-blog-section .blog-card:hover {
  border-color: rgba(139,92,246,0.3);
}
[data-theme="dark"] .res-blog-section .blog-card h3 {
  color: #ececf1;
}
[data-theme="dark"] .res-blog-section .blog-card p {
  color: #a1a1aa;
}
[data-theme="dark"] .res-blog-section .blog-card-meta {
  color: #b89ef0;
}
[data-theme="dark"] .res-blog-section .blog-read-more {
  color: #b89ef0;
}

/* Tool CTA */
[data-theme="dark"] .res-tool-cta {
  color: #b89ef0;
}

/* Guide card inline-styled icons — override hardcoded light backgrounds */
[data-theme="dark"] .res-guide-card .res-guide-icon[style*="dbeafe"] {
  background: rgba(59,130,246,0.12) !important;
  color: #60a5fa !important;
}
[data-theme="dark"] .res-guide-card .res-guide-icon[style*="dcfce7"] {
  background: rgba(34,197,94,0.12) !important;
  color: #4ade80 !important;
}

/* Persona Filter Tabs */
.res-persona-filter {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.res-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-600);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 2rem;
  cursor: pointer;
  transition: all 0.2s;
}

.res-filter-btn i {
  font-size: 0.78rem;
}

.res-filter-btn:hover {
  border-color: var(--purple-300);
  color: var(--purple-600);
}

.res-filter-btn.active {
  background: var(--purple-600);
  color: var(--white);
  border-color: var(--purple-600);
}

/* Sections */
.res-section {
  padding: 4rem 0;
  position: relative;
  z-index: 1;
}

.res-guides-section {
  background: var(--white);
}

.res-pricing-section {
  background: var(--cream);
}

.res-glossary-section {
  background: var(--white);
}

.res-blog-section {
  background: var(--cream);
}

/* ===================== */
/* TOOLS GRID            */
/* ===================== */
.res-tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.res-tool-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid rgba(45, 27, 78, 0.06);
  border-radius: 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s;
  position: relative;
  cursor: pointer;
}

.res-tool-card:hover {
  border-color: rgba(139, 92, 246, 0.15);
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.1);
  transform: translateY(-3px);
}

.res-tool-live {
  border-color: rgba(139, 92, 246, 0.12);
}

.res-tool-soon {
  opacity: 0.75;
}

.res-tool-soon:hover {
  opacity: 1;
}

.res-tool-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.2rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 2rem;
  background: var(--green-500);
  color: var(--white);
}

.res-tool-badge.soon {
  background: var(--gray-200);
  color: var(--gray-600);
}

.res-tool-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.res-tool-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.5rem;
}

.res-tool-card p {
  font-size: 0.88rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.res-tool-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple-600);
}

.res-tool-cta i {
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.res-tool-card:hover .res-tool-cta i {
  transform: translateX(3px);
}

/* ===================== */
/* GUIDES GRID           */
/* ===================== */
.res-guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.res-guide-card {
  padding: 1.5rem;
  background: var(--cream);
  border: 1px solid rgba(45, 27, 78, 0.06);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.25s;
}

.res-guide-card:hover {
  border-color: rgba(139, 92, 246, 0.15);
  box-shadow: 0 6px 18px -6px rgba(139, 92, 246, 0.1);
  transform: translateY(-2px);
}

.res-guide-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.res-guide-tag {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 2rem;
  background: var(--gray-200);
  color: var(--gray-600);
  margin-bottom: 0.5rem;
}

.res-guide-tag.seller-tag {
  background: linear-gradient(135deg, var(--purple-50), var(--purple-100));
  color: var(--purple-700);
}

.res-guide-tag.buyer-tag {
  background: var(--green-100);
  color: var(--green-500);
}

.res-guide-tag.pro-tag {
  background: #dbeafe;
  color: #3b82f6;
}

.res-guide-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.4rem;
  line-height: 1.3;
}

.res-guide-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin: 0;
}

a.res-guide-card {
  text-decoration: none;
  color: inherit;
}

.res-guide-live {
  border-color: rgba(139, 92, 246, 0.12);
}

.res-guide-read {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-600);
}

.res-guide-read i {
  font-size: 0.68rem;
  transition: transform 0.2s;
}

.res-guide-card:hover .res-guide-read i {
  transform: translateX(3px);
}

/* ===================== */
/* PRICING CARDS         */
/* ===================== */
.res-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.res-pricing-card {
  padding: 2rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
}

.res-pricing-card.featured {
  border-color: var(--purple-500);
  box-shadow: 0 8px 24px -6px rgba(139, 92, 246, 0.15);
  position: relative;
}

.res-pricing-tier {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--purple-600);
  margin-bottom: 0.35rem;
}

.res-pricing-card h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--charcoal);
  margin: 0 0 0.25rem;
}

.res-pricing-for {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin: 0 0 1.25rem;
}

.res-pricing-price {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--purple-700);
  margin-bottom: 0.15rem;
}

.res-pricing-price span {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gray-500);
}

.res-pricing-monthly {
  font-size: 0.82rem;
  color: var(--gray-500);
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}

.res-pricing-features {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.res-pricing-features li {
  position: relative;
  padding-left: 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
  margin-bottom: 0.45rem;
}

.res-pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--green-500);
  font-weight: 700;
  font-size: 0.75rem;
}

.res-pricing-note {
  font-size: 0.82rem;
  color: var(--gray-500);
  text-align: center;
}

.res-pricing-note a {
  color: var(--purple-600);
  text-decoration: underline;
}

/* ===================== */
/* GLOSSARY              */
/* ===================== */
.res-glossary-grid {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.res-glossary-item {
  background: var(--cream);
  border-radius: 0.75rem;
  border: 1px solid rgba(45, 27, 78, 0.06);
  overflow: hidden;
  transition: border-color 0.2s;
}

.res-glossary-item:hover {
  border-color: rgba(139, 92, 246, 0.12);
}

.res-glossary-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.85rem 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  gap: 1rem;
}

.res-glossary-q h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--charcoal);
  margin: 0;
}

.res-glossary-item .faq-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--purple-100);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.62rem;
  transition: transform 0.3s, background 0.3s;
}

.res-glossary-item.open .faq-toggle {
  transform: rotate(180deg);
  background: var(--purple-600);
  color: var(--white);
}

.res-glossary-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.res-glossary-item.open .res-glossary-a {
  max-height: 200px;
}

.res-glossary-a-inner {
  padding: 0 1.25rem 0.85rem;
}

.res-glossary-a-inner p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin: 0;
}

/* ===================== */
/* CTA                   */
/* ===================== */
.res-cta-section {
  background: linear-gradient(160deg, var(--purple-900), var(--purple-700));
  color: var(--white);
  padding: 5rem 0;
}

.res-cta-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.res-cta-inner h2 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  margin: 0 0 0.6rem;
}

.res-cta-inner p {
  font-size: 0.95rem;
  opacity: 0.85;
  margin: 0 0 1.75rem;
  line-height: 1.65;
}

.res-cta-buttons {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.res-cta-section .btn-primary {
  background: var(--white);
  color: var(--purple-800);
  box-shadow: none;
}

.res-cta-section .btn-primary:hover {
  background: var(--purple-50);
}

.res-cta-section .btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.25);
}

.res-cta-section .btn-secondary:hover {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

/* ===================== */
/* TABLET                */
/* ===================== */
@media (min-width: 769px) and (max-width: 1024px) {
  .res-tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .res-tools-grid .res-tool-card:first-child {
    grid-column: 1 / -1;
  }

  .res-pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .res-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================== */
/* MOBILE                */
/* ===================== */
@media (max-width: 768px) {
  .res-hero {
    padding: 1.5rem 0 1rem;
  }

  .res-hero-row {
    flex-direction: column;
    gap: 1.25rem;
  }

  .res-hero-quiz-card {
    width: 100%;
  }

  .res-hero-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .res-hero-subtitle {
    font-size: 0.92rem;
  }

  .res-persona-filter {
    gap: 0.35rem;
  }

  .res-filter-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .res-section {
    padding: 3rem 0;
  }

  .res-tools-grid {
    grid-template-columns: 1fr;
  }

  .res-guides-grid {
    grid-template-columns: 1fr;
  }

  .res-pricing-grid {
    grid-template-columns: 1fr;
  }

  .res-pricing-card {
    padding: 1.5rem;
  }

  .res-glossary-q {
    padding: 0.75rem 1rem;
  }

  .res-glossary-q h3 {
    font-size: 0.85rem;
  }

  .res-glossary-a-inner {
    padding: 0 1rem 0.75rem;
  }

  .res-cta-section {
    padding: 3.5rem 0;
  }

  .res-cta-buttons {
    flex-direction: column;
  }

  .res-cta-inner h2 {
    font-size: 1.35rem;
  }
}
