/* =========================================================
   ToolZen Hub
   Categories Page
========================================================= */


/* =========================================================
   Page
========================================================= */

.categories-page {
    width: 100%;

    box-sizing: border-box;

    padding-top: 42px;
    padding-bottom: 26px;

    background:
        linear-gradient(
            180deg,
            #f6fbf9 0%,
            #ffffff 32%,
            #ffffff 100%
        );
}


/* =========================================================
   Intro
========================================================= */

.categories-page__intro {
    max-width: 760px;

    margin: 0 auto 34px;

    text-align: center;
}


/* =========================================================
   Eyebrow
========================================================= */

.categories-page__eyebrow {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    padding: 5px 11px;

    border: 1px solid #d8eee4;

    border-radius: 999px;

    background: #eaf8f2;

    color: #168552;

    font-size: 9px;

    font-weight: 700;

    line-height: 1;
}


/* =========================================================
   Title
========================================================= */

.categories-page__title {
    margin: 0 0 10px;

    color: #101828;

    font-size: clamp(32px, 4vw, 44px);

    font-weight: 800;

    line-height: 1.1;

    letter-spacing: -1.3px;
}


/* =========================================================
   Description
========================================================= */

.categories-page__description {
    max-width: 560px;

    margin: 0 auto;

    color: #667085;

    font-size: 15px;

    line-height: 1.5;
}


/* =========================================================
   Category Grid
========================================================= */

.categories-page__grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    margin-bottom: 28px;
}


/* =========================================================
   Category Card
========================================================= */

.category-page-card {
    min-width: 0;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    gap: 13px;

    min-height: 126px;

    padding: 20px;

    border: 1px solid #e4ebe8;

    border-radius: 14px;

    background: #ffffff;

    box-shadow:
        0 3px 12px rgba(16, 24, 40, 0.045);

    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.category-page-card:hover {
    transform: translateY(-3px);

    border-color: #cce5d9;

    box-shadow:
        0 10px 24px rgba(16, 24, 40, 0.08);
}


/* =========================================================
   Icon
========================================================= */

.category-page-card__icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 12px;

    font-size: 22px;

    line-height: 1;
}


/* =========================================================
   Icon Colors
========================================================= */

.category-page-card__icon--loans {
    background: #e3f7eb;

    color: #159447;
}


.category-page-card__icon--investment {
    background: #e3f7eb;

    color: #0b9f58;
}


.category-page-card__icon--tax {
    background: #eee8ff;

    color: #7047d9;
}


.category-page-card__icon--health {
    background: #ffe7ef;

    color: #df326b;
}


.category-page-card__icon--business {
    background: #e3f1ff;

    color: #1769d1;
}


.category-page-card__icon--math {
    background: #fff3df;

    color: #cf8510;
}


.category-page-card__icon--converter {
    background: #e2f7f4;

    color: #168f80;
}


.category-page-card__icon--more {
    background: #edf2f7;

    color: #35506d;
}


/* =========================================================
   Content
========================================================= */

.category-page-card__content {
    min-width: 0;

    flex: 1;
}


/* =========================================================
   Title
========================================================= */

.category-page-card__title {
    margin: 0 0 6px;

    color: #101828;

    font-size: 16px;

    font-weight: 750;

    line-height: 1.3;
}


/* =========================================================
   Description
========================================================= */

.category-page-card__description {
    margin: 0;

    color: #475467;

    font-size: 11px;

    line-height: 1.45;
}


/* =========================================================
   Arrow
========================================================= */

.category-page-card__arrow {
    flex-shrink: 0;

    color: #0b9f58;

    font-size: 23px;

    line-height: 1;

    transition:
        transform 0.2s ease;
}


.category-page-card:hover
.category-page-card__arrow {
    transform: translateX(4px);
}


/* =========================================================
   Search Section
========================================================= */

.categories-search {
    width: 100%;

    box-sizing: border-box;

    display: flex;

    align-items: center;

    gap: 14px;

    padding: 16px 20px;

    border: 1px solid #dcebe4;

    border-radius: 12px;

    background: #f2faf6;
}


/* =========================================================
   Search Icon
========================================================= */

.categories-search__icon {
    width: 46px;
    height: 46px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 11px;

    background: #dff5e9;

    color: #0b9f58;

    font-size: 25px;
}


/* =========================================================
   Search Content
========================================================= */

.categories-search__content {
    min-width: 0;

    flex: 0 0 38%;
}


.categories-search__content h2 {
    margin: 0 0 4px;

    color: #101828;

    font-size: 15px;

    font-weight: 750;

    line-height: 1.3;
}


.categories-search__content p {
    margin: 0;

    color: #475467;

    font-size: 11px;

    line-height: 1.4;
}


/* =========================================================
   Search Form
========================================================= */

.categories-search__form {
    flex: 1;

    min-width: 0;

    height: 40px;

    display: flex;

    align-items: stretch;

    overflow: hidden;

    border: 1px solid #d7e1dd;

    border-radius: 8px;

    background: #ffffff;

    box-shadow:
        0 1px 3px rgba(16, 24, 40, 0.04);
}


/* =========================================================
   Search Input
========================================================= */

.categories-search__input {
    flex: 1;

    min-width: 0;

    width: 100%;

    padding: 0 13px;

    border: 0;

    outline: 0;

    background: #ffffff;

    color: #101828;

    font-family: inherit;

    font-size: 12px;
}


.categories-search__input::placeholder {
    color: #98a2b3;
}


/* =========================================================
   Search Button
========================================================= */

.categories-search__button {
    width: 58px;

    flex-shrink: 0;

    border: 0;

    background: #0b9f58;

    color: #ffffff;

    font-size: 20px;

    cursor: pointer;

    transition:
        background 0.2s ease;
}


.categories-search__button:hover {
    background: #087d46;
}


/* =========================================================
   Large Desktop
========================================================= */

@media (min-width: 1200px) {

    .categories-page {
        padding-top: 46px;

        padding-bottom: 30px;
    }


    .categories-page__grid {
        gap: 20px;
    }


    .category-page-card {
        min-height: 132px;

        padding: 20px;
    }

}


/* =========================================================
   Tablet
========================================================= */

@media (max-width: 1000px) {

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


    .categories-search__content {
        flex-basis: 35%;
    }

}


/* =========================================================
   Mobile
========================================================= */

@media (max-width: 650px) {

    .categories-page {
        padding-top: 32px;

        padding-bottom: 24px;
    }


    .categories-page__intro {
        margin-bottom: 26px;
    }


    .categories-page__title {
        font-size: 32px;

        letter-spacing: -1px;
    }


    .categories-page__description {
        font-size: 14px;
    }


    .categories-page__grid {
        grid-template-columns: 1fr;

        gap: 12px;

        margin-bottom: 22px;
    }


    .category-page-card {
        min-height: 92px;

        padding: 16px;
    }


    .category-page-card__icon {
        width: 44px;

        height: 44px;

        border-radius: 11px;

        font-size: 21px;
    }


    .category-page-card__title {
        font-size: 15px;
    }


    .category-page-card__description {
        font-size: 11px;
    }


    .category-page-card__arrow {
        font-size: 20px;
    }


    /* Search */

    .categories-search {
        flex-direction: column;

        align-items: stretch;

        padding: 16px;
    }


    .categories-search__icon {
        display: none;
    }


    .categories-search__content {
        flex: none;
    }


    .categories-search__form {
        width: 100%;
    }

}


/* =========================================================
   Very Small Mobile
========================================================= */

@media (max-width: 380px) {

    .categories-page__title {
        font-size: 29px;
    }


    .category-page-card {
        padding: 14px;
    }


    .category-page-card__icon {
        width: 42px;

        height: 42px;

        font-size: 20px;
    }

}



/* =========================================================
   Breadcrumb
========================================================= */

.categories-breadcrumb {
    margin-bottom: 22px;

    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    color: #64748b;
}

.categories-breadcrumb a {
    color: #0b9f58;
    text-decoration: none;
}

.categories-breadcrumb strong {
    color: #334155;
    font-weight: 600;
}


/* =========================================================
   Coming Soon (calculators not built yet)
========================================================= */

.category-page-card .coming-soon-badge {

    display: inline-block;

    margin-top: 8px;

    padding: 3px 10px;

    border-radius: 999px;

    background: #fef3c7;

    color: #92400e;

    font-size: 11px;

    font-weight: 700;

    line-height: 1.5;

    letter-spacing: 0.3px;

    text-transform: uppercase;
}


.category-page-card.category-page-card--soon {

    cursor: default;

    opacity: 0.65;

    background: #f8faf9;
}


.category-page-card.category-page-card--soon:hover {

    transform: none;

    border-color: #e4ebe8;

    box-shadow:
        0 3px 12px rgba(16, 24, 40, 0.045);
}
