/* tools.css — ListoolAI tools page */

.tools-page {
    position: relative;
    overflow: hidden;
}

/* HERO */

.tools-hero {
    position: relative;
    padding: 76px 0 34px;
    overflow: hidden;
}

.tools-hero::before {
    content: "";
    position: absolute;
    inset: -190px -90px auto;
    height: 620px;
    background:
        radial-gradient(circle at 24% 14%, rgba(96,165,250,.26), transparent 34%),
        radial-gradient(circle at 72% 8%, rgba(167,139,250,.18), transparent 30%),
        radial-gradient(circle at 50% 70%, rgba(20,184,166,.10), transparent 34%);
    pointer-events: none;
}

.tools-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, .72fr);
    gap: 28px;
    align-items: stretch;
}

.tools-hero-copy {
    min-width: 0;
}

.tools-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 13px;
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(96,165,250,.10);
    border: 1px solid rgba(96,165,250,.22);
    font-size: 13px;
    font-weight: 850;
}

.tools-hero h1 {
    max-width: 940px;
    margin: 18px 0 18px;
    font-size: clamp(42px, 6.4vw, 82px);
    line-height: .94;
    letter-spacing: -.07em;
    color: #fff;
}

.tools-hero p {
    max-width: 780px;
    margin: 0;
    color: #cbd5e1;
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.65;
}

.tools-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
}

/* PROMO */

.tools-promo-card {
    position: relative;
    overflow: hidden;
    padding: 28px;
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(96,165,250,.12), rgba(167,139,250,.10)),
        rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 26px 90px rgba(0,0,0,.28);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 330px;
}

.tools-promo-glow {
    position: absolute;
    inset: -80px -80px auto auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(99,102,241,.24);
    filter: blur(42px);
}

.tools-promo-badge {
    position: relative;
    width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(250,204,21,.10);
    border: 1px solid rgba(250,204,21,.22);
    color: #fde68a;
    font-size: 13px;
    font-weight: 850;
}

.tools-promo-card h2 {
    position: relative;
    margin: 18px 0 10px;
    color: #fff;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -.045em;
}

.tools-promo-card p {
    position: relative;
    margin: 0;
    color: #cbd5e1;
    line-height: 1.6;
}

.tools-promo-actions {
    position: relative;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 22px;
}

/* FILTERS */

.tools-filters {
    padding: 24px;
    border-radius: 30px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.035));
    border: 1px solid rgba(255,255,255,.10);
    box-shadow: 0 18px 58px rgba(0,0,0,.22);
}

.tools-filters-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.tools-filters-head h2,
.tools-results-head h2 {
    margin: 10px 0 0;
    color: #fff;
    font-size: 28px;
    line-height: 1.1;
    letter-spacing: -.045em;
}

.tools-count {
    margin: 0;
    color: #94a3b8;
    font-weight: 750;
}

.tools-filters-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr .75fr .85fr;
    gap: 14px;
}

.filter-block {
    min-width: 0;
}

.filter-label {
    display: block;
    margin-bottom: 8px;
    color: #bfdbfe;
    font-size: 13px;
    font-weight: 850;
}

.filter-input,
.filter-select {
    width: 100%;
    height: 52px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 16px;
    background: rgba(2,6,23,.58);
    color: #fff;
    padding: 0 14px;
    outline: none;
}

.filter-input:focus,
.filter-select:focus {
    border-color: rgba(96,165,250,.45);
    box-shadow: 0 0 0 4px rgba(96,165,250,.10);
}

.tools-filters-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.filter-checkboxes,
.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.chk {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    color: #dbeafe;
    font-weight: 800;
    cursor: pointer;
}

.chk input {
    accent-color: #6366f1;
}

/* RESULTS */

.tools-results-wrapper {
    padding: 44px 0 70px;
}

.tools-results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 22px;
}

.tools-sponsor-link {
    color: #fde68a;
    text-decoration: none;
    font-weight: 850;
}

.tools-sponsor-link:hover {
    color: #fff;
    text-decoration: none;
}

/* GRID */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* CARD FIX */

.tool-card {
    position: relative;
    display: flex !important;
    flex-direction: column !important;
    min-height: 360px;
    padding: 26px !important;
    border-radius: 28px !important;
    background:
        radial-gradient(circle at top left, rgba(96,165,250,.08), transparent 36%),
        linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.03)) !important;
    border: 1px solid rgba(255,255,255,.09) !important;
    box-shadow: 0 18px 54px rgba(0,0,0,.24);
    overflow: hidden !important;
    text-decoration: none !important;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(96,165,250,.32) !important;
    box-shadow: 0 30px 80px rgba(0,0,0,.34);
}

.tool-card,
.tool-card * {
    text-decoration: none !important;
}

.tool-card-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: inherit;
    flex: 1;
}

.tool-card-head {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* hide any accidental direct images outside logo */
.tool-card > img,
.tool-card-main > img,
.tool-card a > img {
    display: none !important;
}

/* LOGO */

.tool-logo {
    width: 64px !important;
    height: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    max-height: 64px !important;
    flex: 0 0 64px !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255,255,255,.055) !important;
    border: 1px solid rgba(255,255,255,.10) !important;
}

.tool-logo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    padding: 9px !important;
    display: block !important;
    border-radius: 16px !important;
}

.tool-logo-initials {
    color: #dbeafe !important;
    font-size: 20px !important;
    font-weight: 950 !important;
    letter-spacing: -.05em !important;
    background:
        radial-gradient(circle at top left, rgba(96,165,250,.24), transparent 48%),
        linear-gradient(135deg, rgba(30,41,59,.98), rgba(15,23,42,.98)) !important;
}

.tool-card-title-block {
    min-width: 0;
}

.tool-card h3 {
    margin: 0;
    color: #83b4ff !important;
    font-size: 25px;
    line-height: 1.14;
    font-weight: 900;
    letter-spacing: -.035em;
}

.tool-category {
    display: block;
    margin-top: 7px;
    color: #8fa7ca;
    font-size: 13px;
    font-weight: 750;
}

.tool-card p {
    margin: 0;
    color: #d9e3f6 !important;
    opacity: .88;
    font-size: 17px;
    line-height: 1.62;
}

.tool-card-footer {
    margin-top: 24px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.tool-badges {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}

.badge.verified {
    color: #bfdbfe;
}

.badge.vip {
    color: #fde68a;
}

.tool-card-cta {
    color: #bfdbfe;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
    opacity: .85;
}

.tool-card:hover .tool-card-cta {
    opacity: 1;
    color: #fff;
}

.boost-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(250,204,21,.12);
    border: 1px solid rgba(250,204,21,.22);
    color: #fde68a;
    font-size: 12px;
    font-weight: 900;
}

.tool-card.is-sponsored {
    border-color: rgba(250,204,21,.18) !important;
}

/* STATES */

.tools-loading,
.tools-empty,
.tools-error {
    padding: 32px;
    text-align: center;
    border-radius: 22px;
    background: rgba(15,23,42,.72);
    border: 1px solid rgba(255,255,255,.08);
    color: #9fb3d9;
}

.tools-error {
    color: #fca5a5;
    background: rgba(239,68,68,.10);
    border-color: rgba(239,68,68,.20);
}

/* PAGINATION */

.tools-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 38px;
}

.page-btn,
.tools-pagination button,
.tools-pagination a {
    min-width: 44px;
    height: 44px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.055);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.page-btn.active,
.tools-pagination .active,
.tools-pagination button.active {
    background: #6d5dfc;
    border-color: rgba(109,93,252,.65);
}

.page-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: default;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
    .tools-hero-grid {
        grid-template-columns: 1fr;
    }

    .tools-filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tools-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .tools-hero {
        padding-top: 54px;
    }

    .tools-hero h1 {
        font-size: clamp(40px, 13vw, 62px);
    }

    .tools-promo-card {
        min-height: 280px;
        padding: 24px;
    }

    .tools-filters {
        padding: 18px;
        border-radius: 24px;
    }

    .tools-filters-head,
    .tools-results-head {
        display: block;
    }

    .tools-count,
    .tools-sponsor-link {
        display: inline-block;
        margin-top: 12px;
    }

    .tools-filters-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .filter-actions,
    .filter-actions .btn {
        width: 100%;
    }

    .filter-actions .btn {
        justify-content: center;
    }

    .tool-card-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}