/* ── Profile header ── */
.profile-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid var(--border);
    box-shadow: 0 0 20px rgba(126, 184, 247, 0.2);
    object-fit: cover;
    flex-shrink: 0;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
}

h1 {
    font-size: 1.65rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.5px;
}

.subtitle {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0;
}

/* Social icon bar */
.social-bar {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin: 0.5rem 0;
}

.social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
}

.social-bar a:hover {
    background: rgba(126, 184, 247, 0.12);
    border-color: rgba(126, 184, 247, 0.4);
}

.social-bar img {
    width: 1.2rem;
    height: 1.2rem;
    opacity: 0.85;
}

.social-bar img.mono {
    filter: brightness(0) invert(1);
}

/* Bio — full width below the avatar row */
.bio {
    color: var(--muted);
    font-size: 0.875rem;
    line-height: 1.55;
    margin: 0;
}

/* ── Sections grid: left col stacked, right col = Contact ── */
.sections-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 2.5rem;
}

/* Row 1: Skills spans full width */
.sec-skills  { grid-column: 1 / -1; grid-row: 1; }

/* Row 2–3 left column: Code → Payment */
.sec-code    { grid-column: 1; grid-row: 2; }
.sec-payment { grid-column: 1; grid-row: 3; }

/* Right column: Contact spans rows 2–3 */
.sec-contact { grid-column: 2; grid-row: 2 / 4; }

section {
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
    margin-top: 1.1rem;
}

/* Remove top margin/border for row-1 section (Skills is full-width row 1) */
.sec-skills {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Vertical divider between columns */
.sec-contact {
    padding-left: 2.5rem;
    border-left: 1px solid var(--border);
    margin-left: -2.5rem;
}

h3 {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(144, 147, 168, 0.55);
    margin: 0.8rem 0 0.5rem;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--text);
    font-size: 0.875rem;
}

.link-row .lbl {
    color: var(--muted);
    flex-shrink: 0;
}

.logo-icon {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    object-fit: contain;
    opacity: 0.85;
}

/* Dark/mono SVGs that need inverting for dark background */
.logo-icon.mono {
    filter: brightness(0) invert(1);
    opacity: 0.65;
}

/* Discord SVG has extra internal padding, compensate visually */
.logo-icon.oversized {
    width: 1.4rem;
    height: 1.4rem;
}

/* Redacted digit block */
.redact {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: transparent;
    border-radius: 3px;
    margin: 0 1.5px;
    user-select: none;
    vertical-align: middle;
    height: 0.85em;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.redact-1 { width: 0.85ch; }

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.1rem;
    height: 1.1rem;
    font-size: 1rem;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.8;
    font-style: normal;
}

/* Skills tags */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    background: rgba(126, 184, 247, 0.1);
    border: 1px solid rgba(126, 184, 247, 0.22);
    color: var(--accent);
    border-radius: 4px;
    padding: 0.08rem 0.5rem;
    font-size: 0.78rem;
}

/* ── Mobile fallback ── */
@media (max-width: 640px) {
    main { padding: 1.5rem 1.25rem; }
    .sections-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .sec-skills, .sec-code, .sec-payment, .sec-contact {
        grid-column: 1;
        grid-row: auto;
        padding-left: 0;
        border-left: none;
        margin-left: 0;
        padding-top: 1.1rem;
        border-top: 1px solid var(--border);
        margin-top: 1.1rem;
    }
    .sec-skills { grid-column: 1; margin-top: 0; padding-top: 0; border-top: none; }
}
