/* ===== Tools Home Page ===== */

.tools-home {
  max-width: 800px;
  margin: 0 auto;
}

/* ===== Hero Header ===== */
.tools-home-hero {
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.tools-home-hero h1 {
  font-family: var(--font-headline);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 400;
  margin: 0 0 1rem;
  color: var(--text-primary);
}

.tools-home-stat {
  font-family: var(--font-headline);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--accent-primary);
  line-height: 1;
  margin: 0 0 0.75rem;
}

.tools-home-subtitle {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

.tools-home-trust {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (max-width: 480px) {
  .tools-home-trust {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Tools grid */
.tools-home-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

/* Tool card */
.tools-home-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.tools-home-card:hover {
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: inherit;
}

/* Icon container */
.tools-home-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(124, 197, 174, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Info section */
.tools-home-info {
  flex: 1;
  min-width: 0;
}

.tools-home-info h2 {
  font-size: 1.125rem;
  margin: 0 0 0.25rem;
  color: var(--text-primary);
}

.tools-home-info h3 {
  font-size: 1rem;
  margin: 0 0 0.2rem;
  color: var(--text-primary);
}

.tools-home-info p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Arrow */
.tools-home-arrow {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
}

.tools-home-card:hover .tools-home-arrow {
  color: var(--accent-primary);
  transform: translateX(3px);
}

/* ===== Resources Section ===== */
.tools-home-section {
  margin-top: 1rem;
}

.tools-home-section > h2 {
  font-size: 1.25rem;
  margin: 0 0 0.25rem;
}

.tools-home-section > p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

/* Compact cards for resources */
.tools-home-card-compact {
  padding: 1rem 1.25rem;
}

.tools-home-card-compact .tools-home-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.tools-home-card-compact .tools-home-icon .lucide {
  width: 1.75rem;
  height: 1.75rem;
}

/* "View all" card accent */
.tools-home-card-all {
  background: rgba(124, 197, 174, 0.06);
  border-style: dashed;
}

.tools-home-card-all:hover {
  background: rgba(124, 197, 174, 0.1);
}

/* ===== Light Theme ===== */
[data-theme="light"] .tools-home-icon {
  background: rgba(124, 197, 174, 0.1);
}

[data-theme="light"] .tools-home-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ===== Mobile ===== */
@media (max-width: 480px) {
  .tools-home-card {
    padding: 1rem;
    gap: 1rem;
  }

  .tools-home-icon {
    width: 48px;
    height: 48px;
  }

  .tools-home-info h2 {
    font-size: 1rem;
  }

  .tools-home-arrow {
    display: none;
  }
}
