/* Activity Feed Styles */
.activity-feed {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 600px;
    display: flex;
    flex-direction: column;
}

.activity-feed-header {
    padding: 16px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.activity-feed-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.activity-feed-mode {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.mode-demo {
    background: #fff3cd;
    color: #856404;
}

.mode-live {
    background: #d1e7dd;
    color: #0f5132;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.4);
    }
    70% {
        box-shadow: 0 0 0 6px rgba(13, 110, 253, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.activity-feed-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px;
}

/* Scrollbar Styling */
.activity-feed-content::-webkit-scrollbar {
    width: 6px;
}

.activity-feed-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.activity-feed-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.activity-feed-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.activity-item {
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.activity-item:hover {
    background: #e9ecef;
    transform: translateX(2px);
}

.activity-item.property-save {
    border-left-color: #3b82f6;
}

.activity-item.price-estimate {
    border-left-color: #10b981;
}

.activity-item.comment {
    border-left-color: #f59e0b;
}

.activity-item.upvote-estimate,
.activity-item.upvote-comment {
    border-left-color: #ef4444;
}

.activity-item-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.activity-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5e7eb;
}

.activity-user-info {
    flex: 1;
}

.activity-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
    line-height: 1.3;
}

.activity-time {
    font-size: 11px;
    color: #6b7280;
    margin: 0;
}

.activity-icon {
    font-size: 16px;
    color: #9ca3af;
}

.activity-content {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.5;
    word-wrap: break-word;
}

.activity-property-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.activity-property-link:hover {
    text-decoration: underline;
}

.activity-price {
    font-weight: 600;
    color: #10b981;
}

.activity-loading {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.activity-loading-spinner {
    display: inline-block;
    width: 32px;
    height: 32px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.activity-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6b7280;
}

.activity-empty-icon {
    font-size: 48px;
    color: #d1d5db;
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .activity-feed {
        height: 400px;
        margin: 0 -16px;
        border-radius: 0;
        box-shadow: none;
        border-top: 1px solid #e5e7eb;
        border-bottom: 1px solid #e5e7eb;
    }

    .activity-feed-header {
        padding: 12px 16px;
    }

    .activity-feed-content {
        padding: 8px;
    }

    .activity-item {
        padding: 10px;
    }

    .activity-user-avatar {
        width: 28px;
        height: 28px;
    }

    .activity-user-name {
        font-size: 13px;
    }

    .activity-content {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .activity-feed {
        height: 350px;
    }

    .activity-feed-title {
        font-size: 16px;
    }

    .activity-item {
        padding: 8px;
    }

    .activity-item-header {
        gap: 8px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .activity-feed {
        background: #1f2937;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    }

    .activity-feed-header {
        background: #374151;
        border-bottom-color: #4b5563;
    }

    .activity-feed-title {
        color: #f9fafb;
    }

    .activity-item {
        background: #374151;
    }

    .activity-item:hover {
        background: #4b5563;
    }

    .activity-user-name {
        color: #f9fafb;
    }

    .activity-content {
        color: #d1d5db;
    }

    .activity-feed-content::-webkit-scrollbar-track {
        background: #374151;
    }

    .activity-feed-content::-webkit-scrollbar-thumb {
        background: #6b7280;
    }

    .activity-feed-content::-webkit-scrollbar-thumb:hover {
        background: #9ca3af;
    }
}