/* Activity Feed Styles */

.activity-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Stats Cards */
.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2rem;
    opacity: 0.8;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1F2937;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.875rem;
    color: #6B7280;
    margin: 0;
}

/* Filter Tabs */
.activity-tab {
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    color: #6B7280;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.activity-tab:hover {
    color: #4F46E5;
}

.activity-tab.tab-active {
    color: #4F46E5;
    border-bottom-color: #4F46E5;
}

.activity-tab i {
    margin-right: 0.5rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.activity-item:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.activity-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.25rem;
}

.activity-icon.rating {
    background: #FEF3C7;
    color: #F59E0B;
}

.activity-icon.rating_change {
    background: #DBEAFE;
    color: #3B82F6;
}

.activity-icon.comment {
    background: #D1FAE5;
    color: #10B981;
}

.activity-icon.reply {
    background: #E9D5FF;
    color: #A855F7;
}

.activity-icon.submission {
    background: #DBEAFE;
    color: #3B82F6;
}

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

.activity-description {
    color: #1F2937;
    margin: 0 0 0.5rem 0;
    font-size: 0.9375rem;
}

.activity-description strong {
    font-weight: 600;
    color: #4F46E5;
}

.activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.875rem;
    color: #6B7280;
}

.activity-link {
    color: #4F46E5;
    text-decoration: none;
    font-weight: 500;
}

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

.activity-timestamp {
    color: #9CA3AF;
}

/* Pagination */
.activity-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #D1D5DB;
    background: white;
    color: #6B7280;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.pagination-btn:hover:not(:disabled) {
    background: #F3F4F6;
    border-color: #4F46E5;
    color: #4F46E5;
}

.pagination-btn.active {
    background: #4F46E5;
    border-color: #4F46E5;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Loading State */
.activity-loading {
    text-align: center;
    padding: 4rem 2rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid #E5E7EB;
    border-top-color: #4F46E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.activity-empty {
    text-align: center;
    padding: 4rem 2rem;
}

.activity-empty i {
    display: block;
    margin-bottom: 1rem;
}

/* Error State */
.activity-error {
    text-align: center;
    padding: 4rem 2rem;
    color: #EF4444;
}

/* Unauthenticated State */
.activity-unauthenticated {
    text-align: center;
    padding: 4rem 2rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .stat-card {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .activity-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .activity-icon {
        align-self: flex-start;
    }
    
    .activity-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

