/* =========================================================
 * Pixel Review – Author hero + tabs
 * =======================================================*/

:root {
    --sh-author-accent: #2563eb;
    --sh-author-bg: #f3f6fb;
    --sh-author-text: #0f172a;
    --sh-author-text-soft: #334155;
    --sh-author-text-muted: #64748b;
    --sh-author-surface: rgba(255, 255, 255, 0.92);
    --sh-author-surface-strong: #ffffff;
    --sh-author-panel: rgba(255, 255, 255, 0.68);
    --sh-author-panel-strong: rgba(255, 255, 255, 0.84);
    --sh-author-border: rgba(15, 23, 42, 0.10);
    --sh-author-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
    --sh-author-hero-start: #f8fbff;
    --sh-author-hero-mid: #eef4ff;
    --sh-author-hero-end: #dbeafe;
    --sh-author-tab-text: #0f172a;
    --sh-author-tab-bg: rgba(255, 255, 255, 0.82);
    --sh-author-tab-border: rgba(15, 23, 42, 0.10);
    --sh-author-link-text: #0f172a;
    --sh-author-link-bg: rgba(255, 255, 255, 0.86);
    --sh-author-link-border: rgba(15, 23, 42, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root {
        --sh-author-bg: #020617;
        --sh-author-text: #f8fafc;
        --sh-author-text-soft: #e2e8f0;
        --sh-author-text-muted: #cbd5e1;
        --sh-author-surface: rgba(2, 6, 23, 0.76);
        --sh-author-surface-strong: rgba(15, 23, 42, 0.92);
        --sh-author-panel: rgba(2, 6, 23, 0.46);
        --sh-author-panel-strong: rgba(15, 23, 42, 0.64);
        --sh-author-border: rgba(255, 255, 255, 0.10);
        --sh-author-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
        --sh-author-hero-start: #020617;
        --sh-author-hero-mid: #0f172a;
        --sh-author-hero-end: #111827;
        --sh-author-tab-text: #e5e7eb;
        --sh-author-tab-bg: rgba(15, 23, 42, 0.58);
        --sh-author-tab-border: rgba(255, 255, 255, 0.12);
        --sh-author-link-text: #e2e8f0;
        --sh-author-link-bg: rgba(15, 23, 42, 0.76);
        --sh-author-link-border: rgba(255, 255, 255, 0.12);
    }
}

html.sh-review-theme-light,
body.sh-review-theme-light {
    --sh-author-bg: #f3f6fb;
    --sh-author-text: #0f172a;
    --sh-author-text-soft: #334155;
    --sh-author-text-muted: #64748b;
    --sh-author-surface: rgba(255, 255, 255, 0.92);
    --sh-author-surface-strong: #ffffff;
    --sh-author-panel: rgba(255, 255, 255, 0.68);
    --sh-author-panel-strong: rgba(255, 255, 255, 0.84);
    --sh-author-border: rgba(15, 23, 42, 0.10);
    --sh-author-shadow: 0 28px 70px rgba(15, 23, 42, 0.14);
    --sh-author-hero-start: #f8fbff;
    --sh-author-hero-mid: #eef4ff;
    --sh-author-hero-end: #dbeafe;
    --sh-author-tab-text: #0f172a;
    --sh-author-tab-bg: rgba(255, 255, 255, 0.82);
    --sh-author-tab-border: rgba(15, 23, 42, 0.10);
    --sh-author-link-text: #0f172a;
    --sh-author-link-bg: rgba(255, 255, 255, 0.86);
    --sh-author-link-border: rgba(15, 23, 42, 0.12);
}

html.sh-review-theme-dark,
body.sh-review-theme-dark {
    --sh-author-bg: #020617;
    --sh-author-text: #f8fafc;
    --sh-author-text-soft: #e2e8f0;
    --sh-author-text-muted: #cbd5e1;
    --sh-author-surface: rgba(2, 6, 23, 0.76);
    --sh-author-surface-strong: rgba(15, 23, 42, 0.92);
    --sh-author-panel: rgba(2, 6, 23, 0.52);
    --sh-author-panel-strong: rgba(15, 23, 42, 0.70);
    --sh-author-border: rgba(255, 255, 255, 0.10);
    --sh-author-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
    --sh-author-hero-start: #020617;
    --sh-author-hero-mid: #0f172a;
    --sh-author-hero-end: #111827;
    --sh-author-tab-text: #e5e7eb;
    --sh-author-tab-bg: rgba(15, 23, 42, 0.58);
    --sh-author-tab-border: rgba(255, 255, 255, 0.12);
    --sh-author-link-text: #e2e8f0;
    --sh-author-link-bg: rgba(15, 23, 42, 0.76);
    --sh-author-link-border: rgba(255, 255, 255, 0.12);
}



.sh-author-hero {
    position: relative;
    container-type: inline-size;
    background-color: var(--sh-author-bg);
    margin: 0 0 3rem;
    padding: 1.6rem;
    color: var(--sh-author-text);
    overflow: hidden;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, var(--sh-author-hero-start) 0%, var(--sh-author-hero-mid) 55%, var(--sh-author-hero-end) 100%);
    box-shadow: var(--sh-author-shadow);
}

.sh-author-hero__bg,
.sh-author-hero__overlay {
    position: absolute;
    inset: 0;
}

.sh-author-hero__bg {
    background-position: center;
    background-size: cover;
    opacity: 0.96;
}

.sh-author-hero__overlay {
    background:
        radial-gradient(circle at top left, color-mix(in srgb, var(--sh-author-accent) 9%, white) 0%, transparent 32%),
        radial-gradient(circle at bottom right, color-mix(in srgb, var(--sh-author-accent) 16%, transparent) 0%, transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(2,6,23,0.05) 100%);
    pointer-events: none;
}

.sh-author-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(240px, 320px) minmax(0, 1fr);
    gap: clamp(0.9rem, 2vw, 1.25rem);
    align-items: stretch;
}

.sh-author-hero__sidebar,
.sh-author-hero__panel {
    border: 1px solid var(--sh-author-border);
    background: var(--sh-author-panel);
    backdrop-filter: blur(14px);
    box-shadow: 0 16px 34px rgba(2, 6, 23, 0.12);
}

.sh-author-hero__sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.95rem;
    border-radius: 1.25rem;
}

.sh-author-hero__avatar {
    width: 100%;
    display: flex;
    justify-content: center;
}

.sh-author-hero__avatar img {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 999px;
    border: 4px solid rgba(255,255,255,0.24);
    box-shadow: 0 18px 45px rgba(0,0,0,0.35);
}

.sh-author-hero__identity {
    text-align: center;
}

.sh-author-hero__name {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 2.7rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--sh-author-text);
    text-shadow: 0 4px 16px rgba(0,0,0,0.24);
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.sh-author-hero__subtitle {
    margin: 0.55rem 0 0;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--sh-author-text-muted);
}

.sh-author-hero__dot {
    margin: 0 0.45rem;
    opacity: 0.6;
}

.sh-author-hero__tagline {
    margin: 0.65rem auto 0;
    max-width: 26ch;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--sh-author-text);
}

.sh-author-hero__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-author-hero__stats li {
    padding: 0.75rem 0.95rem;
    border-radius: 1rem;
    background: var(--sh-author-panel-strong);
    border: 1px solid rgba(255,255,255,0.07);
    text-align: center;
}

.sh-author-hero__stats strong {
    display: block;
    font-size: 1.55rem;
    line-height: 1;
    color: var(--sh-author-text);
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.sh-author-hero__stats span {
    display: block;
    margin-top: 0.38rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--sh-author-text-muted);
}

.sh-author-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.sh-author-hero__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--sh-author-tab-border);
    background: var(--sh-author-link-bg);
    color: var(--sh-author-text-soft);
    font-size: 0.84rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.sh-author-hero__link:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--sh-author-accent) 28%, var(--sh-author-link-border));
    background: color-mix(in srgb, var(--sh-author-accent) 10%, var(--sh-author-link-bg));
}

.sh-author-hero__panel {
    padding: 0.9rem 1.05rem;
    border-radius: 1.1rem;
}

.sh-author-hero__panel--bio {
    min-height: 0;
    width: 100%;
    align-self: stretch;
    margin-top: 0.1rem;
}

.sh-author-hero__panel--bio-inline {
    width: 100%;
    margin-top: 0.05rem;
    background: color-mix(in srgb, var(--sh-author-panel-strong) 96%, transparent);
}

.sh-author-hero__bio {
    max-width: 70ch;
    min-width: 0;
    overflow-wrap: anywhere;
    font-size: 1rem;
    line-height: 1.78;
    color: var(--sh-author-text-soft);
    text-align: left;
    text-justify: auto;
    word-spacing: normal;
    letter-spacing: normal;
    hyphens: auto;
}

.sh-author-hero__bio p {
    text-align: left;
    text-justify: auto;
    word-spacing: normal;
    letter-spacing: normal;
    margin: 0 0 0.6rem;
}

.sh-author-hero__bio > :first-child {
    margin-top: 0;
}

.sh-author-hero__bio > :last-child {
    margin-bottom: 0;
}

.sh-author-hero__panel--favorites {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.sh-author-hero__panel--favorites-inline {
    width: 100%;
    padding: 0.8rem 0.9rem;
    border-radius: 1rem;
    background: var(--sh-author-panel-strong);
}

.sh-author-hero__favorites {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.55rem;
    align-items: baseline;
}

.sh-author-hero__panel--favorites-inline .sh-author-hero__favorites {
    justify-content: center;
    text-align: center;
}

.sh-author-hero__favorites-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: color-mix(in srgb, var(--sh-author-accent) 68%, white);
}

.sh-author-hero__favorites-text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--sh-author-text-soft);
}

.sh-author-tabs-wrap {
    max-width: 1150px;
    margin: 0.15rem auto 0.65rem;
    padding: 0;
}

.sh-author-tabs {
    position: relative;
    z-index: 1;
    max-width: 1150px;
    margin: 1.4rem auto 0;
}

.sh-author-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.sh-author-tabs__item {
    margin: 0;
}

.sh-author-tabs__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.48rem 1rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--sh-author-tab-text);
    border: 1px solid var(--sh-author-tab-border);
    background: var(--sh-author-tab-bg);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 22px rgba(2, 6, 23, 0.22);
    transition: transform 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.sh-author-tabs__link:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--sh-author-accent) 28%, var(--sh-author-tab-border));
    background: color-mix(in srgb, var(--sh-author-accent) 10%, var(--sh-author-tab-bg));
}

.sh-author-tabs__link.is-active {
    color: var(--sh-author-text);
    border-color: rgba(59,130,246,0.9);
    background: linear-gradient(135deg, color-mix(in srgb, var(--sh-author-accent) 90%, white) 0%, var(--sh-author-accent) 100%);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--sh-author-accent) 26%, transparent);
}


@container (max-width: 920px) {
    .sh-author-hero {
        padding: 1.1rem;
    }

    .sh-author-hero__inner {
        grid-template-columns: 1fr;
    }

    .sh-author-hero__sidebar,
    .sh-author-hero__panel {
        border-radius: 1.1rem;
    }

    .sh-author-hero__sidebar {
        align-items: center;
        text-align: center;
    }

    .sh-author-hero__identity,
    .sh-author-hero__tagline {
        max-width: 100%;
    }

    .sh-author-hero__stats {
        width: 100%;
    }

    .sh-author-hero__links {
        justify-content: center;
    }

    .sh-author-tabs-wrap {
    max-width: 1150px;
    margin: 0.15rem auto 0.65rem;
    padding: 0;
}

.sh-author-tabs {
        margin-top: 1rem;
    }
}

@container (max-width: 620px) {
    .sh-author-hero {
        padding: 0.85rem;
        border-radius: 1rem;
    }

    .sh-author-hero__sidebar {
        padding: 0.9rem;
    }

    .sh-author-hero__avatar img {
        width: 116px;
        height: 116px;
    }

    .sh-author-hero__panel {
        padding: 0.95rem;
    }

    .sh-author-hero__stats {
        grid-template-columns: 1fr;
    }

    .sh-author-tabs__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 900px) {
    .sh-author-hero {
        padding: 1.25rem;
        border-radius: 1.25rem;
    }

    .sh-author-hero__inner {
        grid-template-columns: 1fr;
    }

    .sh-author-hero__sidebar,
    .sh-author-hero__panel {
        border-radius: 1.1rem;
    }

    .sh-author-tabs__list {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.25rem;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 600px) {
    .sh-author-hero {
        margin-bottom: 2.2rem;
        padding: 1rem;
    }

    .sh-author-hero__sidebar {
        padding: 1.1rem;
    }

    .sh-author-hero__avatar img {
        width: 120px;
        height: 120px;
    }

    .sh-author-hero__tagline,
    .sh-author-hero__bio,
    .sh-author-hero__favorites-text {
        font-size: 0.94rem;
    }

    .sh-author-hero__panel {
        padding: 0.95rem;
    }
}
