/* Start Here — beginner path */

/* ── Buttons (self-contained — do not rely on .btn from main.css) ── */
.sh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    min-height: 52px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    border-radius: 999px;
    text-decoration: none !important;
    border: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition:
        transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow 0.22s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.sh-btn-lg {
    min-height: 56px;
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.sh-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sh-btn:hover .sh-btn-arrow {
    transform: translateX(3px);
}

.sh-btn-primary {
    background: linear-gradient(180deg, #ef4d58 0%, var(--color-brand-red) 48%, #d62828 100%);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 4px 0 #b91c1c,
        0 10px 28px rgba(230, 57, 70, 0.38);
}

.sh-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.25) inset,
        0 5px 0 #b91c1c,
        0 14px 36px rgba(230, 57, 70, 0.45);
    color: #fff !important;
}

.sh-btn-primary:active {
    transform: translateY(1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.15) inset,
        0 2px 0 #b91c1c,
        0 6px 16px rgba(230, 57, 70, 0.3);
}

.sh-btn-ghost {
    background: var(--color-paper);
    color: var(--color-text) !important;
    border-color: var(--color-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.sh-btn-ghost:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 57, 70, 0.35);
    color: var(--color-brand-red) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.sh-btn-ghost .sh-btn-arrow {
    background: rgba(230, 57, 70, 0.1);
    color: var(--color-brand-red);
}

.sh-btn-outline {
    background: transparent;
    color: var(--color-text) !important;
    border-color: var(--color-border);
}

.sh-btn-outline:hover {
    border-color: var(--color-brand-red);
    color: var(--color-brand-red) !important;
    transform: translateY(-2px);
}

.sh-hub-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
    margin-top: 1.5rem;
}

.sh-hero-actions .sh-btn {
    flex-shrink: 0;
}

/* ── Progress ring ── */
.sh-progress-ring {
    display: block;
}
.sh-ring-bg {
    stroke: var(--color-border);
}
.sh-ring-fill {
    stroke: var(--color-brand-red);
    transition: stroke-dashoffset 0.4s ease;
}
.sh-progress-pct {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-text);
}

/* ── Blogs hub hero ── */
.sh-hero-card {
    margin: 0 0 2rem;
    padding: 0;
    border: none;
    background: transparent;
}
.sh-hero-inner {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.08) 0%, var(--color-paper) 55%);
    border: 2px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-bento);
    box-shadow: 0 12px 40px rgba(230, 57, 70, 0.08);
}
.sh-hero-visual {
    position: relative;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
}
.sh-hero-visual img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--color-paper);
    padding: 4px;
}
.sh-hero-visual .sh-progress-ring {
    position: absolute;
    right: -8px;
    bottom: -8px;
    background: var(--color-paper);
    border-radius: 50%;
}
.sh-hero-kicker {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-brand-red);
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.sh-hero-title {
    font-size: 1.75rem;
    margin: 0 0 0.5rem;
    border: none;
    padding: 0;
}
.sh-hero-desc {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0 0 1rem;
    line-height: 1.5;
    max-width: 520px;
}
.sh-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: stretch;
}

@media (max-width: 640px) {
    .sh-hero-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }
    .sh-hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .sh-hero-actions .sh-btn {
        width: 100%;
    }
    .sh-hub-cta {
        flex-direction: column;
        width: 100%;
    }
    .sh-hub-cta .sh-btn {
        width: 100%;
    }
}

/* ── Hub page ── */
.sh-hub-header {
    text-align: center;
    padding: 2rem 0 1.5rem;
}
.sh-hub-header h1 {
    font-size: 2.75rem;
    margin-bottom: 0.5rem;
}
.sh-hub-header .sh-hub-deck {
    max-width: 560px;
    margin: 0 auto 1.5rem;
    color: var(--color-text-light);
    font-size: 1.05rem;
}
.sh-hub-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.sh-hub-meta span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    color: var(--color-text-light);
}
#sh-hub-progress {
    position: relative;
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.sh-intro-card {
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-bento);
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
}
.sh-intro-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.sh-intro-card ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--color-text-light);
}
.sh-intro-card li {
    margin-bottom: 0.5rem;
}
.sh-disclaimer {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    color: var(--color-text-faint);
}

/* Timeline */
#sh-timeline {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sh-step {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 1.25rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-border);
}
.sh-step:last-child {
    border-bottom: none;
}
.sh-step-marker {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-paper);
    transition: all 0.2s ease;
}
.sh-step.is-done .sh-step-marker {
    background: var(--color-brand-red);
    border-color: var(--color-brand-red);
    color: #fff;
}
.sh-step.is-current .sh-step-marker {
    border-color: var(--color-brand-red);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15);
}
.sh-step-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
}
.sh-step-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-faint);
}
.sh-step-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.35rem;
}
.sh-done-badge {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(230, 57, 70, 0.12);
    color: var(--color-brand-red);
}
.sh-step-title {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    border: none;
    padding: 0;
}
.sh-step-summary {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin: 0 0 1rem;
    line-height: 1.55;
}
.sh-step-path {
    display: none;
}
.sh-step-cta {
    font-size: 0.95rem;
    min-height: 48px;
    padding: 0.75rem 1.5rem;
}

.sh-step.is-done .sh-step-cta.sh-btn-outline .sh-btn-arrow {
    background: rgba(230, 57, 70, 0.1);
    color: var(--color-brand-red);
}

.sh-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}
#sh-reset-btn {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    min-height: 40px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    background: var(--color-paper);
    border: 1px solid var(--color-border);
    color: var(--color-text-faint);
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}
#sh-reset-btn:hover {
    color: var(--color-text);
    border-color: var(--color-text-faint);
}

/* Finish panel */
#sh-finish-panel {
    margin-top: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(85, 107, 47, 0.1), rgba(0, 102, 102, 0.08));
    border: 2px solid var(--color-border);
    border-radius: var(--radius-bento);
    text-align: center;
}
#sh-finish-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}
#sh-finish-panel p {
    color: var(--color-text-light);
    margin-bottom: 1.5rem;
}
.sh-finish-tracks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}
.sh-track-btn {
    min-height: 48px;
    font-size: 0.95rem;
}

.sh-track-aware {
    background: linear-gradient(180deg, #6b8e4a 0%, #556B2F 100%);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 0 #3d4f26, 0 10px 24px rgba(85, 107, 47, 0.35);
}

.sh-track-aware:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.sh-track-strict {
    background: linear-gradient(180deg, #008080 0%, #006666 100%);
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 0 #004d4d, 0 10px 24px rgba(0, 102, 102, 0.35);
}

.sh-track-strict:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.sh-track-all {
    background: var(--color-paper);
    border: 2px solid var(--color-border);
    color: var(--color-text) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* ── Article banner ── */
.start-here-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    padding: 12px 16px;
    margin-bottom: 1.5rem;
    background: rgba(230, 57, 70, 0.06);
    border: 1px solid rgba(230, 57, 70, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
}
.sh-banner-path {
    font-weight: 700;
    color: var(--color-brand-red);
    text-decoration: none !important;
}
.sh-banner-step {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-faint);
}
.sh-banner-title {
    color: var(--color-text-light);
    font-weight: 500;
}

/* ── Lesson nav footer ── */
.start-here-lesson-nav {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--color-border);
}
.sh-lesson-nav-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1rem;
    align-items: center;
}
.sh-nav-prev,
.sh-nav-next {
    display: flex;
    flex-direction: column;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-border);
    background: var(--color-paper);
    text-decoration: none !important;
    color: var(--color-text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sh-nav-prev:hover,
.sh-nav-next:hover {
    border-color: var(--color-brand-red);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.sh-nav-next {
    text-align: right;
}
.sh-nav-label {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-faint);
}
.sh-nav-title {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 4px;
}
.sh-mark-done-btn {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
}

.sh-mark-done-btn:disabled {
    border-color: rgba(230, 57, 70, 0.35);
    color: var(--color-brand-red) !important;
    cursor: default;
    opacity: 1;
}
.sh-nav-finish .sh-nav-title {
    color: var(--color-brand-red);
}

@media (max-width: 720px) {
    .sh-lesson-nav-inner {
        grid-template-columns: 1fr;
    }
    .sh-nav-next {
        text-align: left;
    }
    .sh-mark-done-btn {
        width: 100%;
    }
}
