/* ─────────────────────────────────────────
   SaaSBox — tools.css
───────────────────────────────────────── */

.hidden { display: none !important; }

/* ── HERO ── */
.tools-hero {
  padding: 120px 40px 60px;
  background-color: #0a0a0a;
  position: relative;
  overflow: hidden;
  text-align: center;
  border-bottom: 1px solid #1e1e1e;
}
.tools-hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #f5c400;
  margin-bottom: 16px;
}
.tools-hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(56px, 9vw, 120px);
  letter-spacing: 3px;
  color: #ede8dc;
  line-height: 0.9;
  margin-bottom: 20px;
}
.tools-hero-sub {
  font-size: 16px;
  font-weight: 500;
  color: #aaa;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
}
.tools-count-bar {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 24px;
  background-color: rgba(245,196,0,0.08);
  border: 1px solid rgba(245,196,0,0.2);
  font-family: 'DM Mono', monospace;
}
.tools-count-bar span:first-child {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  color: #f5c400;
  letter-spacing: 2px;
}
.tcb-label {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaa;
}

/* ── WRAP ── */
.tools-page-wrap {
  padding: 60px 40px 100px;
  background-color: #0a0a0a;
  min-height: 60vh;
}

/* ── FILTERS ── */
.tools-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.tf-btn {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: none;
  border: 1px solid #2a2a2a;
  color: #888;
  padding: 10px 18px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}
.tf-btn:hover { color: #ede8dc; border-color: #444; }
.tf-btn.on {
  background-color: #f5c400;
  color: #0a0a0a;
  border-color: #f5c400;
}

/* ── GRID ── */
.tools-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: #1e1e1e;
  border: 1px solid #1e1e1e;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── TOOL CARD (reuse style from main but with link) ── */
.tools-page-grid .tool-card {
  background-color: #0a0a0a;
  padding: 30px 26px 64px;
  position: relative;
  transition: background-color 0.25s;
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.tools-page-grid .tool-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background-color: #f5c400;
  transition: height 0.35s ease;
}
.tools-page-grid .tool-card:hover { background-color: #141414; }
.tools-page-grid .tool-card:hover::after { height: 100%; }

/* ── LOADING + EMPTY ── */
.tools-loading {
  text-align: center;
  padding: 60px 20px;
}
.loading-text {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #666;
}
.tools-empty {
  text-align: center;
  padding: 80px 20px;
  max-width: 520px;
  margin: 0 auto;
}
.te-icon {
  font-size: 48px;
  color: #f5c400;
  margin-bottom: 16px;
}
.tools-empty h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 36px;
  letter-spacing: 2px;
  color: #ede8dc;
  margin-bottom: 10px;
}
.tools-empty p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* ── LIGHT MODE ── */
body.light-mode .tools-hero { background-color: #f5f0e8; border-bottom-color: #ccc; }
body.light-mode .tools-hero-title { color: #111; }
body.light-mode .tools-hero-sub { color: #555; }
body.light-mode .tools-count-bar { background-color: rgba(245,196,0,0.15); }
body.light-mode .tcb-label { color: #555; }
body.light-mode .tools-page-wrap { background-color: #f5f0e8; }
body.light-mode .tools-page-grid { background-color: #ccc; border-color: #ccc; }
body.light-mode .tools-page-grid .tool-card { background-color: #ede8dc; }
body.light-mode .tools-page-grid .tool-card:hover { background-color: #e0dbd0; }
body.light-mode .tf-btn { color: #666; border-color: #ccc; }
body.light-mode .tf-btn:hover { color: #111; border-color: #888; }
body.light-mode .tools-empty h2 { color: #111; }
body.light-mode .tools-empty p { color: #555; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .tools-page-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-page-wrap { padding: 40px 20px 60px; }
}
@media (max-width: 600px) {
  .tools-page-grid { grid-template-columns: 1fr; }
  .tools-hero { padding: 100px 20px 50px; }
}
