/*
 Theme Name: ToolCompareHub Child
 Theme URI:  https://toolcomparehub.com
 Description: Child theme for Astra used for programmatic SEO & tool comparison
 Author: ToolCompareHub
 Template: astra
 Version: 1.0
*/

/* =========================
   SINGLE TOOL PAGE
========================= */

.tool-specs {
  margin: 30px 0;
  border: 1px solid #eee;
  padding: 18px;
  background: #fff;
}

.tool-specs table {
  width: 100%;
  border-collapse: collapse;
}

.tool-specs th,
.tool-specs td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid #f2f2f2;
}

.tool-calculator {
  margin: 24px 0;
  padding: 16px;
  background: #fbfbfb;
  border: 1px solid #eee;
}

.tool-calculator input[type="number"] {
  width: 120px;
  padding: 6px;
  margin-right: 8px;
}

.related-tools {
  margin-top: 30px;
  padding: 12px;
  background: #fafafa;
  border: 1px solid #f1f1f1;
}

.tool-article .entry-content img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================
   ARCHIVE (TOOLS GRID)
========================= */

.tch-archive-header {
  margin-bottom: 18px;
}

.tch-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.tch-tool-card {
  border: 1px solid #eee;
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.tch-tool-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.tch-thumb {
  background: #f6f6f6;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tch-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.tch-card-body {
  padding: 12px;
}

.tch-title {
  font-size: 16px;
  margin: 0 0 6px;
}

.tch-brand,
.tch-model,
.tch-voltage,
.tch-capacity {
  font-size: 13px;
  margin: 4px 0;
  color: #666;
}

.tch-excerpt {
  margin-top: 8px;
  color: #444;
  font-size: 14px;
}

.tch-pagination {
  margin: 20px 0;
  text-align: center;
}

/* Make entire card clickable */
.tch-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* =========================
   MOBILE UX (SEO + ADSENSE)
========================= */

@media (max-width: 600px) {
  .tch-tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-calculator input[type="number"] {
    width: 100%;
  }
}
