@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --bg-main: #020817;
    --bg-card: rgba(15, 23, 42, 0.72);
    --border: rgba(148, 163, 184, 0.15);
    --blue: #3b82f6;
    --blue-light: #60a5fa;
    --text: #ffffff;
    --muted: #cbd5e1;
}

* {
    font-family: 'Outfit', sans-serif !important;
}

body,
body.bg-gray-50 {
    background: var(--bg-main) !important;
    color: var(--text) !important;
}

/* HERO */
header {
    background: #020817 !important;
    border-bottom: 1px solid var(--border);
    padding-top: 75px !important;
    padding-bottom: 70px !important;
}

.hero-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 24px;
    border-radius: 26px;
    background: rgba(37, 99, 235, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
}

header h1 {
    color: #ffffff !important;
    font-weight: 800 !important;
}

header p {
    color: #cbd5e1 !important;
}

/* SEARCH */
.ai-search-section {
    max-width: 850px;
    margin: -34px auto 0;
    padding: 0 20px;
}

.search-wrap {
    position: relative;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.search-emoji {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
}

#globalSearch,
#searchTools {
    width: 100%;
    height: 60px;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #ffffff !important;
    padding: 0 22px 0 58px !important;
    font-size: 17px;
}

#globalSearch::placeholder,
#searchTools::placeholder {
    color: #93c5fd !important;
}

/* REMOVE DOUBLE SEARCH BOX */
.bg-white.rounded-2xl {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* TITLES */
h2.text-3xl {
    color: #ffffff !important;
    font-size: 34px !important;
    font-weight: 800 !important;
}

/* CATEGORY CARDS */
#categoriesGrid {
    align-items: stretch;
}

#categoriesGrid>div {
    height: 220px !important;
    min-height: 220px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    display: flex !important;
    flex-direction: column !important;
    transition: 0.25s ease !important;
}

#categoriesGrid>div:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.35) !important;
    background: rgba(15, 23, 42, 0.9) !important;
}

#categoriesGrid>div>div:first-child {
    height: 90px !important;
    flex-shrink: 0;
}

#categoriesGrid>div>div:last-child {
    flex: 1;
    padding: 16px !important;
}

.category-emoji {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: auto;
}

#categoriesGrid h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    font-weight: 700 !important;
}

#categoriesGrid span {
    font-size: 11px !important;
    padding: 4px 8px !important;
}

/* TOOL CARDS */
#toolsGrid>div,
.tool-card {
    min-height: 190px !important;
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: none !important;
    padding: 18px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: 0.25s ease !important;
}

#toolsGrid>div:hover,
.tool-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.35) !important;
}

.tool-card h3,
#toolsGrid h3 {
    color: #ffffff !important;
    font-size: 18px !important;
    margin-bottom: 6px !important;
}

.tool-card p,
#toolsGrid p,
.text-gray-600,
.text-gray-500,
#resultsCount {
    color: #cbd5e1 !important;
    font-size: 14px !important;
}

/* TRY TOOL BOTTOM RIGHT */
.try-tool-btn {
    margin-top: auto !important;
    margin-left: auto !important;
    display: inline-flex !important;
    color: #3b82f6 !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    font-size: 15px !important;
}

.try-tool-btn:hover {
    color: #60a5fa !important;
}

/* BADGES */
.bg-gray-100 {
    background: rgba(37, 99, 235, 0.14) !important;
    color: #93c5fd !important;
}

.bg-green-100 {
    background: rgba(34, 197, 94, 0.15) !important;
    color: #4ade80 !important;
}

.bg-blue-100 {
    background: rgba(59, 130, 246, 0.15) !important;
    color: #60a5fa !important;
}

.bg-orange-100 {
    background: rgba(249, 115, 22, 0.15) !important;
    color: #fdba74 !important;
}

/* BACK TO CATEGORY */
button {
    color: #60a5fa !important;
}

/* SELECT */
select#subcategoryFilter {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid var(--border) !important;
    color: #ffffff !important;
}

select#subcategoryFilter option {
    background: #020817 !important;
    color: #ffffff !important;
}

/* FOOTER SOCIAL */
.footer-social {
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-social a {
    display: flex;
    font-size: 26px;
    transition: 0.25s ease;
}

.footer-social a:hover {
    transform: translateY(-5px);
    color: #60a5fa;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-icon {
        width: 82px;
        height: 82px;
        font-size: 44px;
    }

    header h1 {
        font-size: 38px !important;
    }

    #categoriesGrid>div {
        height: auto !important;
        min-height: 210px !important;
    }

    .tool-card {
        min-height: 180px !important;
    }
}

/* CATEGORY FILTER BOX FIX */

.bg-white {
    background: rgba(15, 23, 42, 0.72) !important;
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    color: #ffffff !important;
}

#searchTools {
    background: rgba(2, 8, 23, 0.85) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    height: 58px !important;
    padding: 0 18px !important;
}

#searchTools::placeholder {
    color: #93c5fd !important;
}

#subcategoryFilter {
    background: rgba(2, 8, 23, 0.85) !important;
    border: 1px solid rgba(148, 163, 184, 0.18) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    height: 58px !important;
    padding: 0 18px !important;
}

#resultsCount,
.text-gray-600,
.text-gray-500 {
    color: #cbd5e1 !important;
}