/**
 * LabGain UI Pack 8 — reviewer bar (product/hub) + full reviewer profile page.
 * Uses the theme's dark palette + accent yellow (#eeff00) sparingly.
 */

/* =========================================================================
   1. REVIEWER BAR (top of product Description tab and hub content)
   ========================================================================= */

.lg-reviewer-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    margin: 0 0 24px;
    border-radius: 10px;
    border: 1px solid rgba(238, 255, 0, 0.16);
    background: rgba(255, 255, 255, 0.03);
    color: inherit;
    font-family: inherit;
    line-height: 1.35;
    box-sizing: border-box;
    flex-wrap: wrap;
}

.lg-reviewer-bar__avatar {
    flex: 0 0 auto;
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    text-decoration: none;
    box-shadow: 0 0 0 1px rgba(238, 255, 0, 0.2);
}

.lg-reviewer-bar__avatar img,
.lg-reviewer-bar__avatar svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.lg-reviewer-bar__meta {
    flex: 1 1 260px;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.lg-reviewer-bar__byline {
    font-size: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    opacity: 0.75;
}

.lg-reviewer-bar__name {
    color: inherit;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.01em;
    margin-left: 4px;
    border-bottom: 1px dotted currentColor;
}

.lg-reviewer-bar__name:hover,
.lg-reviewer-bar__name:focus {
    color: #eeff00;
    border-bottom-color: #eeff00;
    text-decoration: none;
}

.lg-reviewer-bar__bio {
    font-size: 13px;
    opacity: 0.85;
}

.lg-reviewer-bar__bio-sep {
    display: inline-block;
    margin: 0 6px;
    opacity: 0.5;
}

.lg-reviewer-bar__date {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 1.25;
}

.lg-reviewer-bar__date-label {
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.6;
}

.lg-reviewer-bar__date time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
    .lg-reviewer-bar {
        padding: 12px 14px;
        gap: 12px;
    }
    .lg-reviewer-bar__date {
        flex: 1 1 100%;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        padding-top: 10px;
        gap: 8px;
    }
}

/* =========================================================================
   2. REVIEWER PROFILE PAGE
   ========================================================================= */

.lg-reviewer {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 20px 60px;
    color: inherit;
    font-family: inherit;
    line-height: 1.55;
}

.lg-reviewer *,
.lg-reviewer *::before,
.lg-reviewer *::after {
    box-sizing: border-box;
}

.lg-reviewer h2 {
    font-size: 22px;
    letter-spacing: 0.02em;
    margin: 0 0 18px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
}

.lg-reviewer h3 {
    font-size: 16px;
    letter-spacing: 0.01em;
    margin: 0 0 10px;
    text-transform: none;
    font-weight: 700;
}

.lg-reviewer p {
    margin: 0 0 14px;
}

.lg-reviewer a {
    color: #eeff00;
    text-decoration: underline;
    text-decoration-color: rgba(238, 255, 0, 0.4);
    text-underline-offset: 3px;
}

.lg-reviewer a:hover {
    text-decoration-color: #eeff00;
}

/* --- Hero ------------------------------------------------------------ */

.lg-reviewer__hero {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
    padding: 24px;
    margin: 0 0 40px;
    border-radius: 14px;
    border: 1px solid rgba(238, 255, 0, 0.2);
    background:
        radial-gradient(120% 100% at 0% 0%, rgba(238, 255, 0, 0.06), transparent 55%),
        rgba(255, 255, 255, 0.02);
}

.lg-reviewer__portrait {
    margin: 0;
    width: 220px;
    height: 220px;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lg-reviewer__portrait img,
.lg-reviewer__portrait svg {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.lg-reviewer__eyebrow {
    margin: 0 0 6px;
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #eeff00;
    font-weight: 700;
}

.lg-reviewer__display-name {
    margin: 0 0 4px;
    font-size: 34px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.005em;
}

.lg-reviewer__post-nominals {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.7;
    margin-left: 4px;
}

.lg-reviewer__title {
    margin: 0 0 18px;
    font-size: 15px;
    opacity: 0.9;
}

.lg-reviewer__sep {
    opacity: 0.4;
    margin: 0 6px;
}

.lg-reviewer__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.lg-reviewer__stats li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    min-width: 0;
}

.lg-reviewer__stats strong {
    font-size: 16px;
    font-weight: 700;
    color: #eeff00;
    letter-spacing: -0.005em;
}

.lg-reviewer__stats span {
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0.6;
    line-height: 1.3;
}

/* --- Section layout -------------------------------------------------- */

.lg-reviewer__section {
    margin: 0 0 44px;
}

.lg-reviewer__grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
    gap: 32px;
    margin: 0 0 44px;
}

.lg-reviewer__section--about p {
    max-width: 68ch;
    line-height: 1.65;
}

.lg-reviewer__philosophy {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.lg-reviewer__philosophy h3 {
    color: #eeff00;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

/* --- Sidebar cards --------------------------------------------------- */

.lg-reviewer__section--sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lg-reviewer__card {
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(238, 255, 0, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.lg-reviewer__card--muted {
    border-color: rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.015);
}

.lg-reviewer__card h3 {
    margin: 0 0 12px;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #eeff00;
}

.lg-reviewer__card--muted h3 {
    color: inherit;
    opacity: 0.75;
}

.lg-reviewer__checklist {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: 13.5px;
    line-height: 1.45;
}

.lg-reviewer__checklist li {
    padding-left: 22px;
    position: relative;
}

.lg-reviewer__checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #eeff00;
    font-weight: 700;
}

.lg-reviewer__dl {
    margin: 0;
    display: grid;
    gap: 8px;
    font-size: 13px;
}

.lg-reviewer__dl dt {
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 11px;
    opacity: 0.6;
}

.lg-reviewer__dl dd {
    margin: 0 0 6px;
    line-height: 1.4;
}

/* --- Focus areas ----------------------------------------------------- */

.lg-reviewer__focus {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.lg-reviewer__focus-item {
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.lg-reviewer__focus-item h3 {
    font-size: 15px;
    margin: 0 0 6px;
    color: #eeff00;
}

.lg-reviewer__focus-item p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.45;
    opacity: 0.85;
}

/* --- Two-column layout (education + career) -------------------------- */

.lg-reviewer__two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* --- Timeline -------------------------------------------------------- */

.lg-reviewer__timeline {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

.lg-reviewer__timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.lg-reviewer__timeline li {
    display: grid;
    grid-template-columns: minmax(80px, 120px) 1fr;
    gap: 16px;
    padding: 4px 0 16px 20px;
    position: relative;
}

.lg-reviewer__timeline li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #eeff00;
    box-shadow: 0 0 0 3px rgba(238, 255, 0, 0.2);
}

.lg-reviewer__timeline-when {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.6;
    padding-top: 2px;
    font-variant-numeric: tabular-nums;
}

.lg-reviewer__timeline-what {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lg-reviewer__timeline-what strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.lg-reviewer__timeline-org {
    font-size: 13px;
    opacity: 0.75;
}

.lg-reviewer__timeline-note {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.45;
    opacity: 0.75;
}

/* --- Credentials ----------------------------------------------------- */

.lg-reviewer__credentials {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
    max-width: 62ch;
}

.lg-reviewer__credentials li {
    padding-left: 20px;
    position: relative;
    font-size: 14px;
    line-height: 1.45;
}

.lg-reviewer__credentials li::before {
    content: "▸";
    position: absolute;
    left: 0;
    top: 0;
    color: #eeff00;
}

/* --- Chips ----------------------------------------------------------- */

.lg-reviewer__chips {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lg-reviewer__chips li {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(238, 255, 0, 0.06);
    border: 1px solid rgba(238, 255, 0, 0.35);
    font-size: 13px;
    letter-spacing: 0.01em;
}

/* --- Publications ---------------------------------------------------- */

.lg-reviewer__pubs {
    padding-left: 22px;
    margin: 0;
    display: grid;
    gap: 10px;
    max-width: 76ch;
    font-size: 14px;
    line-height: 1.55;
}

.lg-reviewer__pubs li {
    padding-left: 4px;
}

/* --- Memberships ----------------------------------------------------- */

.lg-reviewer__memberships {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
}

.lg-reviewer__memberships li {
    padding: 10px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13.5px;
}

/* --- Disclosures ----------------------------------------------------- */

.lg-reviewer__section--disclosure {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.lg-reviewer__section--disclosure h2 {
    margin-bottom: 10px;
    border-bottom: 0;
    padding-bottom: 0;
    font-size: 13px;
    letter-spacing: 0.08em;
    opacity: 0.6;
}

.lg-reviewer__section--disclosure p {
    max-width: 76ch;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.55;
    opacity: 0.85;
}

/* --- Responsive collapse -------------------------------------------- */

@media (max-width: 900px) {
    .lg-reviewer__hero {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .lg-reviewer__portrait {
        width: 180px;
        height: 180px;
    }
    .lg-reviewer__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg-reviewer__grid {
        grid-template-columns: 1fr;
    }
    .lg-reviewer__display-name {
        font-size: 28px;
    }
}

@media (max-width: 520px) {
    .lg-reviewer {
        padding: 20px 14px 40px;
    }
    .lg-reviewer__hero {
        padding: 20px;
        gap: 20px;
    }
    .lg-reviewer__portrait {
        width: 140px;
        height: 140px;
    }
    .lg-reviewer__stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .lg-reviewer__two-col {
        gap: 28px;
    }
    .lg-reviewer__timeline li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
    .lg-reviewer__timeline-when {
        padding-left: 0;
    }
}
