/*
 * Tenant issues sorted fast: the card assets/js/recent-activity.js builds in #heroReview (the
 * desktop hero, bottom right over the photo) and #carousel-container (tablets and phones).
 * Linked by index.php and campaign/index.php; where each box sits stays in those pages.
 *
 * Frosted glass with a navy header bar, one line at a time in a window of fixed height, so a
 * long label never makes the card grow. The lines move with transform and opacity only.
 */
.proof-widget {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.42);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
    font-family: "Poppins", Arial, sans-serif;
}
/* Tablets and phones: centred below the badge, a 16px gutter either side on a narrow phone */
#carousel-container .proof-widget {
    width: min(340px, calc(100% - 32px));
}
.proof-widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 16px;
    background: #272974;
    color: #f4ea10;
}
.proof-widget-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.proof-widget-live {
    flex: none;
    width: 20px;
    height: 20px;
    color: #f4ea10;
}
.proof-widget-live .live-arc {
    animation: proof-widget-pulse 1.6s ease-in-out infinite;
}
.proof-widget-live .live-arc-2 {
    animation-delay: 0.3s;
}
@keyframes proof-widget-pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Fixed height: two lines of text at most, clamped */
.proof-widget-window {
    position: relative;
    height: 70px;
    overflow: hidden;
}
.proof-widget-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}
.proof-widget-item.is-current {
    opacity: 1;
    transform: translateY(0);
}
.proof-widget-item.is-leaving {
    opacity: 0;
    transform: translateY(-100%);
}
.proof-widget .activity-line {
    flex: 1;
    min-width: 0;
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.4;
    color: #171614;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.activity-issue {
    font-weight: 700;
    color: #272974;
}
.proof-widget-check {
    flex: none;
    width: 18px;
    height: 18px;
    color: #8a8f98;
}

@media (prefers-reduced-motion: reduce) {
    .proof-widget-item {
        transition: none;
    }
    .proof-widget-live .live-arc {
        animation: none;
        opacity: 1;
    }
}
