/* ==========================================================================
   App mockups on the use case pages (cluster_project/marketing/use_case_mockups.py)

   One stylesheet for both the live overlays on the pages and the pages that
   chores/use-case-mockups/render.py screenshots. App chrome is sized in
   iPhone points and colored by --app-primary / --app-band / --app-round,
   which the wrapper sets per brand.
   ========================================================================== */

.uc-mock,
.uc-render {
    font-family: Roboto, -apple-system, "Helvetica Neue", sans-serif;
}

/* Avatars ---------------------------------------------------------------- */

.uc-av-wrap {
    position: relative;
    display: inline-block;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
}

.uc-av {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #9ca1a7;
}

.uc-av-unseen {
    opacity: 0.4;
}

/* A member without a photo: person icon over their initials, like the app. */
.uc-av-blank {
    fill: #fff;
}

.uc-av-blank .uc-av-ring {
    fill: none;
    stroke: #fff;
    stroke-width: 1.2;
}

.uc-av-blank text {
    font-family: Roboto, sans-serif;
    font-size: 10px;
}

.uc-badge {
    position: absolute;
    right: -3px;
    bottom: -3px;
    box-sizing: border-box;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 1.5px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-badge svg {
    width: 9px;
    height: 9px;
}

.uc-badge-heart {
    background: #e0323c;
}

.uc-badge-heart path {
    fill: #fff;
}

.uc-badge-seen {
    background: var(--app-primary);
}

.uc-badge-seen path {
    fill: none;
    stroke: #fff;
    stroke-width: 3.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.uc-faces {
    display: flex;
    gap: 4px;
}

/* A feed post (ClusterPhotoCell) ------------------------------------------ */

.uc-post {
    width: 393px;
    background: #fff;
    text-align: left;
}

.uc-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px 0;
}

.uc-post-av {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
}

.uc-post-who {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.uc-post-name {
    font-size: 15px;
    color: var(--app-primary);
}

.uc-post-date {
    font-size: 13px;
    font-weight: 300;
    color: #8e8e93;
}

.uc-post-pin {
    width: 26px;
    height: 26px;
    margin-right: 16px;
    fill: none;
    stroke: #9a9a9a;
    stroke-width: 1.3;
    stroke-linejoin: round;
}

.uc-post-pin .uc-fill-white {
    fill: #fff;
}

.uc-post-dots {
    width: 24px;
    height: 8px;
    fill: #a2a2a2;
}

.uc-post-caption {
    margin: 0;
    padding: 14px 18px;
    font-family: "Roboto Condensed", Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    color: #555;
}

.uc-post-photo {
    display: block;
    width: 393px;
    height: 225px;
    object-fit: cover;
}

.uc-post .uc-faces {
    padding: 8px 18px 0;
}

.uc-post-comments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 11px 18px 0;
    padding-top: 11px;
    border-top: 1px solid #e6e6e6;
}

.uc-comment {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.uc-comment .uc-av-wrap {
    width: 24px;
    height: 24px;
}

.uc-comment p {
    margin: 3px 0 0;
    font-size: 14px;
    line-height: 1.3;
    color: #666;
}

.uc-comment-name {
    color: var(--app-primary);
}

.uc-post-actions {
    display: flex;
    padding: 2px 6px 4px;
}

.uc-post-actions svg {
    box-sizing: border-box;
    width: 50px;
    height: 50px;
    padding: 13px;
    fill: none;
    stroke: #9a9a9a;
    stroke-width: 1.6;
    stroke-linejoin: round;
}

/* Post card (rendered) ---------------------------------------------------- */

.uc-card-stage {
    display: inline-block;
    padding: 48px;
}

.uc-card {
    width: 393px;
    border-radius: 14px;
    overflow: hidden;
    transform: rotate(-2deg);
    box-shadow: 0 18px 40px rgba(16, 42, 67, 0.22), 0 2px 6px rgba(16, 42, 67, 0.08);
}

/* Phone screen (rendered, 393x852) ---------------------------------------- */

.uc-screen {
    position: relative;
    width: 393px;
    height: 852px;
    overflow: hidden;
    background: var(--app-band);
}

.uc-cover,
.uc-cover-shade {
    position: absolute;
    left: 0;
    top: 0;
    width: 393px;
    height: 272px;
}

.uc-cover {
    object-fit: cover;
}

.uc-cover-shade {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.06) 32%, rgba(0, 0, 0, 0.12) 60%, rgba(0, 0, 0, 0.4));
}

.uc-status {
    position: absolute;
    left: 0;
    top: 0;
    box-sizing: border-box;
    width: 393px;
    height: 54px;
    padding: 4px 30px 0 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff;
}

.uc-status-time {
    font-family: -apple-system, "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: 17px;
    font-weight: 600;
}

.uc-status-icons {
    display: flex;
    gap: 6px;
    align-items: center;
}

.uc-status-icons svg {
    fill: #fff;
}

.uc-status-icons .uc-battery-shell {
    fill: none;
    stroke: rgba(255, 255, 255, 0.55);
}

.uc-island {
    position: absolute;
    left: 134px;
    top: 11px;
    width: 125px;
    height: 37px;
    border-radius: 19px;
    background: #000;
}

.uc-round {
    position: absolute;
    top: 61px;
    box-sizing: border-box;
    min-width: 42px;
    height: 42px;
    border-radius: 21px;
    background: var(--app-round);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.uc-round-left {
    left: 15px;
}

.uc-round-right {
    right: 15px;
}

.uc-round-pill {
    padding: 0 16px;
}

.uc-round svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #1f2328;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.uc-round-left svg {
    stroke-width: 2.2;
}

.uc-round .uc-fill-round {
    fill: #eef6fc;
}

.uc-cover-title {
    position: absolute;
    left: 0;
    top: 122px;
    width: 393px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

.uc-cover-title strong {
    font-family: "Roboto Condensed", Roboto, sans-serif;
    font-size: 26px;
    font-weight: 400;
}

.uc-cover-title span {
    font-size: 12.5px;
}

.uc-cover-title b {
    font-weight: 700;
}

.uc-cover-actions {
    position: absolute;
    right: 12px;
    top: 204px;
    display: flex;
    gap: 14px;
}

.uc-cover-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.uc-cover-action i {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--app-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-cover-action svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #fff;
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.uc-cover-action .uc-fill-primary {
    fill: var(--app-primary);
}

.uc-screen-post {
    position: absolute;
    left: 0;
    top: 295px;
}

.uc-tabbar {
    position: absolute;
    left: 0;
    top: 768px;
    width: 393px;
    height: 84px;
    background: rgba(247, 248, 250, 0.97);
    border-top: 1px solid #e3e5e8;
}

.uc-tab {
    position: absolute;
    top: 9px;
    width: 90px;
    margin-left: -45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #898989;
}

.uc-tab:nth-child(1) {
    left: 41px;
}

.uc-tab:nth-child(2) {
    left: 126px;
}

.uc-tab:nth-child(4) {
    left: 264px;
}

.uc-tab:nth-child(5) {
    left: 349px;
}

.uc-tab svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: #898989;
    stroke-width: 1.4;
    stroke-linejoin: round;
}

.uc-tab .uc-fill-tabbar {
    fill: #f7f8fa;
}

.uc-tab-active {
    color: var(--app-primary);
}

.uc-tab-active svg {
    fill: var(--app-primary);
    stroke: none;
}

.uc-tab-active .uc-fill-tabbar {
    fill: var(--app-primary);
    stroke: #f7f8fa;
    stroke-width: 1.4;
}

/* Gallery screen (rendered, 393x852) -------------------------------------- */

.uc-status-dark {
    color: #000;
}

.uc-status-dark .uc-status-icons svg {
    fill: #000;
}

.uc-status-dark .uc-status-icons .uc-battery-shell {
    fill: none;
    stroke: rgba(0, 0, 0, 0.4);
}

.uc-round-light {
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
}

.uc-gallery-title {
    position: absolute;
    left: 0;
    top: 68px;
    width: 393px;
    text-align: center;
    font-size: 21px;
    color: #1f2328;
}

.uc-gallery-sort {
    font-size: 15px;
    color: #1f2328;
}

.uc-gallery {
    position: absolute;
    left: 9px;
    top: 122px;
    width: 375px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.uc-gallery-row {
    display: flex;
    gap: 5px;
}

.uc-tile {
    position: relative;
    min-width: 0;
    overflow: hidden;
}

.uc-tile img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.uc-tile-counts {
    position: absolute;
    top: 7px;
    right: 7px;
    display: flex;
    gap: 4px;
}

.uc-tile-counts span {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 6px;
    background: rgba(90, 90, 90, 0.5);
    font-size: 13px;
    font-weight: 500;
    color: #fff;
}

.uc-tile-counts svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}

.uc-tab-add {
    position: absolute;
    left: 170px;
    top: -6px;
    width: 53px;
    height: 53px;
    border-radius: 9px;
    background: var(--app-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.uc-tab-add svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
}

.uc-home-indicator {
    position: absolute;
    left: 130px;
    bottom: 8px;
    width: 134px;
    height: 5px;
    border-radius: 3px;
    background: #111;
}

/* On the page: rendered images ------------------------------------------- */

.uc-mock {
    width: 100%;
}

.uc-mock-post-card,
.uc-mock-phone,
.uc-mock-gallery {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    border-radius: 20px;
    background: #e9f5fd;
    background: color-mix(in srgb, var(--app-primary) 12%, #fff);
}

.uc-mock-image {
    display: block;
    width: 100%;
    height: auto;
}

.uc-mock-post-card .uc-mock-image {
    max-width: 440px;
}

.uc-mock-phone .uc-mock-image,
.uc-mock-gallery .uc-mock-image {
    max-width: 280px;
}

/* On the page: live overlays --------------------------------------------- */

.uc-overlay {
    position: relative;
    max-width: 420px;
    margin: 48px auto;
}

.uc-overlay-photo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.uc-chip,
.uc-notify {
    position: absolute;
    box-sizing: border-box;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.uc-chip {
    border-radius: 16px;
    background: #fff;
}

.uc-chip-comment {
    top: -32px;
    right: -32px;
    width: 250px;
    padding: 12px 14px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.uc-chip-comment .uc-av-wrap {
    width: 34px;
    height: 34px;
}

.uc-chip-comment p {
    margin: 0;
    font-size: 14px;
    line-height: 1.35;
    color: #444;
}

.uc-chip-name {
    display: block;
    font-weight: 500;
    color: var(--app-primary);
}

.uc-chip-faces {
    bottom: -44px;
    left: -28px;
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.uc-chip-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
    color: #333;
}

.uc-chip-location svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--app-primary);
    stroke-width: 2;
}

.uc-chip-meta {
    font-size: 12px;
    color: #555;
}

.uc-chip-meta strong {
    font-weight: 500;
    color: var(--app-primary);
}

.uc-chip-faces .uc-faces {
    gap: 7px;
}

.uc-chip-faces .uc-av-wrap,
.uc-av-more {
    width: 34px;
    height: 34px;
}

.uc-av-more {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #eef0f3;
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
}

.uc-notify {
    width: 320px;
    padding: 11px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Roboto, sans-serif;
}

.uc-notify-1 {
    top: -44px;
    right: -32px;
}

.uc-notify-2 {
    bottom: -44px;
    left: -32px;
}

.uc-notify-icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

.uc-notify-person {
    position: relative;
    border-radius: 50%;
}

.uc-notify-person .uc-av-wrap {
    width: 38px;
    height: 38px;
}

.uc-notify-app {
    position: absolute;
    right: -3px;
    bottom: -3px;
    width: 17px;
    height: 17px;
    border-radius: 4px;
    border: 1.5px solid #fff;
}

.uc-notify-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.uc-notify-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 14px;
    line-height: 1.3;
    color: #111;
}

.uc-notify-head strong {
    font-weight: 600;
}

.uc-notify-head span {
    flex-shrink: 0;
    font-size: 12px;
    color: #737378;
}

.uc-notify-body {
    font-size: 14px;
    line-height: 1.3;
    color: #222;
}

.uc-notify-thumb {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
}

/* On a phone the overlays stack under the photo, keeping their text size. */
@media (max-width: 768px) {
    .uc-overlay {
        display: flex;
        flex-direction: column;
        max-width: 480px;
        margin: 0 auto;
    }

    .uc-chip,
    .uc-notify {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: auto;
        margin: 10px 10px 0;
    }

    .uc-overlay > :nth-child(2) {
        margin-top: -28px;
    }
}
