/*
 * duckSortingStyles.css
 * TNT | Duck Sorting Visualization
 * Page-specific styles — extends ../styles/tnt-base-styles.css
 *
 * Covers: hero section, spark bar, main background, button resets.
 */

/* ── Hero ──────────────────────────────────────────────────────────────────── */
#hero {
    min-height: 34vh;
    background:
        linear-gradient(180deg, rgba(0,30,70,0.62) 0%, rgba(5,60,120,0.28) 55%, rgba(0,0,0,0.08) 100%),
        url('../images/ducksInARow.jpg') center 70% / cover no-repeat;
    padding: 3.5rem 1rem 3rem;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(1.9rem, 6vw, 3.4rem);
    margin-bottom: 0.65rem;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    margin-bottom: 0;
}

/* ── Spark bar ─────────────────────────────────────────────────────────────── */
.spark-bar {
    background: #0c1e35;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.4rem;
    border-bottom: 1px solid rgba(26, 140, 216, 0.25);
}

.spark-bar a,
.spark-bar .spark-link {
    color: #1a8cd8;
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    line-height: inherit;
}

.spark-bar a:hover,
.spark-bar .spark-link:hover {
    color: #5bc0f5;
    text-decoration: underline;
}

.spark-bar span {
    color: rgba(255, 255, 255, 0.40);
    font-size: 0.80rem;
    margin-left: auto;
}

/* ── Main content area ─────────────────────────────────────────────────────── */
#mainElem {
    background-color: #daedf7;
}

/* ── Button width reset ────────────────────────────────────────────────────── */
/*
 * style.css has a legacy `button { width: 50px; }` rule.
 * Reset it here so Bootstrap and inline-size determine button widths;
 * sort-action buttons keep their explicit min-width from style.css.
 */
button {
    width: auto;
}
