@import "global.css";

.homeHero {
    width: 70%;
    min-height: 300px;
    margin: 0 auto;
    margin-top: 1.5rem;
    padding: 10px 30px 10px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    div {
        h1 {
            font-size: 2.5rem;
            font-weight: 600;
            color: var(--text-color);
        }

        .fluxerHighlight {
            font-weight: 800;
            font-size: 3rem;
            color: var(--text-color);
            text-shadow: 0 0 15px var(--fluxer-color), 0 0 30px var(--fluxer-color);
        }

        h2 {
            font-size: 1.5rem;
            font-weight: 600;
            color: var(--text-color);

            u {
                text-decoration: none;
                color: var(--text-color);
                text-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
            }
        }

        form {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 3rem;
            background-color: var(--nav-bg-color);
            border-radius: 50px;
            padding: 8px 8px 8px 24px;
            width: 100%;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
            border: 2px solid transparent;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

            &:focus-within {
                border-color: var(--primary-color);
                box-shadow: 0 0 15px var(--primary-color);
            }

            input {
                flex: 1;
                background: transparent;
                border: none;
                color: var(--text-color);
                font-size: 1.1rem;
                padding: 10px 0;
                outline: none;
                font-family: inherit;
                min-width: 0;
                /* Prevents overflow */
            }

            input::placeholder {
                color: var(--secondary-text-color);
            }

            select {
                background-color: transparent;
                color: var(--text-color);
                border: none;
                font-size: 1.1rem;
                font-family: inherit;
                outline: none;
                cursor: pointer;
                padding: 10px;
                border-left: 1px solid rgba(255, 255, 255, 0.2);
                margin-left: 10px;
                margin-right: 5px;
            }

            select option {
                background-color: var(--nav-bg-color);
                color: var(--text-color);
                padding: 10px;
            }

            button {
                padding: 12px 30px;
                border-radius: 40px;
                border: none;
                background-color: var(--primary-color);
                color: var(--text-color);
                font-size: 1.1rem;
                font-weight: 600;
                cursor: pointer;
                transition: filter 0.2s ease;
                white-space: nowrap;
                margin-left: 10px;
            }

            button:hover {
                filter: brightness(0.9);
            }

            button:active {
                transform: scale(0.95);
            }
        }
    }
}

.home-tag-pill {
    background-color: transparent;
    color: #fff;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    border: 2px solid var(--primary-color);
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
    line-height: 1.2;
    white-space: nowrap;
}

.home-tag-pill:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.home-tag-pill .tag-use-count {
    font-size: 0.70rem;
    opacity: 0.75;
    margin-left: 2px;
    font-weight: 600;
}

.homeStats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 40px auto 80px;
    width: 90%;
    max-width: 1200px;
    text-align: center;
    flex-wrap: wrap;
}

.stat-box {
    background-color: var(--nav-bg-color);
    padding: 30px 40px;
    border-radius: 20px;
    min-width: 160px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    display: block;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px var(--hover-glow, rgb(from var(--primary-color) r g b / 0.15));
}

.stat-box h3 {
    font-size: 3rem;
    color: var(--primary-color);
    margin: 0 0 10px 0;
    font-weight: 800;
}

.stat-box p {
    font-size: 1rem;
    color: var(--secondary-text-color);
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .homeHero {
        width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    .homeHero div {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .homeHero div form {
        flex-direction: column;
        box-sizing: border-box;
        padding: 20px;
        border-radius: 20px;
        gap: 15px;
        width: 100%;
        margin: 0 auto;
    }

    .homeHero div form input {
        width: 100%;
        box-sizing: border-box;
        padding: 10px;
        text-align: center;
    }

    .homeHero div form select {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 15px 10px 0 10px;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        text-align-last: center;
    }

    .homeHero div form button {
        width: 100%;
        box-sizing: border-box;
        margin: 0;
        padding: 15px;
    }
}