/* ============================================
   LIVE ACTIVITY INDICATORS
   ============================================
   NOTE: Feature disabled - hiding all activity-related UI
   ============================================ */

/* Hide all activity-related sections */
.experts123-live-activity,
.activity-indicators,
.activity-timeline,
.viewers-indicator,
.trending-indicator,
.hot-indicator,
.new-answer-indicator {
    display: none !important;
}

/* Hide AnsPress RECENT ACTIVITY sidebar widget */
.ap-widget-recent-activity,
.ap-sidebar .widget_recent_activity,
.ap-sidebar h3:contains("RECENT ACTIVITY"),
.ap-sidebar h3:contains("Recent Activity"),
.ap-question-right .ap-widget:has(h3:contains("RECENT ACTIVITY")),
.ap-question-right .ap-widget:has(h3:contains("Recent Activity")),
.ap-question-right h3:contains("RECENT ACTIVITY"),
.ap-question-right h3:contains("Recent Activity") {
    display: none !important;
}

/* Hide any sidebar activity sections */
.ap-sidebar [class*="activity"],
.ap-sidebar [id*="activity"],
.ap-question-right [class*="activity"],
.ap-question-right [id*="activity"] {
    display: none !important;
}

/* Hide entire widget if it contains "RECENT ACTIVITY" text */
.ap-widget:has-text("RECENT ACTIVITY"),
.ap-widget:has-text("Recent Activity") {
    display: none !important;
}

.experts123-live-activity {
    position: relative;
    margin: 1rem 0;
}

/* ========================================
   ACTIVITY INDICATORS
   ======================================== */

.activity-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.activity-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.activity-indicator svg {
    flex-shrink: 0;
}

/* Viewers Indicator */
.viewers-indicator {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.1));
    border: 2px solid rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.viewers-indicator.updated {
    animation: viewerPulse 0.6s ease;
}

@keyframes viewerPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(59, 130, 246, 0);
    }
}

.viewers-count {
    font-weight: 700;
    font-size: 1rem;
}

.viewers-label {
    font-weight: 500;
    color: #60A5FA;
}

/* Trending Indicator */
.trending-indicator {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.1));
    border: 2px solid rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.trending-indicator.pulse {
    animation: trendingPulse 1s ease;
}

@keyframes trendingPulse {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
}

.trending-indicator svg {
    animation: trendingRotate 2s linear infinite;
}

@keyframes trendingRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Hot Indicator */
.hot-indicator {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(220, 38, 38, 0.1));
    border: 2px solid rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.hot-indicator.flame-animation svg {
    animation: flame 1s ease-in-out infinite;
}

@keyframes flame {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-2px) scale(1.1);
    }
}

/* New Answer Indicator */
.new-answer-indicator {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(5, 150, 105, 0.1));
    border: 2px solid rgba(16, 185, 129, 0.2);
    color: #10B981;
    padding-right: 0.5rem;
}

.new-answer-indicator.slide-in {
    animation: slideIn 0.5s ease;
}

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

.new-answer-indicator svg {
    animation: newAnswerPulse 1.5s ease-in-out infinite;
}

@keyframes newAnswerPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

.reload-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: #10B981;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: all 0.2s ease;
}

.reload-btn:hover {
    background: #059669;
    transform: translateY(-1px);
}

.reload-btn:active {
    transform: translateY(0);
}

.reload-btn svg {
    animation: none !important;
}

.reload-btn:hover svg {
    animation: reloadSpin 0.6s ease;
}

@keyframes reloadSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   ACTIVITY TIMELINE
   ======================================== */

.activity-timeline {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    padding: 1rem;
    min-width: 300px;
    max-width: 400px;
    z-index: 1000;
    border: 1px solid rgba(139, 92, 246, 0.1);
}

.activity-timeline h4 {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: #1a202c;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(139, 92, 246, 0.03);
    border-radius: 8px;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
}

.timeline-item:hover {
    background: rgba(139, 92, 246, 0.08);
}

.timeline-icon {
    font-size: 1rem;
    flex-shrink: 0;
}

.timeline-text {
    flex: 1;
    color: #4a5568;
    font-weight: 500;
}

.timeline-time {
    color: #a0aec0;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

/* Scrollbar for timeline */
.timeline-items::-webkit-scrollbar {
    width: 6px;
}

.timeline-items::-webkit-scrollbar-track {
    background: rgba(139, 92, 246, 0.05);
    border-radius: 3px;
}

.timeline-items::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
}

.timeline-items::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.3);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .activity-indicators {
        gap: 0.5rem;
    }

    .activity-indicator {
        padding: 0.375rem 0.75rem;
        font-size: 0.8125rem;
    }

    .viewers-count {
        font-size: 0.875rem;
    }

    .new-answer-indicator {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.625rem 0.875rem;
    }

    .reload-btn {
        margin-left: 0;
        margin-top: 0.375rem;
        width: 100%;
        justify-content: center;
    }

    .activity-timeline {
        left: 0;
        right: 0;
        width: calc(100vw - 2rem);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .activity-indicators {
        flex-direction: column;
        align-items: stretch;
    }

    .activity-indicator {
        justify-content: center;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.activity-indicator:focus-within {
    outline: 2px solid #8B5CF6;
    outline-offset: 2px;
}

.reload-btn:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .activity-indicator,
    .timeline-item,
    .reload-btn {
        transition: none;
    }

    .viewers-indicator.updated,
    .trending-indicator.pulse,
    .hot-indicator.flame-animation svg,
    .new-answer-indicator.slide-in,
    .new-answer-indicator svg,
    .trending-indicator svg,
    .reload-btn:hover svg {
        animation: none;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .activity-indicator {
        border-width: 3px;
    }
}

