/* ============================================
   ItsFreelancer — Free Tools Page CSS
   ============================================ */

/* ---- HERO ---- */
.itf-tools-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #0f172a 100%);
  color: #fff;
  padding: 60px 0 40px;
  text-align: center;
}

.itf-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.itf-hero-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: #f1f5f9;
  line-height: 1.2;
}

.itf-hero-sub {
  font-size: 1.05rem;
  color: #94a3b8;
  max-width: 700px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.itf-hero-sub strong {
  color: #38bdf8;
}

/* ---- SEARCH ---- */
.itf-tools-search {
  display: flex;
  gap: 10px;
  max-width: 580px;
  margin: 0 auto 20px;
}

.itf-search-input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 10px;
  border: none;
  font-size: 0.97rem;
  outline: none;
  background: #fff;
  color: #1e293b;
}

.itf-search-btn {
  padding: 14px 22px;
  background: #38bdf8;
  color: #0f172a;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.itf-search-btn:hover {
  background: #0ea5e9;
  color: #fff;
}

/* ---- STATS ---- */
.itf-tools-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #64748b;
}

.itf-tools-stats span {
  background: rgba(255,255,255,0.05);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  color: #94a3b8;
}

/* ---- FILTER TABS ---- */
.itf-tools-filter {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.itf-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.itf-tab {
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: #fff;
  color: #475569;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.itf-tab:hover,
.itf-tab.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* ---- TOOLS GRID SECTION ---- */
.itf-tools-grid-section {
  background: #f1f5f9;
  padding: 40px 0 60px;
}

/* ---- CATEGORY BLOCK ---- */
.itf-cat-block {
  margin-bottom: 50px;
}

.itf-cat-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.itf-cat-count {
  font-size: 0.78rem;
  background: #e2e8f0;
  color: #475569;
  padding: 3px 10px;
  border-radius: 20px;
  font-weight: 500;
}

.itf-cat-desc {
  color: #64748b;
  font-size: 0.93rem;
  margin-bottom: 20px;
  line-height: 1.6;
}

/* ---- TOOLS GRID ---- */
.itf-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

/* ---- TOOL CARD ---- */
.itf-tool-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e2e8f0;
  transition: all 0.22s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.itf-tool-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  border-color: #38bdf8;
}

.itf-tool-icon {
  font-size: 2rem;
  line-height: 1;
}

.itf-tool-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.itf-tool-desc {
  font-size: 0.84rem;
  color: #64748b;
  margin: 0;
  flex: 1;
  line-height: 1.5;
}

.itf-tool-badge {
  font-size: 0.8rem;
  color: #0ea5e9;
  font-weight: 600;
  margin-top: 4px;
}

/* ---- NO RESULTS ---- */
.itf-no-results {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 1rem;
}

/* ---- SEO TEXT SECTION ---- */
.itf-seo-text {
  background: #fff;
  padding: 50px 0;
  border-top: 1px solid #e2e8f0;
}

.itf-seo-text h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 14px;
}

.itf-seo-text p {
  color: #475569;
  font-size: 0.97rem;
  line-height: 1.8;
  max-width: 860px;
}

.itf-seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.itf-seo-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 22px;
  border: 1px solid #e2e8f0;
}

.itf-seo-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.itf-seo-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.6;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 640px) {
  .itf-hero-title { font-size: 1.6rem; }
  .itf-tools-search { flex-direction: column; }
  .itf-tools-grid { grid-template-columns: 1fr 1fr; }
  .itf-tools-stats { gap: 10px; }
}

@media (max-width: 400px) {
  .itf-tools-grid { grid-template-columns: 1fr; }
}
