
/* SearchX — Main Styling */

* {
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f8fafc;
    color: #1e293b;

    max-width: 800px;
    margin: 0 auto;
    padding: 90px 24px 40px;
}

/* SearchX Heading */

h1 {
    font-size: 52px;
    font-weight: 700;
    color: #2563eb;
    text-align: center;
    letter-spacing: -2px;
    margin-bottom: 10px;
}

/* Subtitle */

body > p:first-of-type {
    text-align: center;
    color: #64748b;
    font-size: 16px;
    margin-bottom: 38px;
}

/* Search Bar */

#searchForm {
    display: flex;
    align-items: center;
    gap: 10px;

    background: white;
    border: 1px solid #dbe3ef;
    border-radius: 50px;

    padding: 8px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);

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

#searchForm:focus-within {
    border-color: #2563eb;
    box-shadow: 0 4px 22px rgba(37, 99, 235, 0.12);
}

/* Search Input */

#searchInput {
    flex: 1;
    min-width: 0;
    padding: 14px 18px;

    border: none;
    outline: none;
    background: transparent;

    font-size: 16px;
    color: #1e293b;
}

#searchInput::placeholder {
    color: #94a3b8;
}

/* Search Button */

#searchButton {
    background: #2563eb;
    color: white;

    border: none;
    border-radius: 30px;

    padding: 14px 26px;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    transition: background 0.2s,
                transform 0.2s;
}

#searchButton:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

#searchButton:disabled {
    background: #94a3b8;
    cursor: wait;
    transform: none;
}

/* Search Status */

#status {
    color: #64748b;
    font-size: 14px;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Results Container */

#results {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Individual Search Results */

#results > div {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    padding: 20px 24px;
    transition: border-color 0.2s,
                box-shadow 0.2s;
}

#results > div:hover {
    border-color: #bfdbfe;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

/* Result Titles */

#results h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 10px;
}

#results a {
    color: #2563eb;
    text-decoration: none;
    overflow-wrap: anywhere;
}

#results a:hover {
    text-decoration: underline;
}

/* Result Snippets */

#results p {
    color: #475569;
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* Mobile Layout */

@media (max-width: 600px) {

    body {
        padding: 55px 16px 30px;
    }

    h1 {
        font-size: 38px;
    }

    #searchInput {
        padding: 12px;
    }

    #searchButton {
        padding: 12px 16px;
    }

    #results > div {
        padding: 16px;
    }
}
