/* =============================================
   Tools Content Styles
   Common typography, features, How-to steps, and FAQs 
   for the descriptive content below the main tool interface.
   ============================================= */

/* ── Content Container & General Typography ── */
.tc-container {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.tc-section {
  position: relative;
}

.tc-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 24px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.tc-title i {
  color: var(--primary);
  opacity: 0.9;
}

.tc-desc {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.tc-desc p {
  margin-bottom: 16px;
}
.tc-desc p:last-child {
  margin-bottom: 0;
}

/* ── Features Grid ── */
.tc-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.tc-feature-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.tc-feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(37, 99, 235, 0.2);
  box-shadow: var(--shadow);
}

.tc-feature-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-glow);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

.tc-feature-card:hover .tc-feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.tc-feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text);
}

.tc-feature-card p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── How It Works (Steps) ── */
.tc-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tc-step-item {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  gap: 20px;
  transition: all var(--transition);
}

.tc-step-item:hover {
  border-color: rgba(37, 99, 235, 0.15);
  background: var(--surface-hover);
}

.tc-step-num {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.tc-step-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tc-step-content h4 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.tc-step-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ── Content Box (Pros / Checklists) ── */
.tc-pros-box {
  background: rgba(22, 163, 74, 0.04);
  border: 1px solid rgba(22, 163, 74, 0.15);
  border-radius: var(--radius-xl);
  padding: 32px;
}

[data-theme="dark"] .tc-pros-box {
  background: rgba(22, 163, 74, 0.08);
  border-color: rgba(22, 163, 74, 0.2);
}

.tc-pros-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tc-pros-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.tc-pros-list li i {
  color: var(--success);
  font-size: 18px;
  margin-top: 4px;
}

/* ── FAQ Section ── */
.tc-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tc-faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
}

.tc-faq-item:hover {
  border-color: rgba(37, 99, 235, 0.2);
}

.tc-faq-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
}

.tc-faq-icon {
  color: var(--text-muted);
  transition: transform 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-alt);
}

.tc-faq-item.active .tc-faq-header {
  color: var(--primary);
}

.tc-faq-item.active .tc-faq-icon {
  transform: rotate(45deg);
  background: var(--primary-glow);
  color: var(--primary);
}

.tc-faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.tc-faq-item.active .tc-faq-body {
  grid-template-rows: 1fr;
}

.tc-faq-content {
  overflow: hidden;
}

.tc-faq-content p {
  padding: 0 24px 24px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .tc-container {
    gap: 40px;
    margin-top: 40px;
  }

  .tc-title {
    padding-left: 4px;
    font-size: 24px;
  }

  .tc-feature-card {
    padding: 24px;
  }

  .tc-step-item {
    flex-direction: column;
    gap: 16px;
    padding: 20px;
  }

  .tc-pros-box {
    padding: 24px;
  }

  .tc-section {
    padding: 0 12px;
  }
}
