/* ============================================================
   TOOLS INDEX PAGE STYLING
   ============================================================ */

/* Breadcrumb navigation */
.breadcrumb-line {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.breadcrumb-line a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-line a:hover {
  color: var(--accent);
}

.bc-sep {
  color: var(--border-bright);
  margin: 0 8px;
}

/* Section rule with centered text */
.section-rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 48px 0 24px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-rule::before {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

.section-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border));
}

/* Tool cards grid */
.tl-section {
  padding: 48px 0 32px 0;
}

.tl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
  auto-rows: max-content;
}

.tl-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-bright);
  padding: 22px 24px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s ease;
}

.tl-card:hover {
  background: var(--surface2);
  border-top-color: var(--accent);
}

.tl-card-featured {
  border-top-color: var(--accent2);
}

.tl-card-featured:hover {
  border-top-color: var(--accent2);
}

.tl-card-top {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.tl-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.tl-card:hover .tl-num {
  color: var(--accent);
}

.tl-card-featured:hover .tl-num {
  color: var(--accent2);
}

.tl-badge {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
}

.tl-badge.live {
  color: var(--accent3);
  border: 1px solid rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.05);
}

.tl-badge .blink {
  display: inline-block;
  margin-right: 4px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.tl-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text);
  transition: color 0.2s ease;
}

.tl-card:hover .tl-title {
  color: var(--accent);
}

.tl-card-featured:hover .tl-title {
  color: var(--accent2);
}

.tl-desc {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 16px;
  flex: 1;
}

.tl-params {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tl-param {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  border: 1px solid var(--border-bright);
  padding: 3px 8px;
  border-radius: 2px;
}

.tl-output {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  padding-top: 12px;
  border-top: 1px solid var(--border);
  transition: color 0.2s ease;
}

.tl-card:hover .tl-output {
  color: var(--text-mid);
}

/* Comparison table section */
.compare-section {
  padding: 0 0 48px 0;
}

.compare-table-wrap {
  overflow-x: auto;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.compare-table th {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: 10px 16px;
  text-align: left;
  background: var(--surface2);
  border-bottom: 1px solid var(--border-bright);
  border-right: 1px solid var(--border);
}

.compare-table th:last-child {
  border-right: none;
}

.compare-table td {
  padding: 11px 16px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: middle;
}

.compare-table td:last-child {
  border-right: none;
}

.compare-table td:first-child {
  font-weight: 500;
  color: var(--text);
}

.compare-table a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.compare-table a:hover {
  color: var(--accent);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover td {
  background: var(--surface2);
}

.featured-row td {
  background: rgba(123, 97, 255, 0.04);
  border-bottom-color: rgba(123, 97, 255, 0.2);
}

.featured-row:hover td {
  background: rgba(123, 97, 255, 0.07);
}

.featured-row td:first-child a {
  color: var(--accent2);
}

.featured-row td:first-child a:hover {
  color: var(--accent2);
  opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .tl-grid {
    grid-template-columns: 1fr;
  }

  .tl-section {
    padding: 36px 0 24px 0;
  }

  .section-rule {
    margin: 36px 0 16px 0;
  }
}

@media (max-width: 640px) {
  .tl-card {
    padding: 16px 18px;
  }

  .tl-title {
    font-size: 15px;
  }

  .tl-desc {
    font-size: 12px;
  }

  .tl-params {
    gap: 4px;
  }

  .compare-table {
    font-size: 12px;
  }

  .compare-table th,
  .compare-table td {
    padding: 8px 12px;
  }

  .compare-table th {
    font-size: 9px;
  }

  .compare-table td {
    font-size: 11px;
  }
}
