/*
 * Profile page catalogues (services + samples). Scoped under .al-scope (tokens come from al-samples.css),
 * independent of the site theme CSS. Everything is prefixed with "al-".
 */
.al-scope--embed { background: transparent; padding: 0; }

/* ---------- section card ---------- */
.al-section {
    margin-top: 24px; padding: 24px; background: var(--al-surface); border: 1px solid var(--al-border);
    border-radius: var(--al-radius); box-shadow: var(--al-shadow);
}
.al-section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.al-section__title { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 600; color: var(--al-text); }
.al-section__count { display: inline-grid; place-items: center; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--al-chip); color: var(--al-muted); font-size: 13px; font-weight: 600; }
.al-section__actions { display: flex; gap: 8px; align-items: center; }
.al-section__more { margin-top: 16px; text-align: center; }
.al-section__more a { color: var(--al-accent-strong); font-weight: 600; text-decoration: none; }
.al-section__more a:hover { text-decoration: underline; }
.al-btn--sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.al-section .al-empty { padding: 32px 12px; }

/* ---------- service cards ---------- */
.al-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.al-svc {
    display: flex; flex-direction: column; background: var(--al-surface); border: 1px solid var(--al-border);
    border-radius: 14px; overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s;
}
.al-svc:hover { border-color: #d5dae1; box-shadow: 0 8px 28px rgba(15, 23, 42, .1); transform: translateY(-2px); }
.al-svc:focus-within { border-color: var(--al-accent); box-shadow: 0 0 0 4px var(--al-accent-soft); }
.al-svc__thumb { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--al-chip); overflow: hidden; }
.al-svc__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.al-svc:hover .al-svc__thumb img { transform: scale(1.04); }
.al-svc__badge {
    position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
    border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, .92); color: var(--al-text); backdrop-filter: blur(4px);
}
.al-svc__badge--pending { color: #92400e; }
.al-svc__badge--rejected { color: #475569; }
.al-svc__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 16px 14px; flex: 1; }
.al-svc__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--al-muted); min-height: 20px; }
.al-svc__rating { display: inline-flex; align-items: center; gap: 4px; color: var(--al-text); font-weight: 600; }
.al-svc__rating svg { width: 14px; height: 14px; color: #f59e0b; fill: currentColor; }
.al-svc__rating span { color: var(--al-muted); font-weight: 400; }
.al-svc__title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.al-svc__title a { color: var(--al-text); text-decoration: none; }
.al-svc__title a:hover { color: var(--al-accent-strong); }
.al-svc__title a:focus-visible { outline: 3px solid var(--al-accent-soft); box-shadow: 0 0 0 2px var(--al-accent); border-radius: 4px; }
.al-svc__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--al-border); }
.al-svc__price { font-size: 18px; font-weight: 700; color: var(--al-text); }
.al-svc__price s { margin-left: 6px; font-size: 13px; font-weight: 400; color: var(--al-muted); }
.al-svc__price small { display: block; font-size: 11px; font-weight: 500; color: var(--al-muted); text-transform: uppercase; letter-spacing: .04em; }
.al-svc__delivery { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--al-chip); font-size: 12px; font-weight: 500; color: #475569; white-space: nowrap; }
.al-svc__delivery svg { width: 14px; height: 14px; }

/* owner controls */
.al-svc__admin { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding: 10px 12px 12px 16px; background: var(--al-bg); border-top: 1px solid var(--al-border); }
.al-svc__actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.al-svc__actions .al-iconbtn { width: 36px; height: 36px; border-radius: 10px; }
.al-svc__actions .al-iconbtn .al-icon, .al-svc__actions .al-iconbtn svg { width: 18px; height: 18px; }
.al-iconbtn.is-disabled { opacity: .4; pointer-events: none; }
.al-pill--muted { background: var(--al-chip); color: var(--al-muted); }
.al-textbtn { border: 0; background: transparent; padding: 0 8px; height: 32px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--al-accent-strong); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.al-textbtn:hover { background: var(--al-accent-soft); }
.al-textbtn:focus-visible { outline: 3px solid var(--al-accent-soft); box-shadow: 0 0 0 2px var(--al-accent); }

/* availability toggle */
.al-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 500; color: #475569; margin: 0; }
.al-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.al-switch__track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #cbd5e1; transition: background .15s; flex: none; }
.al-switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .25); transition: transform .15s; }
.al-switch input:checked + .al-switch__track { background: var(--al-accent); }
.al-switch input:checked + .al-switch__track::after { transform: translateX(16px); }
.al-switch input:focus-visible + .al-switch__track { outline: 3px solid var(--al-accent-soft); box-shadow: 0 0 0 2px var(--al-accent); }

/* ---------- sample catalogue ---------- */
.al-samples-list { display: flex; flex-direction: column; gap: 4px; margin: 0 -8px; }
.al-sample {
    display: grid; grid-template-columns: 56px minmax(0, 1fr) 40px; gap: 16px; align-items: center; padding: 12px 8px;
    border-radius: 14px; box-shadow: inset 0 0 0 1px transparent; transition: background .15s, box-shadow .15s;
}
.al-sample:hover { background: var(--al-bg); box-shadow: inset 0 0 0 1px var(--al-border); }
.al-sample:focus-within { background: var(--al-accent-soft); box-shadow: inset 0 0 0 2px var(--al-accent); }
.al-sample__main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.al-sample__head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.al-sample__title { margin: 0; font-size: 15px; font-weight: 600; color: var(--al-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-sample .al-pill { flex: none; }

@media (max-width: 575px) {
    .al-section { padding: 18px; }
    .al-svc-grid { grid-template-columns: 1fr; }
    .al-sample { grid-template-columns: 48px minmax(0, 1fr) 36px; gap: 12px; }
    .al-sample .al-cover { width: 48px; height: 48px; }
}

/* ---------- about me ---------- */
.al-about { margin: 0; color: #475569; font-size: 15px; line-height: 1.7; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.al-about.is-open { display: block; -webkit-line-clamp: unset; overflow: visible; }
.al-about__toggle { margin-top: 8px; padding-left: 0; }

/* ---------- stats ---------- */
.al-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.al-stat { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--al-border); border-radius: 14px; background: var(--al-surface); transition: border-color .15s, box-shadow .15s; }
.al-stat:hover { border-color: #d5dae1; box-shadow: var(--al-shadow); }
.al-stat__icon { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.al-stat__icon img { width: 22px; height: 22px; display: block; }
.al-stat__icon--earn { background: #eef2ff; color: #4f46e5; }
.al-stat__icon--done { background: #e7f8ef; }
.al-stat__icon--active { background: #fff4e0; }
.al-stat__value { display: block; font-size: 20px; line-height: 1.2; font-weight: 700; color: var(--al-text); }
.al-stat__label { display: block; font-size: 13px; color: var(--al-muted); }

/* ---------- portfolio ---------- */
.al-port-grid .al-empty { grid-column: 1 / -1; }
.al-port-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.al-port {
    display: flex; flex-direction: column; gap: 4px; padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer;
    font: inherit; color: inherit; border-radius: 14px; min-width: 0;
}
.al-port__thumb { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--al-chip); border: 1px solid var(--al-border); transition: box-shadow .2s, border-color .15s; }
.al-port__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.al-port__view {
    position: absolute; inset: auto 10px 10px auto; height: 28px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 999px;
    background: rgba(15, 23, 42, .78); color: #fff; font-size: 12px; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s;
}
.al-port:hover .al-port__thumb, .al-port:focus-visible .al-port__thumb { border-color: #d5dae1; box-shadow: 0 8px 24px rgba(15, 23, 42, .12); }
.al-port:hover .al-port__thumb img { transform: scale(1.05); }
.al-port:hover .al-port__view, .al-port:focus-visible .al-port__view { opacity: 1; transform: none; }
.al-port:focus-visible { outline: none; }
.al-port:focus-visible .al-port__thumb { border-color: var(--al-accent); box-shadow: 0 0 0 4px var(--al-accent-soft); }
.al-port__title { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--al-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.al-port__date { font-size: 12px; color: var(--al-muted); }

@media (max-width: 575px) { .al-port-grid { grid-template-columns: 1fr; } }

/* ---------- profile hero (cover) ---------- */
/* Details on the left over a gradient; the cover image is a diagonal-cut panel on the right. */
.al-hero {
    position: relative; display: flex; align-items: center; min-height: 320px; margin-bottom: 8px; overflow: hidden;
    border-radius: var(--al-radius); box-shadow: var(--al-shadow);
    background: linear-gradient(115deg, #1e2a78 0%, #17508a 45%, #0f766e 100%); color: #fff;
}
.al-hero__cover {
    position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 15% 100%);
    background: center / cover no-repeat rgba(255, 255, 255, .1);
}
/* no cover image: keep the diagonal visible with a soft, audio-flavoured pattern */
.al-hero__cover:not([style]) {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .22) 0 3px, transparent 3px 11px) center / 100% 46% no-repeat,
        linear-gradient(135deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05));
}
.al-hero__body { position: relative; z-index: 1; width: 52%; padding: 40px 28px 40px 44px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.al-hero__avatar { position: relative; flex: none; width: 104px; height: 104px; }
.al-hero__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 4px solid rgba(255, 255, 255, .95); background: var(--al-chip); box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.al-hero__dot { position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; background: #94a3b8; border: 3px solid #fff; }
.al-hero__dot.is-online { background: #22c55e; }
.al-hero__main { min-width: 0; }
.al-hero__name { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; margin: 0; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.al-hero__verified { width: 24px; height: 24px; color: #fff; flex: none; }
.al-hero .al-pill--accent { background: rgba(255, 255, 255, .2); color: #fff; }
.al-hero__title { margin: 8px 0 0; font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .88); }
.al-hero__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.al-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 13px; backdrop-filter: blur(4px); }
.al-chip svg { width: 15px; height: 15px; flex: none; }
.al-chip strong { color: #fff; }
.al-chip span { color: rgba(255, 255, 255, .72); }
.al-chip .al-chip__star { color: #fbbf24; }
.al-chip--ok { background: rgba(34, 197, 94, .22); border-color: rgba(134, 239, 172, .4); color: #dcfce7; font-weight: 500; }
.al-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; flex: none; }

@media (max-width: 991px) {
    .al-hero__body { width: 60%; padding-left: 32px; }
    .al-hero__cover { width: 50%; }
}
@media (max-width: 767px) {
    .al-hero { display: block; min-height: 0; }
    .al-hero__cover { position: relative; width: 100%; height: 170px; clip-path: polygon(0 0, 100% 0, 100% 82%, 0 100%); }
    .al-hero__body { width: auto; padding: 0 22px 28px; margin-top: -44px; }
    .al-hero__name { font-size: 26px; }
}

/* ---------- breadcrumb ---------- */
.al-crumbtrail { margin: 0 0 14px; }
.al-crumbtrail ul { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--al-muted); }
.al-crumbtrail li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.al-crumbtrail li + li::before { content: ""; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .5; margin-right: 2px; }
.al-crumbtrail a { color: var(--al-muted); text-decoration: none; transition: color .15s; }
.al-crumbtrail a:hover, .al-crumbtrail a:focus-visible { color: var(--al-accent); }
.al-crumbtrail [aria-current] { color: var(--al-text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; }
