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

/* ===== Hero =================================================== */

.sh-author-hero {
    position: relative;
    margin-bottom: 3rem;
    padding: 3rem 2rem 2.25rem;
    color: #f9fafb;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #020617;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.55);
}

.sh-author-hero__bg {
    position: absolute;
    inset: 0;
    opacity: 0.9;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.14), transparent 55%),
        radial-gradient(circle at bottom right, rgba(37,99,235,0.45), transparent 55%),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
}

.sh-author-hero__inner {
    position: relative;
    max-width: 1150px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
}

.sh-author-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 999px;
    background: rgba(15,23,42,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 45px rgba(0,0,0,0.55);
}

.sh-author-hero__avatar img {
    max-width: 100%;
    border-radius: 999px;
    border: 3px solid rgba(255,255,255,0.35);
}

.sh-author-hero__header {
    margin-bottom: 0.75rem;
}

/*  Tvinga bort gradient-text från temat  */
.sh-author-hero__name {
    font-size: 2.6rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0,0,0,0.8);
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

.sh-author-hero__subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    opacity: 0.9;
    margin: 0 0 1rem;
    color: #e5e7eb;
    -webkit-text-fill-color: currentColor;
}

.sh-author-hero__subtitle span {
    opacity: 0.9;
}

.sh-author-hero__dot {
    margin: 0 0.4rem;
    opacity: 0.5;
}

.sh-author-hero__header-box {
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background: rgba(15,23,42,0.95);
    box-shadow: 0 14px 30px rgba(15,23,42,0.55);
}

.sh-author-hero__bio {
    font-size: 0.97rem;
    line-height: 1.7;
    max-width: 46rem;
    margin: 0.25rem 0 1.5rem;
    color: #e5e7eb;
}

.sh-author-hero__meta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sh-author-hero__stats {
    display: flex;
    gap: 1.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.sh-author-hero__stats strong {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    color: #ffffff;
    -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;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 1;
    color: #f0f9ff;
    -webkit-text-fill-color: currentColor !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

/* ===== Favorites ================================================= */

.sh-author-hero__favorites {
    margin-top: 0.75rem;
    padding: 0.6rem 0.9rem;
    max-width: 46rem;
    border-radius: 0.75rem;
    background: rgba(15,23,42,0.85);
    box-shadow: 0 14px 30px rgba(15,23,42,0.55);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: baseline;
}

.sh-author-hero__favorites-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #a5b4fc;
    margin-right: 0.35rem;
}

.sh-author-hero__favorites-text {
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* ===== Links =================================================== */

.sh-author-hero__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1rem;
}

.sh-author-hero__link {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(248,250,252,0.18);
    font-size: 0.83rem;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(15,23,42,0.7);
    backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.08s ease;
}

.sh-author-hero__link:hover {
    border-color: rgba(248,250,252,0.7);
    background: rgba(15,23,42,0.95);
    transform: translateY(-1px);
}

/* ===== Tabs =================================================== */

.sh-author-tabs {
    position: relative;
    max-width: 1150px;
    margin: 1.75rem auto 0;
}

.sh-author-tabs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    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;
    padding: 0.45rem 1.1rem;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    color: #111827;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    box-shadow: 0 6px 14px rgba(15,23,42,0.12);
    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease,
        transform 0.06s ease;
}

.sh-author-tabs__link:hover {
    border-color: #9ca3af;
    box-shadow: 0 8px 18px rgba(15,23,42,0.18);
    transform: translateY(-1px);
}

.sh-author-tabs__link.is-active {
    background: #2563eb;
    border-color: #2563eb;
    color: #f9fafb;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.45);
}

.sh-author-tabs__list + .sh-author-tabs__list {
    margin-top: 0.4rem;
}

/* ===== Mobil / mindre skärmar ================================ */

@media (max-width: 900px) {
    .sh-author-hero {
        padding: 2.25rem 1.5rem 1.75rem;
    }

    .sh-author-hero__inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        text-align: center;
    }

    .sh-author-hero__avatar {
        margin: 0 auto;
        width: 100px;
        height: 100px;
    }

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

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

    .sh-author-hero__favorites {
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .sh-author-tabs {
        padding: 0 1.5rem;
    }

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

@media (max-width: 600px) {
    .sh-author-hero__name {
        font-size: 1.8rem;
    }

    .sh-author-hero__bio {
        font-size: 0.94rem;
    }
}
