/* =========================================
   ALL TOOLS PAGE SPECIFIC CSS
   ========================================= */

/* Hero (shorter version of the homepage hero) */
.tools-hero {
    padding: 3.5rem 0 2.5rem;
    background: radial-gradient(circle at center, var(--bg-light) 0%, var(--bg-main) 100%);
    border-bottom: 1px solid var(--border-color);
}

.tools-hero .gradient-text {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.tools-hero .hero-subtext {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* Interface Wrapper */
.tools-interface-wrapper {
    padding: 3rem 0 5rem;
    background-color: var(--bg-main);
}
.tools-interface-wrapper h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
@media (min-width: 768px) {
  .tools-interface-wrapper h2 {
      text-align: center;
  }
}
/* Search Bar */
.tools-search-bar {
    max-width: 640px;
    margin: 0 auto 1.5rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
    pointer-events: none;
}

.tools-search-bar input[type="text"] {
    width: 100%;
    padding: 0.9rem 1rem 0.9rem 2.75rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-light);
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 0.95rem;
    transition: all var(--transition-speed);
}

.tools-search-bar input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-main);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.clear-search-btn {
    position: absolute;
    right: 0.6rem;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-speed);
}

.clear-search-btn:hover {
    background: var(--primary);
    color: #fff;
}

/* Category Filter Tabs (page-scoped names to avoid clashing with the
   homepage's own .filter-tab script wiring — this page has its own JS) */
.tools-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.tools-filter-tab {
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tools-filter-tab:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.tools-filter-tab.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

/* Results Count */
.results-count {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2rem;
}

/* Grid card visibility (shared .tool-card-col / .tool-card styles already
   live in assets/css/style.css) */
.tool-card-col.filtered-out {
    display: none;
}

/* Empty State */
.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 4rem 1rem;
    color: var(--text-muted);
}

.no-results svg {
    color: var(--border-color);
    margin-bottom: 0.5rem;
}

.no-results h3 {
    color: var(--text-main);
    font-size: 1.2rem;
    font-weight: 700;
}

.no-results p {
    margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
    .tools-hero .gradient-text {
        font-size: 3rem;
    }
}
