/* Skin Suite scan2 — v7 (Shelly's revised spec, 2026-05-05).
   Loaded only when ?v=7 is in the URL OR window._RENDERER_DEFAULT === 'v7'.
   v6 styles in index.html stay untouched. */

/* All v7 styles are scoped to .v7-results so they cannot bleed into v6. */
.v7-results {
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
    color: #1a1a1a;
    max-width: 720px;
    margin: 0 auto;
    padding: 24px 16px 48px;
}

/* ============ HEADER (Skin Suite branding) ============ */
.v7-header {
    text-align: center;
    padding: 0 0 18px 0;
    border-bottom: 1px solid #e8e3d8;
    margin-bottom: 22px;
}
.v7-header img {
    max-width: 220px;
    width: 60%;
    height: auto;
    margin: 0 auto 6px;
    display: block;
}
.v7-header .v7-tagline {
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #888;
    margin-top: 4px;
}

/* ============ PHOTOS — vertically stacked, full width ============ */
.v7-photos {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
}
.v7-photo {
    position: relative;
    border: 1px solid #e8e3d8;
    background: #f7f5ef;
    padding: 6px;
}
.v7-photo img {
    display: block;
    width: 100%;
    height: auto;
}
.v7-photo .v7-photo-overlay {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    pointer-events: none;
}
.v7-photo-caption {
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #888;
    text-align: center;
    margin-top: 6px;
}

/* ---- Score-chip strip overlaid on the bottom of Photo 2 (Neora-style) ----
   Bug-fix 2026-05-05: chips moved from a separate section onto the photo. */
.v7-photo-marked .v7-score-strip {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 10px;
    padding: 4px 6px;
    pointer-events: none;
    /* Soft scrim so chips stay legible over any photo background. */
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.15) 60%,
        rgba(0, 0, 0, 0) 100%
    );
}
.v7-photo-marked .v7-score-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 56px;
}
.v7-photo-marked .v7-score-circle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: baseline;
    justify-content: center;
    color: #fff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    line-height: 1;
}
.v7-photo-marked .v7-score-num {
    font-size: 16px;
}
.v7-photo-marked .v7-score-denom {
    font-size: 9px;
    opacity: 0.85;
    margin-left: 1px;
}
.v7-photo-marked .v7-score-label {
    margin-top: 3px;
    font-size: 9px;
    line-height: 1.1;
    color: #fff;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
    max-width: 56px;
}
.v7-no-concerns {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding: 14px 0;
}

/* ============ SUMMARY — Gemini's plain-English paragraph ============
   Sits directly below the photos. Subtle background, italic body so it
   reads as commentary rather than a hard heading. */
.v7-section-summary {
    margin-top: 22px;
}
.v7-summary {
    font-family: 'Inter', system-ui, -apple-system, Arial, sans-serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    color: #4a4540;
    background: #faf6ee;
    border-left: 3px solid #d4a155;
    padding: 14px 16px;
}

/* ============ CONCERN LIST — type + zone text + score ============
   Format: "Hyperpigmentation  —  forehead and left cheek          8/10"
   Each row: color dot, name, em-dash, zone text, score on the right. */
.v7-concerns-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.v7-concern-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 14px;
    line-height: 1.4;
}
.v7-concern-row:last-child {
    border-bottom: none;
}
.v7-concern-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.95),
                0 1px 2px rgba(0, 0, 0, 0.18);
}
.v7-concern-name {
    font-weight: 600;
    color: #1a1a1a;
    flex: 0 0 auto;
}
.v7-concern-sep {
    color: #888;
    flex: 0 0 auto;
}
.v7-concern-zone {
    color: #4a4540;
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
}
.v7-concern-score {
    color: #6b6b6b;
    font-variant-numeric: tabular-nums;
    margin-left: auto;
    padding-left: 8px;
    flex: 0 0 auto;
    white-space: nowrap;
}
.v7-rec-empty {
    font-size: 13px;
    color: #888;
}

/* ============ AREAS OF CONCERN (chip row) ============ */
.v7-section {
    margin-top: 32px;
}
.v7-section-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    font-style: italic;
    text-align: center;
    margin: 0 0 4px 0;
    color: #1a1a1a;
}
.v7-section-sub {
    text-align: center;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 18px;
}

.v7-chips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.v7-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.v7-chip-circle {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    line-height: 1;
}
.v7-chip-circle .v7-chip-num {
    font-size: 26px;
}
.v7-chip-circle .v7-chip-denom {
    font-size: 12px;
    opacity: 0.75;
    margin-left: 1px;
}
.v7-chip-label {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #1a1a1a;
    line-height: 1.2;
    max-width: 100px;
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* ============ RECOMMENDATION SECTIONS ============ */
.v7-rec-block {
    border-left: 3px solid #d4a155;
    background: #faf6ee;
    padding: 16px 18px;
    margin-bottom: 16px;
}
.v7-rec-services {
    border-left-color: #4a6171;
    background: #eef2f5;
}
.v7-rec-title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 10px 0;
    color: #1a1a1a;
}
.v7-rec-services .v7-rec-title { color: #2c3e50; }
.v7-rec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.v7-rec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
    line-height: 1.4;
}
.v7-rec-item:last-child { border-bottom: none; }
.v7-rec-item-name { flex: 1; color: #1a1a1a; }
.v7-rec-item-price {
    color: #6b6b6b;
    font-variant-numeric: tabular-nums;
    margin-left: 12px;
    white-space: nowrap;
}

/* ============ FOOTER ============ */
.v7-footer {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid #e8e3d8;
    text-align: center;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #888;
    line-height: 1.7;
}
.v7-footer .v7-version-badge {
    display: inline-block;
    padding: 2px 10px;
    border: 1px solid #d4a155;
    border-radius: 999px;
    color: #b8862d;
    font-size: 9px;
    letter-spacing: 0.32em;
    margin-top: 8px;
}

/* ============ MOBILE ============ */
@media (max-width: 480px) {
    .v7-results { padding: 18px 14px 36px; }
    .v7-chip-circle { width: 68px; height: 68px; }
    .v7-chip-circle .v7-chip-num { font-size: 22px; }
    .v7-section-title { font-size: 20px; }
    .v7-rec-item { font-size: 13px; }

    /* Tighten the on-photo score strip so 6 chips fit in 2 rows max on a
       narrow phone without overflowing the photo container. */
    .v7-photo-marked .v7-score-strip { gap: 6px 8px; bottom: 8px; }
    .v7-photo-marked .v7-score-chip { width: 50px; }
    .v7-photo-marked .v7-score-circle { width: 34px; height: 34px; }
    .v7-photo-marked .v7-score-num { font-size: 14px; }
    .v7-photo-marked .v7-score-denom { font-size: 8px; }
    .v7-photo-marked .v7-score-label { font-size: 8px; max-width: 50px; }

    /* Concern rows wrap onto two lines on narrow phones — name+score on
       row 1, zone text on row 2. Keeps all text readable without
       horizontal overflow. */
    .v7-concern-row { flex-wrap: wrap; font-size: 13px; }
    .v7-concern-zone { flex-basis: 100%; padding-left: 18px; }
    .v7-summary { font-size: 13px; padding: 12px 14px; }
}

@media (max-width: 360px) {
    .v7-photo-marked .v7-score-strip { gap: 4px 6px; }
    .v7-photo-marked .v7-score-chip { width: 44px; }
    .v7-photo-marked .v7-score-circle { width: 30px; height: 30px; }
    .v7-photo-marked .v7-score-num { font-size: 12px; }
    .v7-photo-marked .v7-score-label { max-width: 44px; }
}
