/**
 * Activity Feed Mockup Styles
 * Styles specific to the social activity feed mockup
 */

/* ============================================
   Activity Feed Screen
   ============================================ */
.activity-feed-screen {
    display: flex;
    flex-direction: column;
    background: var(--mockup-feed-bg);
}

/* ============================================
   Feed Header
   ============================================ */
.feed-header {
    padding: 48px 12px 8px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.feed-header-left {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.feed-title {
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 1.1;
}

.feed-subtitle {
    font-size: 10px;
    font-weight: 500;
    display: flex;
    gap: 3px;
    margin-top: 1px;
}

/* "your" uses same color as disabled tab */
.feed-subtitle .text-secondary {
    color: #8E8E93;
}

.feed-subtitle .text-cyan {
    color: var(--mockup-cyan);
}

.feed-subtitle .text-orange {
    color: var(--mockup-orange);
}

.feed-header-icons {
    display: flex;
    gap: 6px;
}

.header-icon-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-icon-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Feed Tabs
   ============================================ */
.feed-tabs {
    display: flex;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.feed-tab {
    flex: 1;
    padding: 10px 0;
    font-size: 12px;
    font-weight: 500;
    color: #8E8E93;
    position: relative;
    text-align: center;
}

.feed-tab.active {
    color: #000;
    font-weight: 600;
}

.feed-tab.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--mockup-cyan);
}

/* ============================================
   Filter Row
   ============================================ */
.feed-filter-row {
    display: flex;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    align-items: center;
}

.filter-pill {
    background: #e8f4fd;
    color: #007AFF;
    font-size: 10px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 12px;
}

.filter-search {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 10px;
    color: #999;
}

.filter-search .search-icon {
    flex-shrink: 0;
}

/* ============================================
   Feed Scroll Container
   ============================================ */
.feed-scroll-container {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.feed-scroll-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    animation: feedScroll 15s ease-in-out infinite;
}

/* ============================================
   Feed Cards
   ============================================ */
.feed-card {
    background: var(--mockup-card-bg);
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.feed-card.pr-card {
    border-color: var(--mockup-pr-border);
}

.feed-card.workout-card {
    border-color: var(--mockup-workout-border);
}

.feed-card.milestone-card {
    border-color: var(--mockup-milestone-border);
}

/* ============================================
   Card Header Row (PR and Milestone cards)
   ============================================ */
.card-header-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.card-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.card-icon-circle svg {
    width: 18px;
    height: 18px;
}

.pr-icon-bg {
    background: #fff3cd;
}

.milestone-icon-bg {
    background: rgba(76, 175, 80, 0.2);
}

.card-header-content {
    flex: 1;
    min-width: 0;
}

.card-title-text {
    font-size: 11px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
}

.card-subtitle-text {
    font-size: 10px;
    color: #666;
    margin-top: 1px;
}

.card-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.card-time-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-time {
    font-size: 9px;
    color: #999;
}

.card-menu {
    font-size: 12px;
    color: #999;
}

.card-user-badge {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ============================================
   Avatar Circles
   ============================================ */
.avatar-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avatar-circle.large {
    width: 32px;
    height: 32px;
}

.avatar-circle svg {
    width: 14px;
    height: 14px;
}

.avatar-circle.large svg {
    width: 18px;
    height: 18px;
}

.snail-avatar {
    background: #000000;
    border: 2px solid #ff8800;
}

.eagle-avatar {
    background: #1e3a5f;
    border: 2px solid #00d2ff;
}

.avatar-name {
    font-size: 9px;
    font-weight: 600;
    color: #000;
    max-width: 45px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ============================================
   Card User Header (Workout Report Cards)
   ============================================ */
.card-user-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.user-info {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-size: 11px;
    font-weight: 600;
    color: #000;
}

/* ============================================
   Action Pills
   ============================================ */
.action-pills {
    display: flex;
    gap: 3px;
    margin-bottom: 8px;
    flex-wrap: nowrap;
}

.pill {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.pill img {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
}

.workout-completed-pill {
    background: #fff5f0;
    border: 1px solid #FF6B35;
    color: #FF6B35;
}

.try-pill {
    background: #1C1C1E;
    color: #fff;
}

.save-pill {
    background: #f5f5f5;
    border: 1px solid #e5e5e5;
    color: #666;
}

/* ============================================
   Workout Card Content
   ============================================ */
.workout-name-large {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
}

/* Stats Row */
.stats-row {
    display: flex;
    justify-content: space-between;
    background: #f8f8f8;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-value {
    font-size: 12px;
    font-weight: 700;
    color: #000;
}

.stat-label {
    font-size: 8px;
    color: #666;
    margin-top: 1px;
}

/* Exercises Section */
.exercises-section {
    margin-bottom: 6px;
}

.exercises-header {
    font-size: 10px;
    font-weight: 600;
    color: #000;
    margin-bottom: 2px;
}

.exercises-list {
    font-size: 9px;
    color: #666;
    line-height: 1.3;
}

/* Workout Note */
.workout-note {
    font-size: 10px;
    color: #FF6B35;
    font-style: italic;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* ============================================
   Card Reactions
   ============================================ */
.card-reactions {
    display: flex;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid #f3f4f6;
}

.reaction {
    font-size: 10px;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 2px;
}

.reaction.animated {
    animation: reactionPop 15s ease infinite;
}

.reaction.comment-reaction {
    margin-left: auto;
}

/* ============================================
   Animations
   ============================================ */

/* Feed scroll - 15s loop */
@keyframes feedScroll {
    0%, 8% {
        transform: translateY(0);
        opacity: 1;
    }
    65% {
        transform: translateY(-180px);
        opacity: 1;
    }
    78% {
        transform: translateY(-180px);
        opacity: 0;
    }
    85% {
        transform: translateY(0);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Reaction pop */
@keyframes reactionPop {
    0%, 55%, 62%, 100% {
        transform: scale(1);
    }
    58% {
        transform: scale(1.4);
    }
}

/* ============================================
   Reduced Motion Support
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .feed-scroll-content,
    .reaction.animated {
        animation: none !important;
    }
}
