/*
 * HAVEN Website v3
 * Personnel File v0.1 candidate
 *
 * Individual player dossier using the established dark industrial
 * Statistics Department visual language.
 */

body.player-profile-page-v3 {
    min-width: 0;
}

.player-profile-page-v3 .page-main {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 18% 8%,
            rgba(207, 102, 38, 0.08),
            transparent 34rem
        ),
        linear-gradient(
            180deg,
            rgba(7, 11, 14, 0.98),
            rgba(10, 14, 18, 0.98)
        );
}

.player-profile-page-v3 .page-main::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.16;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.025) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.018) 1px,
            transparent 1px
        );
    background-size:
        48px 48px;
}

.player-profile-page-v3 .page-shell {
    position: relative;
    z-index: 1;
}

.profile-breadcrumb {
    margin: 4px 0 18px;
}

.profile-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(260px, 0.75fr);
    gap: 22px;
    padding: 24px;
    border: 1px solid #2b343b;
    background:
        linear-gradient(
            90deg,
            rgba(5, 9, 12, 0.94) 0%,
            rgba(5, 9, 12, 0.88) 32%,
            rgba(5, 9, 12, 0.70) 64%,
            rgba(5, 9, 12, 0.84) 100%
        ),
        linear-gradient(
            180deg,
            rgba(5, 9, 12, 0.15),
            rgba(5, 9, 12, 0.58)
        ),
        url("../img/haven-v3-industrial-bg.png");
    background-position:
        center,
        center,
        center 52%;
    background-size:
        auto,
        auto,
        cover;
    background-repeat:
        no-repeat;
    box-shadow:
        inset 0 0 0 1px rgba(0, 0, 0, 0.28),
        0 18px 52px rgba(0, 0, 0, 0.28);
}

.profile-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.025),
            rgba(0, 0, 0, 0.10)
        );
}

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

.profile-identity {
    display: flex;
    align-items: center;
    gap: 24px;
    min-width: 0;
}


.profile-avatar-stack {
    position: relative;
    flex: 0 0 auto;
    width: 144px;
    min-width: 144px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-hero-art {
    position: absolute;
    left: 26px;
    top: 50%;
    transform: translateY(-50%);
    width: 260px;
    height: 260px;
    pointer-events: none;
    opacity: 0.22;
    z-index: 0;
    overflow: hidden;
    mask-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.72) 42%,
            rgba(0, 0, 0, 0.18) 78%,
            rgba(0, 0, 0, 0) 100%
        );
    -webkit-mask-image:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.72) 42%,
            rgba(0, 0, 0, 0.18) 78%,
            rgba(0, 0, 0, 0) 100%
        );
}

.profile-hero-art-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border:
        1px solid
        rgba(255, 255, 255, 0.08);
    filter:
        saturate(1.08)
        contrast(1.04);
}

.profile-avatar {
    position: relative;
    z-index: 1;
}

.profile-avatar {
    flex: 0 0 auto;
    width: 144px;
    height: 144px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.24);
    box-shadow:
        0 0 0 5px rgba(255, 255, 255, 0.025);
}

.profile-identity-copy {
    min-width: 0;
}

.profile-classification-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.profile-record-number {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.profile-hero h1 {
    margin:
        6px
        0
        6px;
    max-width: 760px;
    font-size:
        clamp(
            2rem,
            4vw,
            3.6rem
        );
    line-height: 0.96;
}

.profile-role {
    margin-top: 9px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.67);
}

.profile-identity-links {
    margin-top: 20px;
}

.profile-service-meta {
    margin: 0;
    display: grid;
    align-content: stretch;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-service-meta > div {
    padding:
        10px
        0
        10px
        20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-service-meta > div:last-child {
    border-bottom: 0;
}

.profile-service-meta dt {
    margin-bottom: 5px;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.46);
}

.profile-service-meta dd {
    margin: 0;
    font-size: 0.96rem;
    color: rgba(255, 255, 255, 0.9);
}

.profile-id-value {
    overflow-wrap: anywhere;
}

.profile-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 12px;
}

.profile-stat-card {
    position: relative;
    min-height: 132px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background:
        linear-gradient(
            180deg,
            rgba(25, 31, 37, 0.93),
            rgba(15, 20, 24, 0.94)
        );
}

.profile-stat-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 42px;
    height: 2px;
    background: #d16a2d;
}

.profile-stat-label {
    min-height: 30px;
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

.profile-stat-value {
    margin-top: 6px;
    font-size: 1.78rem;
    line-height: 1;
    color: rgba(255, 255, 255, 0.96);
}

.profile-stat-note {
    margin-top: 10px;
    font-size: 0.77rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.48);
}

.profile-table-shell {
    overflow-x: auto;
}

.profile-data-table {
    min-width: 780px;
}

.profile-primary-cell {
    font-weight: 650;
    color: rgba(255, 255, 255, 0.92);
}

.profile-secondary-cell {
    margin-top: 3px;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.43);
}

.profile-raw-token {
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;
    font-size: 0.73rem;
    color: rgba(255, 255, 255, 0.45);
}

.result-chip {
    display: inline-flex;
    min-width: 48px;
    justify-content: center;
    padding: 4px 7px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.67rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.result-chip.win {
    border-color: rgba(209, 106, 45, 0.55);
    color: #ef9a66;
    background: rgba(209, 106, 45, 0.1);
}

.result-chip.other {
    color: rgba(255, 255, 255, 0.52);
    background: rgba(255, 255, 255, 0.025);
}

.telemetry-panel {
    padding: 22px;
    border:
        1px solid
        rgba(209, 106, 45, 0.4);
    background:
        linear-gradient(
            145deg,
            rgba(41, 28, 21, 0.94),
            rgba(17, 20, 23, 0.97)
        );
}

.telemetry-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-top: 14px;
}

.telemetry-heading h2 {
    margin-bottom: 0;
}

.telemetry-coverage {
    max-width: 430px;
    text-align: right;
    font-size: 0.78rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.55);
}

.telemetry-coverage strong {
    color: rgba(255, 255, 255, 0.86);
}

.telemetry-warning {
    max-width: 980px;
    margin:
        18px
        0
        20px;
    color: rgba(255, 255, 255, 0.63);
}

.telemetry-stat-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );
    gap: 10px;
}

.telemetry-stat-grid > div {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.085);
    background: rgba(0, 0, 0, 0.16);
}

.telemetry-stat-grid span {
    display: block;
    min-height: 30px;
    font-size: 0.7rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.44);
}

.telemetry-stat-grid strong {
    display: block;
    margin-top: 5px;
    font-size: 1.35rem;
    font-weight: 650;
    color: rgba(255, 255, 255, 0.94);
}

.telemetry-stat-grid small {
    display: block;
    margin-top: 4px;
    font-size: 0.66rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.42);
}

.telemetry-subsection {
    margin-top: 24px;
}

.telemetry-subsection h3 {
    margin:
        0
        0
        12px;
}

.telemetry-table {
    min-width: 520px;
}

.profile-record-note {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(18, 23, 27, 0.92);
}

.profile-record-note h2 {
    margin:
        12px
        0
        8px;
}

.profile-record-note p {
    max-width: 980px;
    margin: 0;
    color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 1000px) {

    .profile-hero {
        grid-template-columns: 1fr;
    }

    .profile-service-meta {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
        border-left: 0;
        border-top:
            1px solid
            rgba(255, 255, 255, 0.1);
    }

    .profile-service-meta > div {
        padding:
            14px
            14px
            4px
            0;
    }

    .profile-stat-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}

@media (max-width: 680px) {

    .profile-hero {
        padding: 18px;
    }

    .profile-identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .profile-avatar-stack {
        width: 112px;
        min-width: 112px;
    }

    .profile-avatar {
        width: 112px;
        height: 112px;
    }

    .profile-hero-art {
        left: 16px;
        width: 180px;
        height: 180px;
        opacity: 0.18;
    }

    .profile-service-meta,
    .profile-stat-grid,
    .telemetry-stat-grid {
        grid-template-columns: 1fr;
    }

    .profile-service-meta > div {
        padding-right: 0;
    }

    .telemetry-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .telemetry-coverage {
        text-align: left;
    }

}


/* HAVEN FIELD REPORT v0.1 */

.haven-field-report-section .field-report {
    position: relative;
    padding: 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    background:
        linear-gradient(
            180deg,
            rgba(25, 31, 37, 0.93),
            rgba(15, 20, 24, 0.94)
        );
}

.haven-field-report-section .field-report::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 42px;
    height: 2px;
    background: #d16a2d;
}

.haven-field-report-section .field-report p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.72;
}

.haven-field-report-section .field-report p + p {
    margin-top: 17px;
}
