/* Shared design system for Syncrize basketball tools + basketball blog posts.
   Consumes the CSS variables declared in components/app-layout.blade.php :root
   (--navy-*, --ink, --ink-soft, --accent, --accent-strong, --amber*, --shadow,
   --border, --steel-*). Keeps each basketball view lean instead of shipping a
   ~470-line inline <style> per tool the way the baseball tools do. */

.shell {
    padding: 24px 0 48px;
}

.toolbar-links,
.chip-row,
.step-indicators,
.result-actions,
.share-row,
.summary-row,
.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-grid,
.content-grid,
.option-grid,
.card-grid,
.detail-grid,
.faq-grid,
.chart-grid,
.stat-grid {
    display: grid;
    gap: 22px;
}

.chip-link,
.action-button,
.info-chip,
.step-indicator,
.summary-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    border-radius: 999px;
    transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease, background 140ms ease;
}

.chip-link,
.info-chip,
.step-indicator,
.summary-chip {
    padding: 11px 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.chip-link:hover,
.chip-link:focus-visible {
    border-color: rgba(217, 119, 6, 0.4);
    color: var(--amber-strong);
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-bottom: 26px;
    padding: clamp(22px, 4vw, 34px);
    border: 1px solid rgba(195, 207, 219, 0.58);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(217, 119, 6, 0.12), transparent 32%),
        radial-gradient(circle at top left, rgba(106, 166, 222, 0.16), transparent 30%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.9));
    box-shadow: var(--shadow);
}

.hero > * {
    position: relative;
    z-index: 1;
}

.hero-background-art {
    position: absolute;
    right: -18px;
    bottom: -18px;
    width: min(46%, 400px);
    height: min(66%, 270px);
    z-index: 0;
    pointer-events: none;
    opacity: 0.2;
}

.hero-background-art svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    align-items: start;
}

.content-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
    align-items: start;
}

/* Cards */
.finder-card,
.result-card,
.side-card,
.step-panel,
.option-card,
.chart-card,
.faq-card,
.detail-card,
.stat-card {
    padding: 24px;
    border: 1px solid rgba(195, 207, 219, 0.58);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.finder-card {
    background:
        radial-gradient(circle at top right, rgba(106, 166, 222, 0.2), transparent 32%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.88));
}

.result-card {
    position: sticky;
    top: 18px;
    overflow: hidden;
}

.result-card:focus,
.result-card:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
}

.result-card[data-has-result="true"] {
    border: 2px solid #111111;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06), var(--shadow);
}

/* Typography */
h1, h2, h3, p {
    margin: 0;
}

h1, h2 {
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2.2rem, 5.5vw, 3.9rem);
    line-height: 0.96;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.3rem);
}

h3 {
    font-size: 1.05rem;
}

.lede,
.section-copy,
.card-copy,
.faq-answer,
.step-copy,
.affiliate-note,
.warning-list li,
.result-card li {
    color: var(--ink-soft);
    line-height: 1.75;
}

.lede {
    margin-top: 14px;
    font-size: 1.08rem;
}

.section-copy,
.step-copy {
    margin-top: 10px;
}

/* Steps + progress */
.step-indicators {
    margin-top: 16px;
}

.step-indicator.is-active,
.info-chip.is-active,
.summary-chip.is-set,
.option-card.is-active {
    border-color: rgba(63, 120, 178, 0.36);
    background: rgba(63, 120, 178, 0.12);
    color: var(--ink);
}

.step-indicator.is-complete {
    border-color: rgba(54, 137, 95, 0.22);
    background: rgba(54, 137, 95, 0.1);
    color: var(--ink);
}

.progress-track {
    width: 100%;
    height: 12px;
    margin-top: 14px;
    border-radius: 999px;
    background: rgba(195, 207, 219, 0.5);
    overflow: hidden;
}

.progress-fill {
    width: 0;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent), var(--accent-strong));
    transition: width 220ms ease;
}

.step-panel {
    margin-top: 18px;
    display: none;
}

.step-panel.is-active {
    display: block;
}

.step-panel > * + * {
    margin-top: 16px;
}

.conditional-panel[hidden] {
    display: none;
}

.step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.validation-note {
    margin-top: 12px;
    color: var(--amber-strong);
    font-weight: 600;
}

/* Option cards (radio grid) */
.option-grid,
.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.option-label {
    display: block;
    cursor: pointer;
}

.option-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.option-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    box-shadow: none;
    border-radius: 20px;
}

.option-label input:focus-visible + .option-card {
    outline: 3px solid #111111;
    outline-offset: 2px;
}

.option-label input:checked + .option-card {
    border-color: rgba(63, 120, 178, 0.55);
    background: rgba(63, 120, 178, 0.1);
}

.option-badge {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(217, 119, 6, 0.12);
    color: var(--amber-strong);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Buttons */
.action-button {
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    cursor: pointer;
}

.action-button:hover,
.action-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(67, 95, 129, 0.16);
}

.action-button.primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--accent-strong), var(--navy-900));
    color: #fff;
}

.action-button.amazon-cta {
    border-color: transparent;
    background: linear-gradient(135deg, var(--amber), var(--amber-strong));
    color: #fff;
}

.button-icon svg {
    width: 18px;
    height: 18px;
}

.field-icon svg {
    width: 20px;
    height: 20px;
    color: var(--accent-strong);
}

.field-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--ink);
}

/* Sliders */
.slider-field {
    margin-top: 18px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    font-weight: 700;
}

.slider-value {
    font-size: 1.4rem;
    color: var(--accent-strong);
}

.slider-field input[type="range"] {
    width: 100%;
    margin-top: 12px;
    accent-color: var(--accent-strong);
}

.field-hint {
    margin-top: 8px;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

/* Result readouts */
.result-headline {
    margin-top: 18px;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.result-metric {
    font-size: clamp(2.6rem, 7vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--accent-strong);
}

.result-metric small {
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink-soft);
}

.detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 18px;
}

.detail-card {
    box-shadow: none;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
}

.detail-card h3 {
    margin-bottom: 8px;
}

.detail-card ul,
.warning-list {
    margin: 8px 0 0;
    padding-left: 18px;
}

.detail-card li,
.warning-list li {
    margin-top: 6px;
}

.warning-list li {
    color: var(--amber-strong);
}

/* Stat readout grid (calculators) */
.stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    margin-top: 18px;
}

.stat-card {
    padding: 18px;
    border-radius: 20px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.7);
    text-align: center;
}

.stat-card .stat-value {
    display: block;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--accent-strong);
}

.stat-card .stat-label {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

/* Table */
.table-wrap {
    margin-top: 16px;
    overflow-x: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

th, td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.94rem;
}

th {
    background: rgba(63, 120, 178, 0.08);
    font-weight: 700;
    color: var(--ink);
}

tbody tr:last-child td {
    border-bottom: none;
}

tbody tr.is-highlight td {
    background: rgba(217, 119, 6, 0.09);
    font-weight: 600;
}

/* FAQ */
.chart-grid,
.faq-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.faq-card h3 {
    margin-bottom: 8px;
}

/* Affiliate */
.affiliate-kicker {
    margin-top: 22px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--amber-strong);
}

.affiliate-note {
    margin-top: 18px;
    font-size: 0.86rem;
}

.affiliate-note a {
    color: var(--accent-strong);
    font-weight: 600;
}

.share-status {
    align-self: center;
    font-size: 0.86rem;
    color: var(--ink-soft);
}

.section-gap {
    margin-top: 26px;
}

/* Blog prose */
.content,
.cta-panel {
    padding: clamp(22px, 4vw, 36px);
    border: 1px solid rgba(195, 207, 219, 0.55);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.content {
    margin-top: 24px;
}

.content > * + * {
    margin-top: 16px;
}

.content h2 {
    margin-top: 26px;
}

.content h3 {
    margin-top: 18px;
    font-size: 1.2rem;
}

.content ul,
.content ol {
    padding-left: 20px;
    color: var(--ink-soft);
    line-height: 1.8;
}

.content li {
    margin-top: 6px;
}

.content a {
    color: var(--accent-strong);
    font-weight: 600;
}

.cta-panel {
    margin-top: 24px;
    text-align: center;
    background:
        radial-gradient(circle at top, rgba(106, 166, 222, 0.16), transparent 45%),
        rgba(255, 255, 255, 0.9);
}

.cta-panel .action-button {
    margin-top: 16px;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid,
    .content-grid {
        grid-template-columns: 1fr;
    }

    .result-card {
        position: static;
    }
}
