/* ===== WIDGET STYLES ===== */
.widget {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: var(--shadow-hover);
}

.widget-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

.widget-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
}

.widget-body {
    padding: 1px 2px;
}

/* ===== HASHTAG WIDGET ===== */
.hashtag-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hashtag-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.hashtag-item:last-child {
    border-bottom: none;
}

.hashtag-item:hover {
    background: var(--hover-bg);
    margin: 0 -10px;
    padding: 8px 10px;
    border-radius: 8px;
}

.hashtag-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s ease;
}

.hashtag-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.hashtag-count {
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg-light);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* ===== TOP POSTS WIDGET ===== */
.top-posts-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.top-post-item {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 15px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.top-post-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.top-post-user {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.top-post-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-light);
}

.top-post-info {
    flex: 1;
}

.top-post-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 2px;
}

.top-post-meta {
    font-size: 12px;
    color: var(--text-muted);
}

.top-post-content {
    font-size: 13px;
    color: var(--text-color);
    line-height: 1.4;
    margin-bottom: 10px;
    word-break: break-word;
}

.top-post-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.top-post-stats .stat {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* ===== NEW USERS WIDGET ===== */
.new-users-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.new-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.new-user-item:hover {
    background: var(--hover-bg);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.new-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

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

.new-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 4px;
}

.new-user-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.new-user-stats {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.new-user-item .follow-btn {
    min-width: 70px;
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.new-user-item .follow-btn:hover {
    transform: scale(1.05);
}
.sidebar-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: var(--radius);
    padding: 2px;
    box-shadow: var(--shadow);
}

/* ===== RESPONSIVE WIDGET STYLES ===== */
@media (max-width: 768px) {
    .widget {
        margin-bottom: 15px;
    }
    
    .widget-header {
        padding: 12px 15px;
    }
    
    .widget-title {
        font-size: 14px;
    }
    
    .widget-body {
        padding: 12px 15px;
    }
    
    .hashtag-item,
    .top-post-item,
    .new-user-item {
        padding: 10px;
    }
    
    .top-post-avatar,
    .new-user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .hashtag-link {
        font-size: 13px;
    }
    
    .top-post-name,
    .new-user-name {
        font-size: 13px;
    }
    
    .top-post-content {
        font-size: 12px;
    }
}

/* ===== WIDGET ANIMATIONS ===== */
@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.widget-body {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== EMPTY WIDGET STATES ===== */
.empty-widget {
    text-align: center;
    padding: 30px 20px;
    color: var(--text-muted);
}

.empty-widget p {
    margin: 0;
    font-size: 14px;
    font-style: italic;
}

/* ===== LOADING STATES ===== */
.widget-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.widget-loading .spinner {
    width: 16px;
    height: 16px;
    margin-right: 10px;
}

/* ===== DARK MODE ADJUSTMENTS ===== */
@media (prefers-color-scheme: dark) {
    .hashtag-count {
        background: rgba(255, 255, 255, 0.1);
        color: var(--text-muted);
    }
    
    .top-post-item,
    .new-user-item {
        background: rgba(255, 255, 255, 0.05);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .top-post-item:hover,
    .new-user-item:hover {
        background: rgba(255, 255, 255, 0.08);
    }
}