/* ========================================
   LEARN INDEX STYLES
   Extends base.css + shared-shell.css
   ======================================== */

/* ----------------------------------------
   Hero (learn-specific variant)
   ---------------------------------------- */
.learn-hero {
  background: var(--deep-teal);
  padding: clamp(100px, 14vw, 148px) 0 clamp(64px, 8vw, 96px);
  position: relative;
  overflow: hidden;
}

.learn-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 65%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(26, 122, 109, 0.09) 0%, transparent 68%);
  pointer-events: none;
}

.learn-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.learn-hero .container { position: relative; z-index: 1; }

.learn-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-on-dark);
  margin-bottom: 20px;
}

.learn-hero-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--teal-on-dark);
  opacity: 0.6;
}

.learn-hero h1 {
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  color: #f0efeb;
  line-height: 1.12;
  margin-bottom: 20px;
  max-width: 680px;
}

.learn-hero h1 .accent {
  color: var(--teal-on-dark);
}

.learn-hero-sub {
  font-size: clamp(15px, 1.7vw, 17px);
  color: rgba(240, 239, 235, 0.68);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 44px;
}

.learn-hero-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.learn-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: rgba(26, 122, 109, 0.1);
  border: 1px solid rgba(92, 196, 181, 0.2);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(240, 239, 235, 0.8);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.learn-hero-pill:hover {
  background: rgba(26, 122, 109, 0.2);
  border-color: rgba(92, 196, 181, 0.4);
  color: #f0efeb;
}

.learn-hero-pill svg {
  width: 13px;
  height: 13px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* ----------------------------------------
   Category sections
   ---------------------------------------- */
.category-section {
  padding: var(--section-py) 0;
}

.category-section.section-white {
  background: #ffffff;
}

.category-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 36px;
}

.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--teal-light);
  border: 1px solid var(--teal-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cat-icon.amber {
  background: var(--amber-light);
  border-color: rgba(212, 147, 13, 0.2);
}

.cat-icon.amber svg { stroke: var(--amber); }

.cat-header-text h2 {
  margin-bottom: 6px;
  color: var(--near-black);
}

.cat-header-text p {
  font-size: 15px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.55;
}

.cat-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: rgba(0,0,0,0.05);
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 10px;
  display: inline-block;
}

/* ----------------------------------------
   Article cards
   ---------------------------------------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 22px 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  color: inherit;
  text-decoration: none;
}

.article-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 24px rgba(15, 61, 54, 0.08);
  transform: translateY(-2px);
  color: inherit;
}

.article-card.is-placeholder,
.tool-card.is-placeholder {
  border-style: dashed;
  background: linear-gradient(180deg, #fff 0%, #fbfbf9 100%);
  cursor: default;
}

.article-card.is-placeholder:hover,
.tool-card.is-placeholder:hover {
  transform: none;
}

.article-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.article-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-light);
  padding: 3px 10px;
  border-radius: 100px;
}

.article-badge.amber {
  color: var(--amber);
  background: var(--amber-light);
}

.article-read-time {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.article-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--near-black);
  line-height: 1.35;
  margin-bottom: 9px;
  letter-spacing: -0.01em;
}

.article-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.article-read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s;
  margin-top: auto;
}

.article-read-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.article-card:hover .article-read-link { gap: 9px; }
.article-card:hover .article-read-link svg { transform: translateX(2px); }

/* ----------------------------------------
   Tool profile cards
   ---------------------------------------- */
.tool-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 22px 22px 20px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  color: inherit;
  text-decoration: none;
}

.tool-card:hover {
  border-color: var(--amber);
  box-shadow: 0 4px 24px rgba(212, 147, 13, 0.1);
  transform: translateY(-2px);
  color: inherit;
}

.tool-card.is-placeholder:hover {
  border-color: rgba(212, 147, 13, 0.35);
  box-shadow: 0 4px 24px rgba(212, 147, 13, 0.06);
  color: inherit;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}

.tool-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.03em;
}

.tool-meta {
  flex: 1;
}

.tool-name {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--near-black);
  line-height: 1.2;
  margin-bottom: 2px;
}

.tool-vendor {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.tool-card p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

.tool-read-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--amber);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.15s;
  margin-top: auto;
}

.tool-read-link svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s;
}

.tool-card:hover .tool-read-link { gap: 9px; }
.tool-card:hover .tool-read-link svg { transform: translateX(2px); }

.article-card.is-placeholder .article-read-link,
.tool-card.is-placeholder .tool-read-link {
  color: var(--muted);
}

.article-card.is-placeholder:hover .article-read-link,
.article-card.is-placeholder:hover .article-read-link svg,
.tool-card.is-placeholder:hover .tool-read-link,
.tool-card.is-placeholder:hover .tool-read-link svg {
  gap: 5px;
  transform: none;
}

.placeholder-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.05);
  color: var(--muted);
  white-space: nowrap;
}

/* ----------------------------------------
   Section divider
   ---------------------------------------- */
.section-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}
