@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Outfit", sans-serif;
    background: #ffffff;
    color: #ffffff;
}

/* Breadcrumb bar — matches sub-nav: white on black, pipe separator */
.page-breadcrumb {
    background: #ffffff;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 3rem 10px 0.75rem;
}

.page-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 0.9375rem;
    line-height: 1.4;
}

.page-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    color: #000000;
}

.page-breadcrumb__item:not(:first-child)::before {
    content: "|";
    margin: 0 0.65em;
    font-weight: 400;
    color: #000000;
    user-select: none;
}

.page-breadcrumb__link {
    color: #000000;
    text-decoration: none;
    font-weight: 400;
}

.page-breadcrumb__link:hover {
    text-decoration: underline;
}

.page-breadcrumb__link:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

.page-breadcrumb__item--current {
    font-weight: 400;
    color: #0400ff;
}

/* Tablet */
@media (max-width: 900px) {
    .page-breadcrumb {
        padding: 1rem 1.5rem 0.65rem 2rem;
    }

    .page-breadcrumb__list {
        font-size: 0.875rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .page-breadcrumb {
        padding: 1rem 1rem 0.6rem 1rem;
    }

    .page-breadcrumb__list {
        font-size: 1rem;
    }

    .page-breadcrumb__item:not(:first-child)::before {
        margin: 0 0.5em;
    }
}

/* Page hero — title left, search right */
.tools-page-hero {
    background: #ffffff;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 20px 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.tools-page-hero__title {
    margin: 0;
    font-weight: 600;
    font-size: clamp(1.5rem, 2.2vw, 4vw);
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #000000;
    flex: 1 1 auto;
    min-width: 0;
}

.tools-page-hero__line {
    display: block;
}

.tools-page-hero__line + .tools-page-hero__line {
    margin-top: 0.06em;
}

.tools-page-hero .tools-search {
    width: 100%;
    max-width: 380px;
    flex: 0 0 auto;
    margin: 0;
    margin-left: auto;
}

/* Tablet */
@media (max-width: 900px) {
    .tools-page-hero {
        padding: 20px 25px 34px;
        flex-direction: column;
        align-items: stretch;
    }

    .tools-page-hero__title {
        font-size: clamp(1.4rem, 3.4vw, 2.1rem);
        text-align: center;
    }

    .tools-page-hero .tools-search {
        margin: 0.25rem 0 0 auto;
        max-width: 380px;
        width: 100%;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .tools-page-hero {
        padding: 2.5rem 1.25rem 2rem;
    }

    .tools-page-hero__title {
        font-size: 1.85rem;
        line-height: 1.2;
    }

    .tools-page-hero .tools-search {
        margin: 0.75rem 0 0;
        max-width: 100%;
        height: 46px;
        padding: 10px 12px;
    }
}

/* Tool filter pills — outline pills on black */
.tools-pills-section {
    background: #ffffff;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 10px 10px 2.5rem;
}

.tools-pills-section__inner {
    max-width: 1750px;
    margin: 0 auto;
}

.tools-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 0.85rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tools-pills__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.65rem;
    min-height: 2.75rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    background: #17419D;
background: linear-gradient(180deg, rgba(23, 65, 157, 1) 0%, rgba(1, 99, 237, 1) 50%);
    border: 1px solid rgba(125, 133, 185, 0.24);
    color: #ffffff;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.tools-pills__btn.is-active {
    background: #ffffff;
    border: 1px solid rgba(125, 133, 185, 0.24);
    color: #000000;
    font-weight: 500;
}

.tools-pills__btn:hover {
    filter: brightness(1.08);
}

.tools-pills__btn:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* Tablet — align horizontal padding with hero */
@media (max-width: 900px) {
    .tools-pills-section {
        padding: 0 25px 2rem;
    }

    .tools-pills {
        gap: 0.65rem 0.75rem;
    }

    .tools-pills__btn {
        padding: 0.4rem 1.35rem;
        font-size: 0.875rem;
    }
}

/* Mobile — wrap freely; comfortable tap targets */
@media (max-width: 480px) {
    .tools-pills-section {
        padding: 0 1.25rem 1.75rem;
    }

    .tools-pills {
        gap: 0.55rem 0.6rem;
    }

    .tools-pills__btn {
        padding: 0.2rem 1.2rem;
        min-height: 2.2rem;
        font-size: 0.6rem;
    }
}

/* Results + License / Sort bar (white pills on black) — browse-by-tools */
.tools-results-toolbar {
    background: #ffffff;
    max-width: 1500px;
    margin: 0 auto;
    width: 100%;
    padding: 0rem 10px 1.75rem;
    scroll-margin-top: 100px;
}

.tools-results-toolbar__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.tools-results-toolbar .listing-results-count {
    color: #000000;
    font-size: 1rem;
    font-weight: 500;
}

.tools-results-toolbar .listing-filter-actions {
    margin: 0;
}

/* Design: solid white pills, black label + chevron */
.tools-results-toolbar .listing-filter-pill {
    height: auto;
    min-height: 2.5rem;
    padding: 0.5rem 1.15rem 0.5rem 1.35rem;
    background: #f1f1f1;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #000000;
    font-family: "Outfit", sans-serif;
    font-weight: 400;
}

.tools-results-toolbar .listing-filter-pill i {
    color: #000000;
    font-size: 0.7rem;
}


.tools-results-toolbar .listing-filter-pill:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .tools-results-toolbar {
        padding: 0.5rem 25px 1.5rem;
    }

    .tools-results-toolbar .listing-results-count {
        font-size: 1rem;
        color: #000000;
    }
}

@media (max-width: 640px) {
    .tools-results-toolbar__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .tools-results-toolbar .listing-results-count {
        text-align: left;
    }

    .tools-results-toolbar__actions {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        gap: 0.65rem;
    }

    .tools-results-toolbar__actions .listing-filter-dropdown {
        flex: 1 1 calc(50% - 0.325rem);
        min-width: 0;
    }

    .tools-results-toolbar__actions .listing-filter-pill {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 380px) {
    .tools-results-toolbar__actions .listing-filter-dropdown {
        flex: 1 1 100%;
    }
}

@media (max-width: 480px) {
    .tools-results-toolbar {
        padding: 0.5rem 1.25rem 1.35rem;
    }

    .tools-results-toolbar .listing-results-count {
        font-size: 0.9375rem;
    }

    .tools-results-toolbar .listing-filter-pill {
        min-height: 2.75rem;
        font-size: 0.875rem;
    }
}

/* Trending hashtags — before gallery */
.tools-trending-tags {
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 0.5rem 10px 1.75rem;
}

.tools-trending-tags .trending-tags-inner {
    max-width: 1300px;
    margin: 0 auto;
    text-align: left;
}

.tools-trending-tags .trending-tags-inner h2 {
    margin: 0;
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.25;
    font-weight: 600;
    color: #000000;
    letter-spacing: 0.01em;
}

.tools-trending-tags .trending-tags-list {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
}

.tools-trending-tags .trending-tag {
    text-decoration: none;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 18px;
    font-size: 0.9375rem;
    line-height: 1;
    border: 1px solid rgba(0, 0, 0, 0.349);
    background: rgba(255, 255, 255, 0.02);
    color: #1d1d1d;
}

.tools-trending-tags .trending-tag:hover {
    color: #000000;
    filter: brightness(1.06);
    
}

@media (max-width: 900px) {
    .tools-trending-tags {
        padding: 0.35rem 25px 1.5rem;
    }

    .tools-trending-tags .trending-tags-inner {
        text-align: center;
    }

    .tools-trending-tags .trending-tags-list {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .tools-trending-tags {
        padding: 0.25rem 1.25rem 1.25rem;
    }

    .tools-trending-tags .trending-tag {
        padding: 9px 14px;
        font-size: 0.875rem;
    }
}

/* Prompt grid — browse-by-tools (hover overlay matches listing page) */
.tools-prompt-gallery {
    background: #ffffff;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    padding: 30px 10px 4.5rem;
    scroll-margin-top: 100px;
}

#listing-gallery-grid {
    scroll-margin-top: 100px;
}

.tools-prompt-gallery__wrap {
    width: 100%;
    max-width: none;
}

.tools-prompt-gallery .listing-gallery-grid {
    column-count: 3;
    column-gap: 40px;
}

.tools-prompt-gallery .listing-gallery-card {
    border-radius: 0px;
}

.tools-prompt-gallery .listing-gallery-card img {
    border-radius: 0px;
}

.listing-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 2.5rem;
}

.listing-pagination[hidden] {
    display: none !important;
}

.listing-pagination__btn {
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(0, 0, 0, 0.28);
    border-radius: 999px;
    background: #ffffff;
    color: #000000;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.listing-pagination__btn:hover:not(:disabled) {
    background: rgba(23, 65, 157, 0.08);
}

.listing-pagination__btn.is-active {
    background: #000000;
    border-color: #000000;
    color: #ffffff;
}

.listing-pagination__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

@media (max-width: 991px) {
    .tools-prompt-gallery {
        padding: 0 25px 3.5rem;
    }

    .tools-prompt-gallery .listing-gallery-grid {
        column-count: 3;
        column-gap: 18px;
    }

    .listing-pagination {
        margin-top: 2rem;
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .tools-prompt-gallery {
        padding: 0 1.25rem 3rem;
    }

    .tools-prompt-gallery .listing-gallery-grid {
        column-count: 2;
        column-gap: 16px;
    }


    .listing-pagination {
        margin-top: 1.5rem;
        gap: 6px;
    }

    .listing-pagination__btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.88rem;
    }
}