/* ── Activity Page Styles ── */

.activity-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-subtle);
}

.activity-title {
    font-size: 24px;
    font-weight: 800;
}

.activity-sub { 
    font-size: 13px;
    color: var(--text-muted);
}

.activity-tabs {
    display: flex;
    gap: 8px;
    padding: 16px 28px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
    position: sticky;
    top: 0;
    z-index: 40;
}

.activity-tab {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-card-2);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition);
}

.activity-tab:hover {
    border-color: var(--brand-primary);
}

.activity-tab.active {
    background: var(--brand-primary);
    color: white;
    border-color: var(--brand-primary);
}

.activity-list {
    padding: 12px 28px;
    max-width: 800px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    margin-bottom: 12px;
    transition: var(--transition);
    cursor: pointer;
    animation: fadeIn 0.3s ease both;
}

.activity-item:hover {
    border-color: var(--border-mild);
    background: var(--bg-card-2);
}

.activity-item.unread {
    border-left: 3px solid var(--brand-primary);
    background: rgba(255, 107, 53, 0.03);
}

.activity-icon-wrap {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.icon-like {
    background: rgba(230, 57, 70, 0.1);
    color: #E63946;
}

.icon-comment {
    background: rgba(61, 90, 241, 0.1);
    color: #3D5AF1;
}

.icon-follow {
    background: rgba(46, 196, 182, 0.1);
    color: #2EC4B6;
}

.icon-mention {
    background: rgba(255, 183, 0, 0.1);
    color: #FFB700;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 14px;
    line-height: 1.4;
}

.activity-text b {
    color: var(--text-primary);
}

.activity-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.activity-preview {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
}

.activity-action-btns {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .activity-header {
        padding: 16px;
    }

    .activity-tabs {
        padding: 12px 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .activity-list {
        padding: 12px 16px;
    }
}

/* ── Spinner ── */
.activity-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--brand-primary);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* ── Meal invites ── */
.invite-card {
    display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; padding: 10px 12px; font-size: 13px;
    border-radius: var(--radius-md); background: rgba(255, 107, 53, .08); border: 1px solid rgba(255, 107, 53, .25);
}
.invite-kind-tag { font-weight: 700; }
.invite-note { width: 100%; margin: 2px 0 0; color: var(--text-secondary); font-style: italic; }
.invite-status { margin-top: 8px; font-size: 13px; font-weight: 700; }
.invite-status.accepted { color: #2ec46a; }
.invite-status.declined { color: var(--text-muted); }
.activity-action-btns { display: flex; gap: 8px; margin-top: 8px; }
