/*
 * The public card page (resources/views/card-v2.blade.php). The dashboard's editor preview loads this
 * same file into its phone and computer frames, so what people pick there is exactly what visitors see.
 *
 * <html> carries the owner's choices:
 *   data-look    the look in use on this screen (phone look under 761px wide, computer look above)
 *   data-scheme  auto | light | dark
 * --accent and --on-accent are set inline by the page.
 */

:root { --ink: #1f2430; --muted: #6b707c; --line: #e7e8ec; --canvas: #f4f5f7; --paper: #fff; --soft: #f7f7f9; color-scheme: light; }
html[data-scheme="dark"] { --ink: #eceef2; --muted: #a2a7b3; --line: #2c313c; --canvas: #12151b; --paper: #1a1e26; --soft: #222731; color-scheme: dark; }
@media (prefers-color-scheme: dark) {
    html[data-scheme="auto"] { --ink: #eceef2; --muted: #a2a7b3; --line: #2c313c; --canvas: #12151b; --paper: #1a1e26; --soft: #222731; color-scheme: dark; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 'DM Sans', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.page { max-width: 480px; margin: 0 auto; background: var(--paper); min-height: 100vh; padding-bottom: 90px; }
@media (min-width: 520px) { body { padding: 24px 0; } .page { border-radius: 22px; overflow: hidden; min-height: auto; box-shadow: 0 12px 40px #0000001a; } }

/* fixed 3:1 shape, the same as the crop in the editor, so phone and computer match */
.cover { aspect-ratio: 3 / 1; background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #111)); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.head { padding: 0 20px; text-align: center; }
.avatar { width: 116px; height: 116px; border-radius: 50%; margin: -62px auto 0; border: 4px solid var(--paper); background: var(--soft); overflow: hidden; position: relative;
    display: grid; place-items: center; font: 800 38px Manrope, sans-serif; color: var(--accent); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
h1 { font: 800 25px/1.2 Manrope, sans-serif; letter-spacing: -.02em; margin: 12px 0 2px; }
.title { color: var(--muted); margin: 0; }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 16px; border-radius: 12px;
    border: 1.5px solid var(--line); background: var(--paper); font-weight: 700; font-size: 15px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.wide { grid-column: 1 / -1; }
.btn:active { transform: scale(.98); }
.btn { white-space: nowrap; }
@media (max-width: 380px) { .btn { padding: 0 10px; gap: 6px; font-size: 14px; } .head { padding: 0 16px; } section { padding-left: 16px; padding-right: 16px; } }

/* always one row: up to six buttons share the width, so none is left alone on a second line */
.quick { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 64px); justify-content: center; gap: 2px; margin: 18px 0 4px; }
.quick > a { display: grid; justify-items: center; gap: 4px; min-width: 0; font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.quick .ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 12%, var(--paper)); color: var(--accent); }

section { padding: 18px 20px 4px; }
h2 { font: 700 12px Manrope, sans-serif; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 10px; }
.about { white-space: pre-line; margin: 0; }
.list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--soft); min-height: 56px; }
.row .ic { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--paper); color: var(--accent); }
.row .txt { min-width: 0; flex: 1; display: grid; }
.row .txt b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .txt small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .go { color: var(--muted); flex: none; }
.socials { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.socials .row { min-height: 52px; padding: 10px 12px; }

.video { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; border: 0; padding: 0; }
.video img { width: 100%; height: 100%; object-fit: cover; opacity: .85; display: block; }
.video .play { position: absolute; inset: 0; margin: auto; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; }
.video iframe { width: 100%; height: 100%; border: 0; }
.video-title { font-size: 13px; color: var(--muted); margin: 6px 2px 12px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery a { aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--soft); }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* the 3 or 6 photo gallery: products, work, a shop window */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.shot { display: grid; gap: 6px; align-content: start; min-width: 0; }
.shot img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--soft); display: block; }
.shot .cap { display: flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--ink); }
.shot .cap svg { flex: none; color: var(--muted); }
a.shot:active img { transform: scale(.98); }
@media (min-width: 761px) { .shots { gap: 14px; } .shot .cap { font-size: 13.5px; } }
iframe.audio { width: 100%; border: 0; border-radius: 12px; margin-bottom: 8px; }

footer { text-align: center; padding: 28px 20px 8px; display: grid; gap: 14px; justify-items: center; }
.brand { display: inline-flex; align-items: center; gap: 10px; background: #15171c; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13px; font-weight: 600; }
.brand img { height: 22px; width: auto; display: block; }
.linkish { background: none; border: 0; color: var(--muted); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }

.dock { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--paper) 92%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px; max-width: 480px; margin: 0 auto;
    transform: translateY(110%); transition: transform .2s ease; z-index: 5; }
.dock.on { transform: none; }
/* the wide computer looks keep the buttons in view already */
@media (min-width: 761px) { html:not([data-look="signature"]):not([data-look="minimal"]) .dock { display: none; } }

dialog { border: 0; padding: 0; width: min(480px, 100%); max-width: 100%; margin: auto auto 0; border-radius: 20px 20px 0 0; background: var(--paper); color: var(--ink); max-height: 92vh; }
@media (min-width: 520px) { dialog { margin: auto; border-radius: 20px; } }
dialog::backdrop { background: #0008; }
.sheet { padding: 22px 20px calc(20px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.sheet h3 { font: 800 20px Manrope, sans-serif; margin: 0; }
.sheet p { margin: 0; color: var(--muted); font-size: 14px; }
.sheet label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.sheet input, .sheet textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px; font: inherit; font-size: 16px; background: var(--paper); color: var(--ink); }
.sheet input:focus, .sheet textarea:focus { border-color: var(--accent); outline: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet label.opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; background: var(--soft); border-radius: 10px; padding: 12px; cursor: pointer; }
.sheet label.opt input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); }
.sheet label.opt small { display: block; color: var(--muted); font-size: 12.5px; }
.err { color: #c0392b; font-size: 12.5px; font-weight: 500; }
.close { position: absolute; top: 12px; right: 12px; border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; line-height: 1; }
.done { text-align: center; justify-items: center; }
.check { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, var(--paper)); color: var(--accent); display: grid; place-items: center; }
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); background: #15171c; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 9; }
.toast.on { opacity: 1; }
[hidden] { display: none !important; }


/* ---------- Signature: the default every card starts on (the styles above) ---------- */


/* ---------- Bold: the header in your colour, round buttons; wide header on a computer ---------- */
[data-look="bold"] .head { background: var(--accent); color: var(--on-accent); padding-bottom: 24px; }
[data-look="bold"] .avatar { border-color: var(--accent); }
[data-look="bold"] h1 { font-size: 30px; }
[data-look="bold"] .title { color: inherit; opacity: .85; }
[data-look="bold"] .btn { border-radius: 999px; }
[data-look="bold"] .head .btn { background: transparent; color: var(--on-accent); border-color: color-mix(in srgb, var(--on-accent) 55%, transparent); }
[data-look="bold"] .head .btn.primary { background: var(--on-accent); color: var(--accent); border-color: var(--on-accent); }
[data-look="bold"] .quick > a { color: inherit; }
[data-look="bold"] .quick .ic { background: color-mix(in srgb, var(--on-accent) 16%, transparent); color: var(--on-accent); }
[data-look="bold"] h2 { color: var(--accent); }
[data-look="bold"] .row { border-radius: 16px; }
@media (min-width: 761px) {
    [data-look="bold"] body { padding: 0 0 40px; }
    [data-look="bold"] .page { max-width: 1080px; border-radius: 0 0 24px 24px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 8px; align-items: start; padding-bottom: 32px; }
    [data-look="bold"] .cover, [data-look="bold"] .head, [data-look="bold"] footer { grid-column: 1 / -1; }
    [data-look="bold"] .head { display: grid; grid-template-columns: 150px minmax(0, 1fr) 360px; grid-template-areas: "av name act" "av title act" "quick quick act"; column-gap: 26px;
        text-align: left; padding: 0 40px 28px; align-items: end; }
    [data-look="bold"] .avatar { grid-area: av; width: 150px; height: 150px; margin: -75px 0 0; align-self: start; }
    [data-look="bold"] h1 { grid-area: name; font-size: 36px; margin-top: 16px; }
    [data-look="bold"] .title { grid-area: title; align-self: start; }
    [data-look="bold"] .actions { grid-area: act; margin: 20px 0 0; align-self: start; }
    [data-look="bold"] .quick { grid-area: quick; justify-content: flex-start; margin-top: 16px; }
    [data-look="bold"] section { padding: 24px 40px 4px; }
}


/* ---------- Minimal: no cover, left aligned, plain lines; a quiet column on a computer ---------- */
[data-look="minimal"] .cover { display: none; }
[data-look="minimal"] .head { text-align: left; padding-top: 34px; }
[data-look="minimal"] .avatar { width: 84px; height: 84px; margin: 0; border: 0; font-size: 28px; }
[data-look="minimal"] h1 { margin-top: 16px; }
[data-look="minimal"] .btn { border-radius: 8px; }
[data-look="minimal"] .quick { justify-content: flex-start; margin-left: -8px; }
[data-look="minimal"] .quick .ic { background: transparent; border: 1.5px solid var(--line); }
[data-look="minimal"] h2 { color: var(--ink); letter-spacing: .06em; }
[data-look="minimal"] .list .row { background: transparent; border-radius: 0; border-bottom: 1px solid var(--line); padding: 12px 2px; }
[data-look="minimal"] .row .ic { background: var(--soft); }
[data-look="minimal"] .socials .row { background: transparent; border: 1px solid var(--line); border-radius: 10px; }
@media (min-width: 761px) {
    [data-look="minimal"] body { background: var(--paper); padding: 56px 0; }
    [data-look="minimal"] .page { max-width: 680px; box-shadow: none; border-radius: 0; }
    [data-look="minimal"] .head { display: grid; grid-template-columns: 96px 1fr; column-gap: 24px; align-items: center; }
    [data-look="minimal"] .avatar { width: 96px; height: 96px; grid-row: 1 / span 2; }
    [data-look="minimal"] h1 { font-size: 32px; margin: 0; align-self: end; }
    [data-look="minimal"] .title { align-self: start; }
    [data-look="minimal"] .actions, [data-look="minimal"] .quick { grid-column: 1 / -1; }
    [data-look="minimal"] .actions { grid-template-columns: repeat(4, max-content); }
    [data-look="minimal"] .actions .btn.wide { grid-column: auto; }
    [data-look="minimal"] section { padding-top: 30px; }
}


/* ---------- Split: square photo; on a computer your details stay on the left as people scroll ---------- */
[data-look="split"] .avatar { border-radius: 28px; }
[data-look="split"] .cover { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent) 45%, color-mix(in srgb, var(--accent) 40%, #000)); }
@media (min-width: 761px) {
    [data-look="split"] body { padding: 0; }
    [data-look="split"] .page { max-width: none; border-radius: 0; box-shadow: none; background: transparent; padding: 0 0 48px 420px; overflow: visible; }
    /* the left panel: the cover shows through the top of the details column, so the photo overlaps it as on a phone */
    [data-look="split"] .cover { position: fixed; left: 0; top: 0; width: 420px; }
    [data-look="split"] .head { position: fixed; left: 0; top: 0; bottom: 0; width: 420px; overflow-y: auto; padding: 140px 32px 32px; border-right: 1px solid var(--line);
        background: linear-gradient(transparent 140px, var(--paper) 140px); }
    [data-look="split"] section { max-width: 720px; margin: 24px auto 0; background: var(--paper); border-radius: 18px; padding: 22px 24px 18px; }
    [data-look="split"] footer { max-width: 720px; margin: 0 auto; }
}


/* ---------- Spotlight: your photo first; cards on a computer ---------- */
[data-look="spotlight"] body { background: var(--canvas); }
[data-look="spotlight"] .avatar { width: 176px; height: 176px; border-radius: 30px; margin-top: -96px; box-shadow: 0 14px 34px #00000033; font-size: 54px; }
[data-look="spotlight"] h1 { font-size: 28px; margin-top: 16px; }
[data-look="spotlight"] .cover { aspect-ratio: 3 / 1.4; }
[data-look="spotlight"] .row { background: var(--paper); box-shadow: 0 1px 2px #0000000f, 0 4px 14px #0000000a; }
[data-look="spotlight"] .page { background: var(--canvas); }
[data-look="spotlight"] .head { background: transparent; }
@media (min-width: 761px) {
    [data-look="spotlight"] .page { max-width: 1100px; background: transparent; box-shadow: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 0 24px 40px; overflow: visible; }
    [data-look="spotlight"] .cover { grid-column: 1 / -1; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 1; }
    [data-look="spotlight"] .head { grid-column: 1 / -1; background: var(--paper); border-radius: 24px; margin: -40px 40px 0; padding: 0 40px 28px; position: relative; }
    [data-look="spotlight"] .actions { max-width: 520px; margin-left: auto; margin-right: auto; }
    [data-look="spotlight"] section { background: var(--paper); border-radius: 20px; padding: 22px 24px 18px; align-self: start; }
    [data-look="spotlight"] .row { box-shadow: none; background: var(--soft); }
    [data-look="spotlight"] footer { grid-column: 1 / -1; }
}


/* ---------- Executive: always dark, serif headings, fine lines ---------- */
html[data-look="executive"] { --ink: #f1efe9; --muted: #a39f95; --line: #2b2d33; --canvas: #0d0e11; --paper: #15171b; --soft: #1d1f24; color-scheme: dark; }
[data-look="executive"] h1, [data-look="executive"] h2, [data-look="executive"] .avatar { font-family: Fraunces, Georgia, serif; }
[data-look="executive"] h1 { font-weight: 600; font-size: 30px; letter-spacing: 0; }
[data-look="executive"] h2 { text-transform: none; letter-spacing: .01em; font-size: 17px; font-weight: 600; color: var(--ink); padding-bottom: 8px; border-bottom: 1px solid var(--accent); display: inline-block; }
[data-look="executive"] .cover { background: linear-gradient(135deg, #1b1d22, #0d0e11); position: relative; }
[data-look="executive"] .cover img { opacity: .75; }
[data-look="executive"] .avatar { border-color: var(--accent); border-width: 2px; }
[data-look="executive"] .btn { border-radius: 6px; }
[data-look="executive"] .row { background: transparent; border: 1px solid var(--line); border-radius: 8px; }
[data-look="executive"] .row .ic { background: transparent; border: 1px solid var(--line); border-radius: 6px; }
[data-look="executive"] .quick .ic { background: transparent; border: 1px solid var(--accent); }
@media (min-width: 761px) {
    [data-look="executive"] body { padding: 48px 0; }
    [data-look="executive"] .page { max-width: 820px; border-radius: 10px; border: 1px solid var(--line); box-shadow: none; }
    [data-look="executive"] .head, [data-look="executive"] section { padding-left: 56px; padding-right: 56px; }
    [data-look="executive"] .head .actions { max-width: 520px; margin-left: auto; margin-right: auto; }
    [data-look="executive"] .list { grid-template-columns: 1fr 1fr; }
    [data-look="executive"] section { padding-top: 28px; }
}

/* legal links */
.fine { margin: 10px 0 0; font-size: 11.5px; line-height: 1.45; color: var(--muted); text-align: center; }
.fine a, footer .legal a { color: inherit; }
footer .legal { font-size: 11.5px; color: var(--muted); opacity: .85; }
