/* ── Tests section styles — reuses blog patterns ── */

/* Listing hero */
.tests-hero {
  padding: clamp(7rem, 14vh, 10rem) clamp(1rem, 5vw, 3rem) clamp(2rem, 5vw, 4rem);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.tests-hero h1 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.tests-hero p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Grid */
.tests-grid-section {
  padding: 0 clamp(1rem, 5vw, 3rem) clamp(4rem, 8vw, 7rem);
  max-width: 1200px;
  margin: 0 auto;
}
.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Card */
.test-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  padding: 1.75rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.test-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  opacity: 0;
  transition: opacity 0.3s;
}
.test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.12);
}
.test-card:hover::before { opacity: 1; }

.test-card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1;
}
.test-card-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.test-card h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 0.6rem;
}
.test-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}
.test-card-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}
.test-card-meta span:first-child::before { content: '⌛\00A0'; }
.test-card-meta .badge {
  color: var(--blue);
  font-weight: 700;
  background: rgba(81, 112, 255, 0.12);
  padding: 0.1em 0.5em;
  border-radius: 1em;
}
.test-card-meta .badge-pink {
  color: var(--pink);
  background: rgba(255, 102, 196, 0.12);
}

/* ── Test article page ── */
.article-breadcrumb {
  padding: 5.5rem clamp(1rem, 5vw, 3rem) 0;
  max-width: 760px;
  margin: 0 auto;
}
.article-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  transition: color 0.2s;
}
.article-breadcrumb a:hover { color: var(--text); }
.article-breadcrumb a svg { flex-shrink: 0; transition: transform 0.2s; }
.article-breadcrumb a:hover svg { transform: translateX(-3px); }

.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 5vw, 3rem) 5rem;
}
.article-header { margin-bottom: 2.5rem; }
.article-header .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.article-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--blue);
}
.article-title {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.article-meta {
  color: var(--text-muted);
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-meta .read-time::before { content: "⌛\00A0"; }

.article-body {
  line-height: 1.8;
  font-size: 1.05rem;
}
.article-body h2 {
  font-family: "Unbounded", sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  font-weight: 800;
  margin: 2.5rem 0 0.75rem;
  line-height: 1.3;
}
.article-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body p:last-child { margin-bottom: 0; }
.article-body a {
  color: var(--pink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-body a:hover { opacity: .8; }
.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.article-body li { margin-bottom: 0.4rem; }
.article-body blockquote {
  border-left: 3px solid var(--blue);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: rgba(81, 112, 255, 0.07);
  border-radius: 0 0.5rem 0.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}
.article-body blockquote p { margin-bottom: 0; }
.article-body hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
}

/* Result type cards */
.result-types {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.5rem 0;
}
.result-type-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
}
.result-type-card .icon { font-size: 1.5rem; margin-bottom: 0.4rem; }
.result-type-card h3 {
  font-size: 0.9rem;
  font-weight: 800;
  margin: 0 0 0.25rem;
}
.result-type-card p {
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.5;
  margin: 0;
}
.result-type-card.highlight {
  background: rgba(81, 112, 255, 0.08);
  border-color: rgba(81, 112, 255, 0.25);
}

/* Info box */
.info-box {
  background: rgba(81, 112, 255, 0.07);
  border: 1px solid rgba(81, 112, 255, 0.2);
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
}
.info-box p { margin-bottom: 0; color: var(--text-muted); font-size: 0.9rem; }
.info-box strong { color: var(--text); }

/* CTA */
.article-cta {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: 1.25rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.article-cta p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.article-cta a {
  display: inline-block;
  background: var(--grad);
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.75rem;
  border-radius: 2rem;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.article-cta a:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 24px rgba(81, 112, 255, 0.35);
}

/* ── Mobile ── */
@media (max-width: 600px) {
  .tests-grid { grid-template-columns: 1fr; }
  .result-types { grid-template-columns: 1fr; }
  .article-body { font-size: 1rem; }
  .article-cta { padding: 1.5rem 1.25rem; }
  .article-cta a { width: 100%; text-align: center; }
}
