﻿/* RoboCrunch Info: social profiles, using the shared LingAge palette. */
@import url("./lingage-palette.css");

:root {
    color-scheme: light;
    scroll-behavior: smooth;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--gray-ee);
    color: var(--gray-48);
    font: 16px/1.6 system-ui, sans-serif;
}

a {
    color: var(--dark-violet);
    text-underline-offset: 4px;
}

    a:focus-visible, button:focus-visible {
        outline: 3px solid var(--violet);
        outline-offset: 4px;
    }

button {
    font: inherit;
    cursor: pointer;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1, h2, h3 {
    color: var(--very-dark-violet);
}

h2 {
    margin-bottom: 12px;
    font-size: 1.1rem;
    line-height: 1.35;
}

h3 {
    margin-bottom: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

main, .connections {
    min-width: 0;
}

[id] {
    scroll-margin-top: 100px;
}

.muted {
    color: var(--gray-48);
    font-size: 0.8rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray-dd);
    border-radius: 20px;
}

.network-header {
    position: sticky;
    z-index: 10;
    top: 0;
    background: var(--very-dark-violet);
    color: var(--white);
}

.header-inner {
    max-width: 1280px;
    min-height: 84px;
    margin: auto;
    padding: 14px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    text-decoration: none;
}

    .brand strong, .brand small {
        display: block;
    }

    .brand strong {
        font-size: 1.15rem;
        line-height: 1.3;
        letter-spacing: -0.02em;
    }

    .brand small {
        color: var(--bright-violet);
        font-size: 0.75rem;
    }

.brand-symbol {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}

    .brand-symbol path {
        fill: none;
        stroke: var(--bright-violet);
        stroke-width: 2;
    }

    .brand-symbol circle {
        fill: var(--soft-blue);
    }

        .brand-symbol circle:nth-of-type(2) {
            fill: var(--raspberry);
        }

        .brand-symbol circle:nth-of-type(3) {
            fill: var(--soft-green);
        }

.header-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

    .header-inner nav a {
        color: var(--white);
        font-size: 0.9rem;
        text-decoration: none;
    }

        .header-inner nav a:hover {
            text-decoration: underline;
        }

.network-header a:focus-visible {
    outline-color: var(--bright-violet);
}

.page-shell {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    max-width: 1280px;
    margin: 28px auto 48px;
    padding: 0 28px;
}

[data-concept] {
    --tint: var(--bright-violet);
    --ink: var(--very-dark-violet);
}

[data-concept="Node"] {
    --tint: var(--bright-blue);
    --ink: var(--very-dark-blue);
}

[data-concept="Edge"] {
    --tint: var(--bright-orange);
    --ink: var(--very-dark-orange);
}

[data-concept="Label"] {
    --tint: var(--bright-raspberry);
    --ink: var(--very-dark-raspberry);
}

[data-concept="Token"] {
    --tint: var(--bright-cyan);
    --ink: var(--very-dark-cyan);
}

[data-concept="Path"] {
    --tint: var(--bright-green);
    --ink: var(--very-dark-green);
}

[data-concept="SimpleGraphText"] {
    --tint: var(--bright-yellow);
    --ink: var(--very-dark-yellow);
}

.profile-card {
    overflow: hidden;
}

.profile-cover {
    position: relative;
    height: 112px;
    background: var(--bright-violet);
}

    .profile-cover svg {
        display: block;
        width: 100%;
        height: 100%;
    }

    .profile-cover path {
        fill: none;
        stroke: var(--dark-violet);
        stroke-width: 2;
    }

.cover-blue {
    fill: var(--soft-blue);
}

.cover-orange {
    fill: var(--soft-orange);
}

.cover-white {
    fill: var(--white);
}

.cover-green {
    fill: var(--soft-green);
}

.cover-raspberry {
    fill: var(--raspberry);
}

.profile-body {
    position: relative;
    padding: 56px 22px 22px;
}

.avatar-large {
    position: absolute;
    top: -44px;
    left: 18px;
    width: 88px;
    height: 88px;
    border: 6px solid var(--white);
    font-size: 2.1rem;
}

.concept-badge {
    display: inline-block;
    margin-bottom: 7px;
    color: var(--dark-violet);
    font-size: 0.75rem;
    font-weight: 650;
}

h1 {
    margin-bottom: 9px;
    font-size: clamp(1.7rem, 3vw, 2.1rem);
    line-height: 1.12;
    letter-spacing: -0.04em;
    overflow-wrap: anywhere;
}

.profile-summary {
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.profile-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 650;
    text-decoration: none;
}

.button-primary {
    background: var(--dark-violet);
    color: var(--white);
}

    .button-primary:hover {
        background: var(--very-dark-violet);
    }

.button-secondary {
    background: var(--white);
    border-color: var(--gray-dd);
    color: var(--gray-48);
}

    .button-secondary:hover {
        background: var(--gray-ee);
    }

.copy-status {
    margin: 14px 0 0;
    color: var(--dark-violet);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.profile-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 18px 22px;
    border-top: 1px solid var(--gray-ee);
}

    .profile-stats a {
        display: flex;
        flex-direction: column;
        color: var(--gray-48);
        font-size: 0.8rem;
        text-decoration: none;
    }

    .profile-stats strong {
        color: var(--very-dark-violet);
        font-size: 1.25rem;
    }

    .profile-stats a:hover span {
        text-decoration: underline;
    }

.section-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

    .section-title h2 {
        margin: 0;
        font-size: 1.25rem;
    }

.connection-group + .connection-group {
    margin-top: 26px;
}

.connection-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.connection-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    color: var(--gray-48);
    text-decoration: none;
    transition: transform 140ms ease, border-color 140ms ease;
}

    .connection-card:hover {
        transform: translateY(-2px);
        border-color: var(--violet);
    }

.connection-text {
    min-width: 0;
    flex: 1;
}

    .connection-text strong, .connection-text > span {
        display: block;
    }

    .connection-text strong {
        margin-bottom: 5px;
        color: var(--very-dark-violet);
        font-size: 0.98rem;
        overflow-wrap: anywhere;
    }

    .connection-text > span {
        font-size: 0.82rem;
        line-height: 1.5;
    }

.open-arrow {
    color: var(--dark-violet);
    font-size: 1.2rem;
}

.empty-state {
    padding: 20px;
    font-size: 0.9rem;
}

.text-link {
    font-size: 0.82rem;
    font-weight: 650;
}

.network-footer {
    max-width: 1280px;
    margin: auto;
    padding: 0 28px 30px;
    color: var(--gray-48);
    font-size: 0.75rem;
}

    .network-footer > span {
        display: block;
        margin-bottom: 10px;
    }

    .network-footer nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 22px;
    }

    .network-footer a {
        color: var(--gray-48);
    }

@media (max-width: 760px) {
    .header-inner {
        min-height: 78px;
        padding: 14px 20px;
        flex-wrap: wrap;
        gap: 12px;
    }

        .header-inner nav {
            gap: 20px;
        }

    .page-shell {
        grid-template-columns: 1fr;
        margin-top: 20px;
        padding: 0 16px;
        gap: 26px;
    }

    .profile-stats {
        padding: 16px 22px;
        gap: 20px;
    }

        .profile-stats a {
            flex: 1;
        }

    .network-footer {
        padding: 0 22px 28px;
    }

    [id] {
        scroll-margin-top: 140px;
    }
}

@media (max-width: 380px) {
    .profile-actions .button {
        width: 100%;
    }

    .connection-card {
        padding: 16px;
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    :root {
        scroll-behavior: auto;
    }

    .connection-card {
        transition: none;
    }

        .connection-card:hover {
            transform: none;
        }
}
/* The selected profile occupies the left column; discovery opens separately. */
.header-inner nav button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--white);
    font-size: 0.9rem;
}

    .header-inner nav button:hover {
        text-decoration: underline;
    }

.network-header button:focus-visible {
    outline-color: var(--bright-violet);
}

.profile-about {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--gray-ee);
}

    .profile-about h2 {
        font-size: 1rem;
    }

    .profile-about p {
        margin-bottom: 16px;
        font-size: 0.88rem;
    }

.explore-dialog {
    width: min(780px, calc(100% - 32px));
    max-height: calc(100svh - 32px);
    padding: 24px;
    overflow-y: auto;
    border: 1px solid var(--gray-dd);
    border-radius: 22px;
    background: var(--gray-ee);
    color: var(--gray-48);
}

    .explore-dialog::backdrop {
        background: var(--very-dark-violet);
        opacity: 0.65;
    }

    .explore-dialog .section-title {
        align-items: center;
    }

        .explore-dialog .section-title p {
            margin: 6px 0 0;
        }

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

    .explore-grid .connection-card {
        height: 100%;
    }

    .explore-grid [aria-current="page"] {
        border-color: var(--violet);
    }

@media (max-width: 580px) {
    .explore-grid {
        grid-template-columns: 1fr;
    }

    .explore-dialog {
        padding: 18px;
    }
}

.profile-cover {
    display: none;
}

.profile-body {
    padding: 24px;
}