/**
 * Howdy Hands AI Stain Solver - Frontend Stylesheet
 *
 * This file contains all the styles for the AI Stain Solver shortcode,
 * ensuring it matches the brand's "Modern American Industrial" theme by Infineural Technologies.
 */

/* Define the color palette as CSS variables */
:root {
    --patriot-blue: #0A3161;
    --victory-red: #BF0A30;
    --steel-gray: #4A4A4A;
    --clean-white: #FFFFFF;
    --light-gray-bg: #F5F5F5;
}

/* Main container for the solver app */
.hhas-solver-container {
    font-family: 'Roboto', sans-serif;
    background-color: var(--clean-white);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    max-width: 700px;
    margin: 2rem auto;
    text-align: center;
    border: 1px solid #e2e8f0;
}

/* Title styling */
.hhas-title {
    font-family: 'Oswald', sans-serif;
    color: var(--patriot-blue);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* Description text styling */
.hhas-description {
    color: var(--steel-gray);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

/* Wrapper for the input field and button */
.hhas-input-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Responsive layout for input and button */
@media (min-width: 640px) {
    .hhas-input-wrapper {
        flex-direction: row;
    }
}

/* Input field styling */
.hhas-input {
    flex-grow: 1;
    border: 2px solid var(--patriot-blue);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: box-shadow 0.3s;
    width: 100%;
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

.hhas-input:focus {
    box-shadow: 0 0 0 3px rgba(10, 49, 97, 0.3);
    outline: none;
}

/* Button styling */
.hhas-button {
    background-color: var(--victory-red);
    color: var(--clean-white);
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    white-space: nowrap;
}

.hhas-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Container for the AI's response */
.hhas-response-container {
    margin-top: 1.5rem;
    text-align: left;
    background-color: var(--light-gray-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
    min-height: 100px;
}

/* The actual response text */
.hhas-response {
    color: var(--steel-gray);
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-wrap; /* Respects line breaks from the AI */
}

/* Loader container */
.hhas-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    color: var(--patriot-blue);
    font-size: 1.1rem;
}

/* Spinner animation */
.hhas-spinner {
    border: 4px solid rgba(10, 49, 97, 0.2);
    border-left-color: var(--patriot-blue);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: hhas-spin 1s linear infinite;
    margin-right: 1rem;
}

@keyframes hhas-spin {
    to {
        transform: rotate(360deg);
    }
}
