﻿/* =========================================================
   Personality Subheader (Shared)
   Premium • Clean • Touch-friendly • Matches PTYPES design
   ========================================================= */

/* ---- Tokens (single source of truth) ---- */
:root {
    --bg-main: #F6F9FF;
    --card-bg: #FFFFFF;
    --text-main: #0f172a;
    --text-body: #334155;
    --text-muted: #475569;
    --border: #e5e7eb;
    --border-soft: rgba(0,0,0,.08);
    --accent: #0f172a;
    --accent-soft: rgba(15,23,42,.08);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 6px 18px rgba(2,6,23,.08);
    --font-sans: system-ui,-apple-system,"Segoe UI",Roboto,Arial;
    --font-serif: Georgia,"Times New Roman",serif;
}

/* ---- Subheader ---- */
.pti-subheader {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 14px;
    margin: 8px 0 18px;
}

.pti-subheader__left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.pti-subheader__brand {
    font-family: var(--font-serif);
    font-weight: 400;
    font-size: 14px;
    color: var(--text-main);
    white-space: nowrap;
    letter-spacing: .2px;
}

.pti-subheader__nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.pti-subheader__link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 13px;
    padding: 8px 10px;
    border-radius: 12px;
    transition: background .15s ease, transform .15s ease, color .15s ease;
}

    .pti-subheader__link:hover {
        background: var(--accent-soft);
        transform: translateY(-1px);
        color: var(--text-main);
    }

    .pti-subheader__link.is-active {
        background: rgba(15,23,42,.10);
        color: var(--text-main);
        font-weight: 700;
    }

.pti-subheader__right {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.pti-subheader__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(15,23,42,.06);
}

.pti-subheader__cta {
    text-decoration: none;
    background: #0f172a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s ease, filter .15s ease;
}

    .pti-subheader__cta:hover {
        transform: translateY(-1px);
        filter: brightness(0.92);
    }

/* ---- Mobile ---- */
@media (max-width: 640px) {
    .pti-subheader {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .pti-subheader__left {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .pti-subheader__right {
        justify-content: space-between;
    }

    .pti-subheader__cta {
        justify-content: center;
        flex: 1;
    }
}
