/* Sidebar Styles with Active States */

.sidebar-sticky {
    position: sticky;
    top: 20px;
}

/* Sidebar Widgets */
.sidebar-widget {
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.widget-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.widget-header h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.widget-header h5 i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.widget-body {
    padding: 1.25rem;
}

/* Activity Items */
.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.2s ease;
}

.activity-item:last-child {
    margin-bottom: 0;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(3px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    font-size: 1.2rem;
}

.activity-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.activity-stat {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.activity-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.25rem;
}

/* Archive List */
.archive-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) transparent;
}

.archive-list::-webkit-scrollbar {
    width: 6px;
}

.archive-list::-webkit-scrollbar-track {
    background: transparent;
}

.archive-list::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 3px;
}

.archive-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    margin-bottom: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.archive-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    transform: translateX(3px);
    color: var(--text-primary);
}

.archive-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.5);
    color: var(--text-primary);
    font-weight: 600;
}

.archive-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.archive-date i {
    opacity: 0.6;
    font-size: 0.85rem;
}

.archive-item.active .archive-date i {
    opacity: 1;
    color: #667eea;
}

.archive-count {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.archive-item.active .archive-count {
    background: rgba(102, 126, 234, 0.3);
    color: #667eea;
}

/* Trending Tags */
.trending-tags {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.trending-tag {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.trending-tag:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-color);
    color: var(--text-primary);
    transform: translateX(3px);
}

.trending-tag.active {
    background: linear-gradient(135deg, rgba(108, 155, 214, 0.2), rgba(108, 155, 214, 0.1));
    border-color: rgba(108, 155, 214, 0.5);
    color: var(--text-primary);
}

.tag-name {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c9bd6;
}

.trending-tag.active .tag-name {
    color: #8bb3e8;
    font-weight: 600;
}

.tag-count {
    background: rgba(108, 155, 214, 0.2);
    color: #6c9bd6;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 600;
}

.trending-tag.active .tag-count {
    background: rgba(108, 155, 214, 0.3);
    color: #8bb3e8;
}

/* Stats Widget */
.stats-widget .widget-body {
    padding: 1rem 1.25rem;
}

.stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Feed Header */
.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.feed-header h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.feed-stats .badge {
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.empty-state-icon {
    margin-bottom: 1.5rem;
    opacity: 0.3;
}

.empty-state h5 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 991px) {
    .sidebar-sticky {
        position: static;
        margin-top: 2rem;
    }
    
    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .widget-header {
        padding: 0.75rem 1rem;
    }
    
    .widget-body {
        padding: 1rem;
    }
    
    .activity-stat {
        font-size: 1.25rem;
    }
    
    .archive-list {
        max-height: 250px;
    }
}
