/* ==========================================================================
   Tools Basic — shared styles for all /tools/* pages
   Load after site-basic.css, before individual tool CSS
   ========================================================================== */

/* --- Hero description (h1 subtitle supplement) --- */
.hero-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 8px 0 0;
    font-weight: 400;
}

.searching .hero-description {
    display: none;
}

/* --- Quick links (sample buttons below search) ---
   These sit below the search box but must NOT shift the
   search box position. We pull them out of the flow so
   hero-content's layout height stays the same as pages
   without quick links.
   ---------------------------------------------------- */
.hero-content {
    position: relative;
}

.sample-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    text-align: center;
    padding-top: 12px;
}

.sample-intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
    font-style: italic;
}

.sample-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 12px;
}

.sample-btn {
    padding: 8px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}

.sample-btn:hover {
    background: var(--gradient-main);
    color: #fff;
    border-color: transparent;
}

/* --- Results area --- */
.results-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 20px 40px;
}

/* --- Error message --- */
.error-message {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    font-size: 1.1rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .results-container {
        padding: 0 12px 30px;
    }

    .sample-buttons {
        flex-direction: column;
        align-items: center;
    }

    .sample-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }
}
