/* ============================================================
   Pro Peptide // Activity Feed // Styles
   ============================================================
   Visual ground truth: propeptide-activity-feed-mockup.html
   Tokens come from the child theme's :root (--pp-blue, --pp-green, ...).
   Falls back to literal hex if a token is missing.
   ============================================================ */

.pp-activity-feed {
    --pp-af-transition-ms: 600ms;
    --pp-af-drift-px: 6px;
    background: var(--pp-blue, #1f9edb);
    color: #fafafa;
    font-family: var(--pp-font-primary, 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
    width: 100%;
    height: 60px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 60;
    overflow: hidden;
    box-sizing: border-box;
}

.pp-af-inner {
    width: 100%;
    max-width: var(--pp-container, 1440px);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

/* Pulse dot ----------------------------------------------------- */

.pp-af-pulse {
    position: relative;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.pp-af-pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--pp-green, #7ccf4a);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.pp-af-pulse-halo {
    position: absolute;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    background: var(--pp-green, #7ccf4a);
    border-radius: 50%;
    opacity: 0.35;
    animation: pp-af-pulse 2.4s ease-out infinite;
    z-index: 1;
    will-change: transform, opacity;
}

@keyframes pp-af-pulse {
    0%   { transform: scale(1);   opacity: 0.35; }
    70%  { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* Live label + divider ----------------------------------------- */

.pp-af-live-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #fafafa;
    margin-right: 18px;
    flex-shrink: 0;
    text-transform: uppercase;
}

.pp-af-divider {
    width: 1px;
    height: 20px;
    background: rgba(250, 250, 250, 0.25);
    margin-right: 18px;
    flex-shrink: 0;
}

/* Rotating content --------------------------------------------- */

.pp-af-content {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity var(--pp-af-transition-ms) ease,
        transform var(--pp-af-transition-ms) ease;
}

.pp-af-content.is-fading-out {
    opacity: 0;
    transform: translateY(calc(var(--pp-af-drift-px) * -1));
}

.pp-af-content.is-fading-in {
    opacity: 0;
    transform: translateY(var(--pp-af-drift-px));
    transition: none;
}

.pp-af-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    color: #fafafa;
    opacity: 0.85;
    margin-right: 14px;
    white-space: nowrap;
    flex-shrink: 0;
    text-transform: uppercase;
}

.pp-af-message {
    font-size: 14px;
    font-weight: 600;
    color: #fafafa;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pp-af-timestamp {
    font-size: 12px;
    font-weight: 500;
    color: #fafafa;
    opacity: 0.7;
    margin-left: 16px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile -------------------------------------------------------- */

@media (max-width: 767px) {
    .pp-activity-feed {
        height: 56px;
    }
    .pp-af-inner {
        padding: 0 16px;
    }
    .pp-af-live-label {
        margin-right: 12px;
    }
    .pp-af-divider {
        margin-right: 12px;
    }
    .pp-af-kicker,
    .pp-af-timestamp {
        display: none;
    }
}

/* Reduced motion ------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .pp-af-pulse-halo {
        animation: none;
        opacity: 0;
    }
    .pp-af-content,
    .pp-af-content.is-fading-out,
    .pp-af-content.is-fading-in {
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
}
