﻿/* ============================================================================
   Vehicly /profiel — Native-app mobile view
   Renders alongside the desktop layout; visibility-toggled by mobile-shell mode.
   ============================================================================ */

/* Hide mobile shell on desktop, hide desktop shell on mobile */
.pfm-shell { display: none; }
html[data-vehicly-mobile="1"] .pfm-shell {
    display: block;
    max-width: 720px;
    margin: 0 auto;
    padding: 12px 14px 32px;
    color: var(--vh-text, #1c1917);
    font-family: var(--vh-font-body, Inter, sans-serif);
}
html[data-vehicly-mobile="1"] .pf-shell { display: none !important; }
/* Also hide layout.js-injected header/footer on mobile (mobile-shell.js handles those) */
html[data-vehicly-mobile="1"] body[data-page="profiel"] [data-vehicly-header],
html[data-vehicly-mobile="1"] body[data-page="profiel"] [data-vehicly-footer] {
    display: none !important;
}

/* Hero */
.pfm-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 6px 18px;
}
.pfm-avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--vh-primary, #F2C94C) 0%, #E0B43A 100%);
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(242,201,76,.35);
}
.pfm-avatar svg { width: 28px; height: 28px; }
.pfm-identity {
    flex: 1;
    min-width: 0;
}
.pfm-name {
    font-family: var(--vh-font-display, Inter, sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--vh-text, #1c1917);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pfm-email {
    margin-top: 2px;
    font-size: .82rem;
    color: var(--vh-text-secondary, #57534e);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pfm-plan-chip {
    flex-shrink: 0;
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    background: rgba(0,0,0,.06);
    color: var(--vh-text-secondary, #57534e);
    padding: 4px 10px;
    border-radius: 100px;
}
.pfm-plan-chip[data-plan="basic"] { background: rgba(59,130,246,.12); color: #1d4ed8; }
.pfm-plan-chip[data-plan="pro"]   { background: rgba(242,201,76,.22); color: #c2700a; }
.pfm-plan-chip[data-plan="dealer"]{ background: rgba(168,85,247,.12); color: #6d28d9; }

/* Card base */
.pfm-card {
    background: var(--vh-surface, #fff);
    border: 1px solid var(--vh-border, #e7e5e4);
    border-radius: 16px;
    margin: 0 0 12px;
    overflow: hidden;
}

/* Credits card */
.pfm-credits-card {
    padding: 14px 16px;
}
.pfm-credits-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}
.pfm-card-label {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--vh-text-tertiary, #6e6963);
}
.pfm-credits-text {
    font-size: .95rem;
    font-weight: 600;
    color: var(--vh-text, #1c1917);
}
.pfm-credits-bar {
    height: 8px;
    background: rgba(0,0,0,.06);
    border-radius: 100px;
    overflow: hidden;
}
.pfm-credits-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--vh-primary, #F2C94C) 0%, #E0B43A 100%);
    border-radius: 100px;
    transition: width .5s cubic-bezier(.22,1,.36,1);
}
.pfm-credits-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding: 10px 12px;
    background: rgba(242,201,76,.1);
    color: var(--vh-primary-dark, #C49A22);
    border: 1px solid rgba(242,201,76,.3);
    border-radius: 10px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: background .15s ease, transform .08s ease-out;
}
.pfm-credits-cta:active {
    background: rgba(242,201,76,.18);
    transform: scale(0.98);
}

/* List card with rows */
.pfm-list { padding: 4px 0; }
.pfm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,.04);
    text-align: left;
    text-decoration: none;
    color: var(--vh-text, #1c1917);
    font-family: inherit;
    font-size: .95rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .12s ease;
}
.pfm-row:last-child { border-bottom: none; }
.pfm-row:active { background: rgba(0,0,0,.03); }
.pfm-row-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: rgba(242,201,76,.12);
    color: var(--vh-primary-dark, #C49A22);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.pfm-row-icon svg { width: 18px; height: 18px; }
.pfm-row-label {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pfm-row-meta {
    flex-shrink: 0;
    font-size: .82rem;
    color: var(--vh-text-tertiary, #6e6963);
}
.pfm-row-chev {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--vh-text-tertiary, #6e6963);
}
/* Accent + danger variants */
.pfm-row--accent .pfm-row-icon {
    background: rgba(59,130,246,.12);
    color: #1d4ed8;
}
.pfm-row--accent .pfm-row-label { color: #1d4ed8; font-weight: 600; }
.pfm-row--danger .pfm-row-icon {
    background: rgba(239,68,68,.12);
    color: #dc2626;
}
.pfm-row--danger .pfm-row-label { color: #dc2626; }

/* Footer meta */
.pfm-footer-meta {
    margin: 20px 0 8px;
    text-align: center;
    font-size: .75rem;
    color: var(--vh-text-tertiary, #6e6963);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .pfm-credits-fill,
    .pfm-credits-cta,
    .pfm-row { transition: none !important; }
}
