/* =========================================================
   Numorify.com - Category Page Styles
   File: /assets/css/category.css
   ========================================================= */


/* =========================================================
   1. Category Hero
   ========================================================= */

.category-hero {
    width: 100%;
}

.category-hero-content {
    max-width: 48rem;
}

.category-title {
    color: #111827;
    font-size: 2rem;
    line-height: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.category-description {
    margin-top: 0.75rem;
    color: #6b7280;
    font-size: 0.9375rem;
    line-height: 1.6;
}

@media (min-width: 640px) {

    .category-title {
        font-size: 2.25rem;
        line-height: 2.75rem;
    }

}


/* =========================================================
   2. Category Icon
   ========================================================= */

.category-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #eff6ff;
    border-radius: 0.75rem;
}

.category-icon .iconify {
    font-size: 1.5rem;
    color: #2563eb;
}


/* =========================================================
   3. Tool Grid
   ========================================================= */

.tool-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.875rem;
}

@media (min-width: 640px) {

    .tool-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (min-width: 1024px) {

    .tool-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

}

@media (min-width: 1280px) {

    .tool-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}


/* =========================================================
   4. Tool Card
   ========================================================= */

.tool-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 4.75rem;
    padding: 0.875rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    color: inherit;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        background-color 0.2s ease;
}

.tool-card:hover {
    border-color: #93c5fd;
    background: #ffffff;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.08),
        0 4px 6px -4px rgb(0 0 0 / 0.05);
    transform: translateY(-1px);
}

.tool-card:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}


/* =========================================================
   5. Tool Icon
   ========================================================= */

.tool-icon {
    width: 40px !important;
    height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 10px !important;
    background: #eff6ff;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease;
}

.tool-icon .iconify {
    font-size: 19px !important;
    color: #2563eb;
}

.tool-card:hover .tool-icon {
    transform: scale(1.08);
}


/* =========================================================
   6. Tool Card Content
   ========================================================= */

.tool-card-content {
    min-width: 0;
    flex: 1;
}

.tool-card-title {
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
}

.tool-card-description {
    margin-top: 0.125rem;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1rem;
}


/* =========================================================
   7. Tool Card Arrow
   ========================================================= */

.tool-card-arrow {
    flex-shrink: 0;
    color: #9ca3af;
    font-size: 1rem;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.tool-card:hover .tool-card-arrow {
    color: #2563eb;
    transform: translateX(2px);
}


/* =========================================================
   8. Category Section
   ========================================================= */

.category-section {
    padding-top: 2rem;
    padding-bottom: 3rem;
}

.category-section-title {
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
}

.category-section-description {
    margin-top: 0.375rem;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}


/* =========================================================
   9. Explore Heading
   ========================================================= */

.explore-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.explore-heading h2 {
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
}

.explore-heading p {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.8125rem;
    line-height: 1.25rem;
}


/* =========================================================
   10. Related Categories
   ========================================================= */

.related-categories {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {

    .related-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (min-width: 1024px) {

    .related-categories {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

}


/* =========================================================
   11. Related Category Card
   ========================================================= */

.related {
    display: block;
    padding: 1rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.related:hover {
    border-color: #93c5fd;
    box-shadow:
        0 10px 15px -3px rgb(0 0 0 / 0.08),
        0 4px 6px -4px rgb(0 0 0 / 0.05);
    transform: translateY(-1px);
}

.related-title {
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
}

.related-description {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.75rem;
    line-height: 1rem;
}


/* =========================================================
   12. Related Category Icon
   ========================================================= */

.related-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.625rem;
    background: #eff6ff;
    border-radius: 0.625rem;
}

.related-icon .iconify {
    font-size: 1.125rem;
    color: #2563eb;
}


/* =========================================================
   13. Category CTA
   ========================================================= */

.category-cta {
    padding: 1.5rem;
    background: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 1rem;
}

.category-cta-title {
    color: #1e3a8a;
    font-size: 1rem;
    line-height: 1.5rem;
    font-weight: 700;
}

.category-cta-description {
    margin-top: 0.375rem;
    color: #475569;
    font-size: 0.8125rem;
    line-height: 1.5;
}


/* =========================================================
   14. Category Breadcrumb
   ========================================================= */

.category-breadcrumb {
    margin-bottom: 1.5rem;
}


/* =========================================================
   15. Category Empty State
   ========================================================= */

.category-empty {
    padding: 2rem;
    text-align: center;
    background: #f9fafb;
    border: 1px dashed #d1d5db;
    border-radius: 0.75rem;
}

.category-empty-title {
    color: #374151;
    font-size: 0.875rem;
    font-weight: 600;
}

.category-empty-description {
    margin-top: 0.25rem;
    color: #6b7280;
    font-size: 0.8125rem;
}


/* =========================================================
   16. Mobile
   ========================================================= */

@media (max-width: 640px) {

    .category-title {
        font-size: 1.75rem;
        line-height: 2.25rem;
    }

    .category-description {
        font-size: 0.875rem;
    }

    .tool-card {
        min-height: 4.5rem;
        padding: 0.75rem;
    }

    .tool-icon {
        width: 38px !important;
        height: 38px !important;
    }

    .tool-icon .iconify {
        font-size: 18px !important;
    }

    .explore-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .category-cta {
        padding: 1rem;
    }

}


/* =========================================================
   17. Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .tool-card,
    .tool-icon,
    .tool-card-arrow,
    .related {
        transition: none;
    }

}


/* =========================================================
   END OF CATEGORY STYLES
   ========================================================= */