/* ================================
   tools.css — tools.html only
   Uses existing CSS variables from layout.css / global.css
================================ */

/* --------------------------------
   HERO BADGE
-------------------------------- */

.tc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}

.tc-badge svg {
  width: 14px;
  height: 14px;
}

/* --------------------------------
   STATS STRIP
-------------------------------- */

.tc-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.tc-stat {
  padding: 28px 16px;
  border-right: 1px solid var(--color-border);
}

.tc-stat:last-child {
  border-right: none;
}

.tc-stat-number {
  font-family: 'Raleway', sans-serif;
  font-size: 40px;
  font-weight: 900;
  color: var(--color-primary-strong);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.tc-stat-label {
  font-size: 13px;
  color: var(--brand-muted);
  font-weight: 500;
}

@media (max-width: 640px) {
  .tc-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .tc-stat:nth-child(2) {
    border-right: none;
  }
  .tc-stat:nth-child(1),
  .tc-stat:nth-child(2) {
    border-bottom: 1px solid var(--color-border);
  }
}

/* --------------------------------
   CATEGORY LABEL
-------------------------------- */

.tc-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary-strong);
  margin-bottom: 10px;
}

.tc-cat svg {
  width: 13px;
  height: 13px;
}

/* --------------------------------
   TOOL CARDS GRID
-------------------------------- */

.tc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.tc-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--brand-border);
  border-radius: 14px;
  text-decoration: none;
  color: var(--brand-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tc-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(79, 95, 224, 0.13);
  border-color: var(--brand-blue-1);
}

.tc-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--color-primary-soft);
  color: var(--color-primary-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-card-icon svg {
  width: 22px;
  height: 22px;
}

.tc-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-text);
  margin: 0;
  line-height: 1.3;
}

.tc-card-desc {
  font-size: 13px;
  color: var(--brand-muted);
  line-height: 1.55;
  margin: 0;
  flex: 1;
}

.tc-card-cta {
  font-size: 13px;
  color: var(--color-primary-strong);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.tc-card:hover .tc-card-cta {
  opacity: 1;
}

@media (max-width: 900px) {
  .tc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .tc-grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------
   FEATURED TOOL CARD (transcription)
-------------------------------- */

.tc-featured {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px;
  background: var(--color-primary-soft);
  border: 1px solid rgba(108, 123, 255, 0.22);
  border-radius: 16px;
  text-decoration: none;
  color: var(--brand-text);
  margin-top: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tc-featured:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(79, 95, 224, 0.15);
}

.tc-featured-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--brand-blue-2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tc-featured-icon svg {
  width: 28px;
  height: 28px;
}

.tc-featured-body {
  flex: 1;
  min-width: 0;
}

.tc-featured-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-blue-2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.tc-featured-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-text);
  margin: 0 0 8px;
  line-height: 1.3;
}

.tc-featured-desc {
  font-size: 14px;
  color: var(--brand-muted);
  line-height: 1.6;
  margin: 0;
}

.tc-featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary-strong);
}

@media (max-width: 520px) {
  .tc-featured {
    flex-direction: column;
  }
}
